/* CMS template bridge styles for cifstyle theme */

.cif-pager .pagination > li > a,
.cif-pager .pagination > li > span {
    border-radius: 10px;
    margin: 0 4px;
    border-color: #e9ecf6;
}

.cif-pager .pagination > .active > a,
.cif-pager .pagination > .active > span {
    background: #e74c3c;
    border-color: #e74c3c;
}

.cif-loadmore {
    border-radius: 999px;
    padding-left: 18px;
    padding-right: 18px;
}

.cif-empty {
    padding: 14px 0;
    color: #7a8293;
}

#comment-container .news.cif-comment {
    margin-bottom: 12px;
    border-bottom: 1px solid #edf0f8;
    padding-bottom: 10px;
}

#postcomment textarea.form-control {
    border-radius: 10px;
    min-height: 110px;
}

.about-author .author-statistics {
    margin-left: 0;
    margin-right: 0;
}

.entry-meta .goods li {
    display: block;
}

.entry-meta .goods li span {
    float: right;
    max-width: 70%;
    text-align: right;
    word-break: break-all;
}

.entry-meta .article-tag .tag {
    margin-bottom: 6px;
    display: inline-block;
}

/* Master layout optimizations */
.user-info-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}
.user-nickname {
    min-width: 118px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 3px 10px 3px 4px;
    border: 1px solid rgba(16, 24, 40, 0.08);
    border-radius: 999px;
    background: #fff;
    color: #344054 !important;
    box-shadow: 0 4px 12px rgba(20, 25, 35, 0.035);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}
.user-nickname:hover {
    border-color: rgba(239, 18, 24, 0.22);
    color: var(--red) !important;
    box-shadow: 0 8px 20px rgba(239, 18, 24, 0.08);
}
.user-avatar-small {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    margin-right: 0;
    border: 2px solid #d9f7e8;
    background: #98e6bd;
    object-fit: cover;
}
.user-nickname span {
    max-width: 74px;
    overflow: hidden;
    color: inherit;
    font-weight: 700;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 128px;
    background: #fff;
    border: 1px solid #edf0f5;
    box-shadow: 0 12px 26px rgba(20, 25, 35, 0.12);
    border-radius: 8px;
    display: none;
    flex-direction: column;
    z-index: 100;
    padding: 6px;
}
.user-info-wrapper:hover .user-dropdown {
    display: flex;
}
.user-dropdown a {
    padding: 8px 10px;
    border-radius: 6px;
    color: #555 !important;
    font-size: 13px;
    white-space: nowrap;
}
.user-dropdown a:hover {
    background: #fff4f4;
    color: var(--red) !important;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-self: end;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: 0;
    padding: 8px;
    cursor: pointer;
}
.mobile-toggle i {
    width: 20px;
    height: 2px;
    background: #333;
    border-radius: 2px;
}

.nav-item {
    position: relative;
    display: flex;
    align-items: center;
}
.sub-nav {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 160px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-radius: 4px;
    display: none;
    flex-direction: column;
    z-index: 100;
    padding: 10px 0;
}
.nav-item:hover .sub-nav {
    display: flex;
}
.sub-nav a {
    padding: 10px 20px;
    color: #555 !important;
    font-size: 14px;
    font-weight: normal !important;
    height: auto !important;
}
.sub-nav a:hover {
    background: #f5f5f5;
    color: var(--red) !important;
}

@media (max-width: 760px) {
    .home-polish .topbar {
        display: none !important;
    }
    .mobile-toggle {
        display: flex;
    }
    .home-polish .header-main {
        height: auto !important;
        /* 具体栅格由下文「移动端头部精修」统一控制 */
    }
    .header-actions {
        width: 100%;
        justify-content: space-between;
        display: flex;
        align-items: center;
        font-size: 0;
        overflow: hidden;
    }
    .header-actions > :not(.register):not(.mobile-toggle) {
        display: none !important;
    }
    .register {
        width: auto;
        min-width: 96px;
        height: 38px;
        padding: 0 14px;
        justify-self: start;
        white-space: nowrap;
        line-height: 1;
        font-size: 14px;
        flex: 0 0 auto;
    }
    .search {
        width: 100%;
        min-width: 0;
    }
    .search > input[name="q"],
    .search > input[type="search"],
    .search-field input {
        min-width: 0;
    }
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        flex-direction: column;
        height: auto !important;
        padding: 10px 0;
        box-shadow: 0 4px 12px rgba(0,0,0,0.05);
        z-index: 90;
        max-height: calc(100vh - 120px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .main-nav.active {
        display: flex;
    }
    .main-nav a {
        width: 100%;
        padding: 12px 20px !important;
    }
    .nav-item {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }
    .sub-nav {
        position: static;
        width: 100%;
        box-shadow: none;
        background: #fcfcfc;
        padding: 0;
        display: none;
    }
    .nav-item.active .sub-nav {
        display: flex;
    }
    .sub-nav a {
        padding-left: 40px !important;
    }
    .mobile-toggle {
        width: 38px;
        height: 38px;
        border-radius: 6px;
        border: 1px solid #e4e4e4;
        background: #fff;
        padding: 7px 8px;
        justify-content: center;
        flex: 0 0 38px;
        font-size: 0;
    }
    .mobile-toggle i {
        display: block;
        width: 20px;
        height: 2px;
        margin: 0;
        background: #333;
        border-radius: 999px;
        font-size: 0;
        line-height: 0;
    }

    /* Mentors page mobile optimizations */
    .mentor-grid-new {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        padding: 10px !important;
    }

    .mentor-card-new {
        display: flex !important;
        flex-direction: row !important;
        background: #fff;
        border-radius: 12px;
        overflow: hidden;
        border: 1px solid #f0f0f0;
        padding: 0 !important;
    }

    .mentor-photo {
        flex: 0 0 110px !important;
        height: 140px !important;
        background: #f9f9f9 !important;
    }

    .mentor-photo img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    .mentor-card-new .info {
        flex: 1;
        padding: 12px 15px !important;
        display: flex;
        flex-direction: column;
    }

    .mentor-card-new h3 {
        font-size: 18px !important;
        margin-bottom: 2px !important;
    }

    .mentor-card-new .role {
        font-size: 13px !important;
        margin-top: 0 !important;
        color: #666 !important;
    }

    .mentor-card-new .pill {
        margin-top: 6px !important;
        font-size: 11px !important;
        padding: 2px 8px !important;
        align-self: flex-start;
    }

    .mentor-card-new p {
        margin: 8px 0 !important;
        font-size: 13px !important;
        line-height: 1.4 !important;
        min-height: 0 !important;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .mentor-card-new a {
        margin-top: auto;
        height: 32px !important;
        font-size: 13px !important;
        border-radius: 6px !important;
    }

    .filter-bar {
        padding: 10px !important;
    }

    .filter-tabs {
        display: flex !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        gap: 8px !important;
        padding-bottom: 5px !important;
        -webkit-overflow-scrolling: touch;
    }

    .filter-tabs a {
        padding: 6px 14px !important;
        font-size: 13px !important;
        border-radius: 20px !important;
        background: #f5f5f5;
        flex: 0 0 auto;
    }

    .filter-tabs a.active {
        background: var(--red) !important;
        color: #fff !important;
    }

    .mentor-hero-stats {
        gap: 15px !important;
        justify-content: space-between !important;
    }

    .mentor-hero-stats .box strong {
        font-size: 20px !important;
    }

    .mentor-hero-stats .box span {
        font-size: 12px !important;
    }
}

/* Cross-template compatibility baseline */
.home-polish {
    padding-top: 0 !important;
    background-color: #f8fafc !important;
}

.home-polish .page > .container#content-container {
    width: 100%;
    padding-left: 0;
    padding-right: 0;
}

.home-polish #content-container > .row {
    margin-left: 0;
    margin-right: 0;
}

.home-polish #content-container > .row > [class*="col-"] {
    padding-left: 0;
    padding-right: 0;
}

.home-polish .panel.block,
.home-polish .panel.side-box {
    border: 1px solid #edf1fb;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.04);
}

.home-polish .panel.block > .panel-body,
.home-polish .panel.side-box > .panel-body {
    padding: 16px 18px;
}

.home-polish .pager:not(.cif-pager) .pagination > li > a,
.home-polish .pager:not(.cif-pager) .pagination > li > span {
    border-radius: 10px;
    margin: 0 4px;
    border: 1px solid #e9ecf6;
    color: #4a5568;
}

.home-polish .pager:not(.cif-pager) .pagination > .active > a,
.home-polish .pager:not(.cif-pager) .pagination > .active > span {
    background: #e74c3c;
    border-color: #e74c3c;
    color: #fff;
}

/* Rich content compatibility */
.home-polish .article-text img,
.home-polish .intro-box img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.home-polish .article-content [data-previewable-image="true"] {
    cursor: zoom-in;
}

.article-image-preview {
    position: fixed;
    inset: 0;
    z-index: 10020;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(15, 23, 42, 0.82);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease, visibility 0.18s ease;
}

.article-image-preview.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.article-image-preview__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: transparent;
    cursor: zoom-out;
}

.article-image-preview__dialog {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 10px;
    justify-items: center;
    max-width: min(1120px, 94vw);
    margin: 0;
}

.article-image-preview__image {
    display: block;
    max-width: 94vw;
    max-height: 88vh;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
    object-fit: contain;
}

.article-image-preview__close {
    position: absolute;
    top: -16px;
    right: -16px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #111827;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.25);
    line-height: 36px;
    text-align: center;
    cursor: pointer;
}

.article-image-preview__close:hover,
.article-image-preview__close:focus-visible {
    color: var(--red);
    outline: none;
}

.article-image-preview__caption {
    max-width: 94vw;
    color: #fff;
    font-size: 13px;
    line-height: 1.6;
    text-align: center;
}

body.article-image-preview-open {
    overflow: hidden;
}

.home-polish .article-text table {
    width: 100%;
    display: block;
    overflow-x: auto;
    border-collapse: collapse;
}

.home-polish .article-text table td,
.home-polish .article-text table th {
    border: 1px solid #eef1f7;
    padding: 8px 10px;
}

.home-polish .article-text pre {
    background: #0f172a;
    color: #e2e8f0;
    border-radius: 10px;
    padding: 12px 14px;
    overflow-x: auto;
}

.home-polish .article-text blockquote {
    border-left: 3px solid #ef4444;
    background: #fff8f8;
    padding: 10px 12px;
    border-radius: 8px;
}

/* Search and xunsearch compatibility */
.home-polish .form-search .search-query {
    width: 100%;
    border: 1px solid #e5e9f4;
    border-radius: 12px;
    min-height: 44px;
    padding: 10px 12px;
    outline: none;
}

.home-polish .form-search .search-query:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.home-polish .result-list dt h4 {
    margin: 0 0 4px;
    line-height: 1.5;
}

.home-polish .result-list dd {
    border-bottom: 1px solid #eef1f7;
    padding-bottom: 10px;
}

.home-polish .result-list dd:last-child {
    border-bottom: none;
}

.home-polish .search-suggestion {
    border: 1px solid #ffe2de;
    border-radius: 10px;
    background: #fff7f5;
}

.home-polish .dropdown-menu.orderlist {
    border-radius: 10px;
    border: 1px solid #edf1fb;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

/* Form page compatibility */
.home-polish #post-form .form-control {
    border-radius: 10px;
    border-color: #e5e9f4;
}

.home-polish #post-form .form-control:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.home-polish #post-form .control-label {
    color: #4b5563;
    font-weight: 600;
}

.home-polish #post-form .btn {
    border-radius: 999px;
    min-width: 110px;
}

/* Sidebar/menu small compatibility */
.home-polish .goods li.active > b > a,
.home-polish .goods li.active > a {
    color: #e74c3c;
}

.home-polish .author-card .author-head {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

/* Disable Bootstrap clearfix pseudo-elements for grid containers to avoid them becoming grid items. */
.home-polish .topbar-inner::before,
.home-polish .topbar-inner::after,
.home-polish .header-main::before,
.home-polish .header-main::after,
.home-polish .footer-inner::before,
.home-polish .footer-inner::after {
    display: none !important;
}

.footer-links-wrapper {
    display: contents;
}

/* Stabilize homepage header layout to avoid misalignment. */
@media (min-width: 761px) {
    .home-polish .topbar-inner {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 16px;
        align-items: center;
    }

    .home-polish .topbar-inner > span {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .home-polish .topbar nav {
        display: flex;
        align-items: center;
        gap: 16px;
        flex-wrap: nowrap;
    }

    .home-polish .header-main {
        grid-template-columns: 210px minmax(460px, 1fr) auto;
        gap: 18px;
    }
}

@media (min-width: 761px) and (max-width: 1239px) {
    .home-polish .header-main {
        grid-template-columns: 210px 1fr auto;
    }
}

.home-polish .header-main .search {
    min-width: 0;
}

.home-polish .main-nav {
    flex-wrap: nowrap;
    overflow: visible;
    white-space: nowrap;
}

.home-polish .main-nav::-webkit-scrollbar {
    display: none;
}

.home-polish .main-nav a {
    white-space: nowrap;
}

/* Fix homepage courses card text overflow. */
.home-polish #courses .course-row article {
    height: auto;
    min-height: 132px;
    overflow: hidden;
}

.home-polish #courses .course-row article h3 {
    margin-bottom: 6px;
}

.home-polish #courses .course-row article h3 a {
    display: -webkit-box;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.home-polish #courses .course-row article p {
    display: -webkit-box;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

@media (max-width: 390px) {
    .home-polish .main-nav {
        overflow-x: auto;
        white-space: nowrap;
        scrollbar-width: thin;
    }

    .home-polish .main-nav a {
        display: inline-block;
        margin-right: 8px;
        font-size: 13px;
    }

    .home-polish .section-head h2 {
        font-size: 18px;
    }

    .home-polish .service-grid,
    .home-polish .topic-row {
        grid-template-columns: 1fr;
    }

    .home-polish .news {
        grid-template-columns: 1fr;
    }

    .home-polish .news .thumb {
        min-height: 120px;
    }

    .home-polish .content-layout {
        grid-template-columns: 1fr;
    }

    .home-polish .member {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .article-image-preview {
        padding: 14px;
    }

    .article-image-preview__image {
        max-width: 94vw;
        max-height: 82vh;
        border-radius: 6px;
    }

    .article-image-preview__close {
        top: 10px;
        right: 10px;
    }

    .home-polish .page {
        padding-left: 12px;
        padding-right: 12px;
    }
    .home-polish .footer-pages .footer-inner {
        grid-template-columns: 1fr;
        padding: 32px 20px 24px;
        gap: 0;
    }
    .home-polish .footer-pages .footer-brand {
        text-align: center;
        margin-bottom: 24px;
        padding-bottom: 24px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    .home-polish .footer-pages .footer-brand p {
        max-width: none;
        font-size: 13px;
        line-height: 1.8;
    }
    .home-polish .footer-pages .footer-links-wrapper {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 24px 16px;
        margin-bottom: 32px;
    }
    .home-polish .footer-pages .footer-col {
        display: block;
        gap: 0;
    }
    .home-polish .footer-pages .footer-col h4,
    .home-polish .footer-pages .footer-col a {
        margin: 0;
    }
    .home-polish .footer-pages .footer-col h4 {
        font-size: 16px;
        margin-bottom: 16px;
        color: #333;
        font-weight: 700;
    }
    .home-polish .footer-pages .footer-col a {
        display: block;
        font-size: 14px;
        color: #666;
        margin-bottom: 12px;
        line-height: 1.5;
    }
    .home-polish .footer-pages .footer-col:last-of-type {
        grid-column: 1 / -1;
        margin-top: 8px;
        padding-top: 24px;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
    }
    .home-polish .footer-pages .footer-social-list {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
        margin-bottom: 20px;
    }
    .home-polish .footer-pages .footer-contact-item {
        flex: 1;
        min-width: 80px;
        justify-content: center;
        padding: 10px !important;
        background: #f8f8f8;
        border-radius: 8px;
        font-size: 13px;
        min-height: auto;
    }
    .home-polish .footer-pages .footer-contact-meta {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 16px;
        background: #fdfdfd;
        border: 1px solid #f2f2f2;
        border-radius: 10px;
        margin-top: 0;
    }
    .home-polish .footer-pages .footer-contact-meta p {
        white-space: normal;
        overflow-wrap: anywhere;
        font-size: 13px;
    }
    .home-polish .footer-pages .copy {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 8px;
        margin-top: 24px;
        padding-top: 20px;
        border-top: 1px solid rgba(0, 0, 0, 0.08);
        font-size: 12px;
    }

    .home-polish .focus-strip {
        height: auto !important;
        min-height: 32px;
        margin-top: 8px !important;
        padding: 4px 12px !important;
    }

    .home-polish .hero-banner {
        height: auto !important;
        min-height: 300px !important;
        margin-top: 10px !important;
    }

    .home-polish .hero-copy {
        padding: 24px 20px 40px !important;
    }

    .home-polish .hero-copy h1 {
        font-size: 28px !important;
        line-height: 1.2 !important;
    }

    .home-polish .hero-copy h2 {
        font-size: 15px !important;
        margin-top: 8px !important;
    }

    .home-polish .hero-copy p {
        font-size: 13px !important;
        line-height: 1.5 !important;
        margin-top: 10px !important;
    }

    .home-polish .hero-copy .btn-group {
        margin-top: 15px !important;
        gap: 10px !important;
    }

    .home-polish .hero-copy .btn {
        height: 36px !important;
        padding: 0 16px !important;
        font-size: 13px !important;
    }

    .home-polish .panel.block,
    .home-polish .panel.side-box {
        border-radius: 12px;
        margin-bottom: 12px;
    }

    .home-polish .panel.block > .panel-body,
    .home-polish .panel.side-box > .panel-body {
        padding: 12px;
    }

    .home-polish .result-list dd .description {
        line-height: 1.7;
        font-size: 14px;
    }

    .home-polish .form-search .search {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .home-polish #post-form .control-label {
        text-align: left;
        margin-bottom: 4px;
    }

    .home-polish .entry-meta .goods li span {
        float: none;
        display: block;
        max-width: none;
        text-align: left;
        margin-top: 4px;
    }
}

@media (max-width: 414px) {
    .home-polish .header-main {
        gap: 8px 8px;
    }

    .home-polish .header-main .brand img {
        max-width: min(118px, 36vw) !important;
        max-height: 36px !important;
        width: auto !important;
        height: auto !important;
    }

    .home-polish .header-main .search {
        grid-template-columns: 1fr 60px;
    }

    .home-polish .header-main .search-field input {
        padding: 0 8px 0 12px;
        font-size: 13px;
    }

    .home-polish .header-main .search > button[type="submit"] {
        font-size: 13px;
        min-width: 52px;
    }

    .home-polish .header-actions {
        gap: 6px;
    }

    .home-polish .header-actions .register {
        height: 38px !important;
        padding: 0 12px !important;
        font-size: 12px;
    }

    .home-polish .mobile-toggle {
        width: 38px !important;
        height: 38px !important;
        flex: 0 0 38px !important;
    }

    .home-polish .main-nav a {
        min-height: 42px;
        line-height: 1.35;
        font-size: 14px;
    }

    .home-polish .sub-nav a {
        min-height: 40px;
    }

    .home-polish .footer-pages .footer-col h4 {
        margin-bottom: 8px;
    }

    .home-polish .footer-pages .footer-col a {
        margin-bottom: 8px;
    }

    .home-polish .footer-pages .footer-contact-item {
        height: auto;
        min-height: 30px;
        padding: 5px 10px;
    }

    .home-polish .footer-pages .copy {
        gap: 4px;
        font-size: 12px;
    }
}

@media (max-width: 360px) {
    .home-polish .header-main .brand img {
        max-width: min(108px, 34vw) !important;
        max-height: 34px !important;
    }

    .home-polish .header-main .search {
        grid-template-columns: 1fr 54px;
    }

    .home-polish .header-main .search-field input {
        font-size: 12px;
    }

    .home-polish .header-actions .register {
        padding: 0 10px !important;
        font-size: 12px;
    }
}

/* 讲师顾问列表移动端修正：只覆盖 mentors 栏目列表，避免标题被压成竖排。 */
@media (max-width: 760px) {
    .home-polish .lecturer-list {
        display: grid;
        gap: 12px;
        padding: 0;
    }

    .home-polish .lecturer-list .article-card {
        display: grid !important;
        grid-template-columns: 104px minmax(0, 1fr) !important;
        gap: 12px !important;
        align-items: start !important;
        padding: 12px !important;
        border: 1px solid #edf1fb !important;
        border-radius: 14px !important;
        background: #fff;
        box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
    }

    .home-polish .lecturer-list .article-card > img {
        width: 104px !important;
        height: 128px !important;
        grid-row: 1 / span 2;
        border-radius: 12px !important;
        object-fit: cover !important;
        background: #f8fafc !important;
    }

    .home-polish .lecturer-list .article-main {
        min-width: 0;
        display: grid;
        gap: 6px;
    }

    .home-polish .lecturer-list .article-main small {
        margin: 0 !important;
        font-size: 12px !important;
        line-height: 1.35 !important;
        color: #8a93a3 !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .home-polish .lecturer-list .article-main h3 {
        margin: 0 !important;
        font-size: 17px !important;
        line-height: 1.35 !important;
    }

    .home-polish .lecturer-list .article-main h3 a {
        display: -webkit-box;
        overflow: hidden;
        overflow-wrap: normal;
        word-break: normal;
        text-overflow: ellipsis;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .home-polish .lecturer-list .article-main p {
        margin: 0 !important;
        font-size: 13px !important;
        line-height: 1.55 !important;
        color: #667085 !important;
        display: -webkit-box;
        overflow: hidden;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .home-polish .lecturer-list .article-main > div {
        margin-top: 0 !important;
        font-size: 12px !important;
        line-height: 1.4 !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .home-polish .lecturer-list .tag-stack {
        grid-column: 2;
        display: flex !important;
        flex-wrap: wrap;
        gap: 8px !important;
        align-items: center;
        justify-content: flex-start;
        color: #98a2b3 !important;
        font-size: 12px !important;
    }

    .home-polish .lecturer-list .tag-stack .pill {
        height: 26px !important;
        padding: 0 10px !important;
        font-size: 12px !important;
    }
}

@media (max-width: 360px) {
    .home-polish .lecturer-list .article-card {
        grid-template-columns: 92px minmax(0, 1fr) !important;
        gap: 10px !important;
        padding: 10px !important;
    }

    .home-polish .lecturer-list .article-card > img {
        width: 92px !important;
        height: 116px !important;
    }

    .home-polish .lecturer-list .article-main h3 {
        font-size: 16px !important;
    }
}

/* 首页移动端平台推荐卡片修正：使用后台 logo 后避免横条布局挤压内容。 */
@media (max-width: 760px) {
    .home-polish .promo {
        height: auto !important;
        min-height: 0 !important;
        margin-top: 14px !important;
        padding: 14px !important;
        display: grid !important;
        grid-template-columns: 1fr auto;
        gap: 12px;
        align-items: center;
        border: 1px solid #ffe1dc;
        border-radius: 10px !important;
        background-color: #fff;
        background-position: right center;
        overflow: visible;
    }

    .home-polish .promo-left {
        min-width: 0;
        display: grid !important;
        grid-template-columns: auto 1fr;
        gap: 6px 10px !important;
        align-items: center;
    }

    .home-polish .promo-logo-img {
        grid-column: 1 / 3;
        width: 118px !important;
        max-width: 60%;
        height: auto !important;
        max-height: 34px;
        margin: 0 !important;
        object-fit: contain;
        object-position: left center;
    }

    .home-polish .promo b {
        width: auto !important;
        min-width: 64px;
        height: 28px !important;
        padding: 0 10px;
        border-radius: 4px !important;
        font-size: 13px;
        line-height: 1;
        white-space: nowrap;
        justify-self: start;
    }

    .home-polish .promo strong {
        min-width: 0;
        font-size: 17px !important;
        line-height: 1.35;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .home-polish .promo p {
        grid-column: 1 / 3;
        margin: 0 !important;
        font-size: 13px;
        line-height: 1.55;
        color: #667085;
    }

    .home-polish .promo > a {
        width: auto !important;
        min-width: 86px;
        height: 34px !important;
        padding: 0 12px;
        border-radius: 6px !important;
        font-size: 13px;
        align-self: center;
    }

    .home-polish .entry-row {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
        margin-top: 14px !important;
    }

    .home-polish .stats {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    .home-polish .stats article {
        height: auto !important;
        min-height: 76px !important;
        padding: 12px 14px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        box-sizing: border-box !important;
    }

    .home-polish .stats strong {
        font-size: 24px !important;
        line-height: 1.1 !important;
    }

    .home-polish .stats span {
        margin-top: 4px !important;
        font-size: 11px !important;
        line-height: 1.35 !important;
        color: #667085 !important;
        overflow-wrap: anywhere !important;
    }

    .home-polish .entry {
        height: auto !important;
        min-height: 86px !important;
        padding: 12px 10px 12px 60px !important;
        border-radius: 8px !important;
        overflow: visible !important;
        align-items: flex-start !important;
        justify-content: center !important;
        box-sizing: border-box !important;
    }

    .home-polish .entry img {
        left: 10px !important;
        width: 44px !important;
        height: 44px !important;
    }

    .home-polish .entry strong {
        font-size: 15px !important;
        line-height: 1.25 !important;
        margin-bottom: 4px !important;
    }

    .home-polish .entry span {
        font-size: 11px !important;
        line-height: 1.4 !important;
        color: #667085 !important;
        overflow-wrap: anywhere !important;
        word-break: break-word !important;
    }
}

@media (max-width: 360px) {
    .home-polish .promo {
        grid-template-columns: 1fr;
    }

    .home-polish .promo > a {
        justify-self: start;
    }
}

/* 首页移动端：统计区仅保留「栏目数量」「互动评论」，与设计稿一致。 */
@media (max-width: 760px) {
    .home-polish .stats article:nth-child(1),
    .home-polish .stats article:nth-child(2) {
        display: none !important;
    }

    .home-polish .stats {
        gap: 12px !important;
    }

    .home-polish .stats article {
        border: none !important;
        box-shadow: 0 4px 18px rgba(20, 25, 35, 0.07) !important;
    }
}

/* 首页移动端资讯洞察列表：卡片化布局、全宽封面、标题层级与桌面区分。 */
@media (max-width: 760px) {
    .home-polish #news.news-panel:not(.news-channel-panel) {
        padding: 16px 16px 14px !important;
        border-radius: 12px !important;
        background: #fff;
        border: none !important;
        box-shadow: 0 4px 22px rgba(20, 25, 35, 0.06) !important;
    }

    .home-polish #news.news-channel-panel.news-panel {
        border: 1px solid #e8ecf1 !important;
        background: linear-gradient(180deg, #fff 0%, #fbfcfe 100%) !important;
        box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04) !important;
    }

    .home-polish #news:not(.news-channel-panel) .section-head {
        height: auto !important;
        min-height: 40px;
        margin-bottom: 12px;
        padding-bottom: 10px;
        align-items: flex-start;
        border-bottom: 1px solid #eef0f4;
    }

    .home-polish #news:not(.news-channel-panel) .section-head h2 {
        font-size: 18px !important;
        font-weight: 800 !important;
        line-height: 1.25;
        color: #1f2937;
    }

    /* 短红线落在「资讯」两字宽度下，贴近设计稿标题装饰 */
    .home-polish #news:not(.news-channel-panel) .section-head h2::after {
        width: 2.1em;
        max-width: 44px;
        height: 4px;
        bottom: -12px;
        border-radius: 2px;
        background: #ef1218;
    }

    .home-polish #news:not(.news-channel-panel) .section-head a {
        font-size: 12px;
        line-height: 1.6;
        color: #9ca3af !important;
    }

    .home-polish #news:not(.news-channel-panel) .news {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        padding: 18px 0 !important;
        border-bottom: 1px solid #edf0f5 !important;
    }

    .home-polish #news:not(.news-channel-panel) .news.last {
        border-bottom: 0 !important;
        padding-bottom: 4px !important;
    }

    .home-polish #news:not(.news-channel-panel) .thumb {
        width: 100% !important;
        max-width: none;
        height: auto !important;
        min-height: 104px !important;
        aspect-ratio: 16 / 9;
        justify-self: stretch !important;
        padding: 14px 16px !important;
        border-radius: 10px !important;
        background-size: cover !important;
        background-position: center !important;
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
        overflow: hidden;
    }

    .home-polish #news:not(.news-channel-panel) .thumb span {
        display: inline-flex;
        max-width: 7em;
        font-size: 13px;
        font-weight: 800;
        line-height: 1.25;
        white-space: normal;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
    }

    .home-polish #news:not(.news-channel-panel) .news > div:last-child {
        min-width: 0;
        display: grid;
        gap: 8px;
    }

    .home-polish #news:not(.news-channel-panel) .news em {
        font-size: 12px !important;
        line-height: 1.35;
        color: #ef1218 !important;
        font-weight: 700;
    }

    .home-polish #news:not(.news-channel-panel) .news h3 {
        margin: 0 !important;
        font-size: 17px !important;
        line-height: 1.45 !important;
        font-weight: 800 !important;
    }

    .home-polish #news:not(.news-channel-panel) .news h3 a {
        display: -webkit-box;
        overflow: hidden;
        color: #202b3c;
        text-overflow: ellipsis;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .home-polish #news:not(.news-channel-panel) .news p {
        display: -webkit-box;
        overflow: hidden;
        margin: 0 !important;
        color: #667085 !important;
        font-size: 13px !important;
        line-height: 1.65 !important;
        text-overflow: ellipsis;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .home-polish #news:not(.news-channel-panel) .news b {
        margin-top: 2px !important;
        font-size: 12px !important;
        line-height: 1.4;
        color: #ef1218 !important;
    }
}

@media (max-width: 360px) {
    .home-polish #news.news-panel:not(.news-channel-panel) {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    .home-polish #news.news-channel-panel.news-panel {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .home-polish #news:not(.news-channel-panel) .thumb {
        width: 100%;
        min-height: 96px !important;
        height: auto !important;
        aspect-ratio: 16 / 9;
    }

    .home-polish #news:not(.news-channel-panel) .news h3 {
        font-size: 16px !important;
    }
}

/* 首页 PC：资讯洞察（左图右文、交替渐变封面、卡片与字体层级） */
@media (min-width: 761px) {
    .home-polish #news.news-panel {
        padding: 20px 22px 16px;
        border: none;
        border-radius: 12px;
        box-shadow: 0 6px 28px rgba(20, 25, 35, 0.07);
    }

    .home-polish #news .section-head {
        height: auto;
        min-height: 44px;
        margin-bottom: 2px;
        padding-bottom: 12px;
        align-items: flex-start;
        border-bottom: 1px solid #eef0f4;
    }

    .home-polish #news .section-head h2 {
        font-size: 20px;
        font-weight: 800;
        color: #1f2937;
        letter-spacing: -0.02em;
    }

    .home-polish #news .section-head h2::after {
        width: 2.1em;
        max-width: 44px;
        height: 4px;
        bottom: -14px;
        border-radius: 2px;
        background: #ef1218;
    }

    .home-polish #news .section-head a {
        color: #9ca3af;
        font-size: 13px;
        margin-top: 2px;
    }

    .home-polish #news .news {
        display: grid;
        grid-template-columns: 216px minmax(0, 1fr);
        gap: 22px;
        align-items: center;
        padding: 20px 0;
        border-bottom: 1px solid #eef0f5;
    }

    .home-polish #news .news.last {
        border-bottom: 0;
        padding-bottom: 6px;
    }

    .home-polish #news .thumb {
        width: 100%;
        height: 102px;
        min-height: 102px;
        border-radius: 10px;
        padding: 0 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
        overflow: hidden;
        position: relative;
        font-size: 15px;
        font-weight: 800;
        letter-spacing: 0.02em;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.22);
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
        background-size: cover, cover, cover, cover;
        background-position: center;
    }

    .home-polish #news .thumb span {
        text-align: center;
        line-height: 1.35;
        max-width: none;
    }

    /* 第 1、3、5…条：偏红橙渐变 + 浅色圆形层次 */
    .home-polish #news > article.news:nth-child(even) .thumb,
    .home-polish #news > article.news:nth-child(even) .thumb.policy-thumb,
    .home-polish #news > article.news:nth-child(even) .thumb.selection-thumb {
        background-image:
            radial-gradient(ellipse 130% 100% at 90% 42%, rgba(255, 255, 255, 0.2) 0%, transparent 52%),
            radial-gradient(circle at 74% 86%, rgba(255, 255, 255, 0.12) 0%, transparent 44%),
            radial-gradient(circle at 16% 24%, rgba(255, 255, 255, 0.1) 0%, transparent 36%),
            linear-gradient(128deg, #e62820 0%, #ef4528 38%, #ff7a34 88%);
    }

    /* 第 2、4…条：偏黄橙渐变 */
    .home-polish #news > article.news:nth-child(odd) .thumb,
    .home-polish #news > article.news:nth-child(odd) .thumb.policy-thumb,
    .home-polish #news > article.news:nth-child(odd) .thumb.selection-thumb {
        background-image:
            radial-gradient(ellipse 120% 95% at 86% 38%, rgba(255, 255, 255, 0.24) 0%, transparent 50%),
            radial-gradient(circle at 68% 88%, rgba(255, 200, 120, 0.4) 0%, transparent 46%),
            radial-gradient(circle at 20% 26%, rgba(255, 255, 255, 0.14) 0%, transparent 38%),
            linear-gradient(128deg, #ffb020 0%, #ff9538 45%, #ff6b28 100%);
    }

    .home-polish #news > article.news .thumb[style] {
        background-size: cover !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
    }

    .home-polish #news .news > div:last-child {
        display: flex;
        flex-direction: column;
        gap: 8px;
        min-width: 0;
    }

    .home-polish #news .news em {
        font-size: 12px;
        font-weight: 700;
        color: #ef1218;
    }

    .home-polish #news .news h3 {
        margin: 0;
        font-size: 18px;
        font-weight: 800;
        line-height: 1.42;
    }

    .home-polish #news .news h3 a {
        color: #111827;
    }

    .home-polish #news .news h3 a:hover {
        color: #ef1218;
    }

    .home-polish #news .news p {
        margin: 0;
        color: #6b7280;
        font-size: 13px;
        line-height: 1.68;
    }

    .home-polish #news .news b {
        margin-top: 2px;
        font-size: 12px;
        font-weight: 700;
        color: #ef1218;
    }
}

/* 首页移动端会员权益卡片修正：只覆盖 #member，避免内容和按钮挤压。 */
@media (max-width: 760px) {
    .home-polish #member.member {
        height: auto !important;
        min-height: 0 !important;
        margin-top: 14px !important;
        padding: 20px !important;
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        align-items: start !important;
        border-radius: 8px !important;
        background-size: cover !important;
        background-position: center !important;
        overflow: hidden;
    }

    .home-polish #member.member > i {
        width: 50px !important;
        height: 50px !important;
        margin: 0 !important;
        justify-self: start;
    }

    .home-polish #member.member > i::after {
        left: 14px;
        top: 11px;
        width: 22px;
        height: 28px;
    }

    .home-polish #member.member > div {
        min-width: 0;
        display: grid;
        gap: 7px;
    }

    .home-polish #member.member span {
        width: fit-content;
        height: 24px !important;
        padding: 0 8px !important;
        border-radius: 4px !important;
        font-size: 12px !important;
        line-height: 1;
    }

    .home-polish #member.member h2 {
        margin: 0 !important;
        color: #1f2937;
        font-size: 18px !important;
        font-weight: 500;
        line-height: 1.35 !important;
        overflow-wrap: anywhere;
    }

    .home-polish #member.member p {
        margin: 0 !important;
        color: #667085 !important;
        font-size: 13px !important;
        line-height: 1.65 !important;
    }

    .home-polish #member.member > a {
        width: 176px !important;
        max-width: 100%;
        height: 40px !important;
        justify-self: start;
        border-radius: 6px !important;
        font-size: 14px !important;
        line-height: 1;
    }
}

@media (max-width: 360px) {
    .home-polish #member.member {
        padding: 18px !important;
    }

    .home-polish #member.member h2 {
        font-size: 17px !important;
    }

    .home-polish #member.member > a {
        width: 100% !important;
    }
}

/* Header logo responsive compatibility */
@media (min-width: 761px) {
    .home-polish .header-main {
        grid-template-columns: 220px minmax(420px, 1fr) auto !important;
        gap: 20px;
        align-items: center;
    }

    .home-polish .header-main .brand {
        width: 176px;
        height: 58px;
        padding: 6px 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
        border-radius: 8px;
        overflow: hidden;
        transition: transform 0.18s ease, filter 0.18s ease;
    }

    .home-polish .header-main .brand img {
        width: auto !important;
        max-width: 160px;
        height: auto !important;
        max-height: 52px;
        object-fit: contain;
        object-position: center;
        filter: drop-shadow(0 2px 4px rgba(239, 18, 24, 0.12));
    }

    .home-polish .header-main .brand:hover {
        transform: translateY(-1px);
    }
}

/* 侨商集采中心文字标识：用前台模板覆盖旧图片 Logo，避免继续暴露旧业务名称。 */
.home-polish .brand-text,
.home-polish .footer-brand-text {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #0b3a75;
}

.home-polish .header-main .brand-text {
    width: 214px;
    justify-content: flex-start;
    overflow: visible;
}

.home-polish .brand-mark {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: linear-gradient(145deg, #0d4f9b 0%, #0b3a75 100%);
    color: #fff;
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 8px 20px rgba(11, 58, 117, .18);
}

.home-polish .brand-name {
    display: flex;
    min-width: 0;
    flex-direction: column;
    color: #0b3a75;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.15;
    white-space: nowrap;
}

.home-polish .brand-name em {
    margin-top: 4px;
    color: #5b6b7d;
    font-size: 10px;
    font-style: normal;
    font-weight: 700;
    letter-spacing: 0;
}

.home-polish .footer-brand-text {
    margin-bottom: 14px;
}

@media (max-width: 760px) {
    /* 移动端头部：压缩首屏高度，弱化「双大红块」，搜索更易扫读 */
    .home-polish .site-header {
        position: sticky !important;
        top: 0;
        z-index: 100;
        background: #fff !important;
        box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.04);
    }

    .home-polish .header-main {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto auto !important;
        grid-template-rows: auto auto;
        gap: 8px 10px;
        align-items: center;
        padding: 8px 14px 10px;
        box-sizing: border-box;
        background: #fff;
    }

    .home-polish .header-main .brand {
        grid-column: 1;
        grid-row: 1;
        width: auto;
        height: auto;
        min-height: 0;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        overflow: hidden;
    }

    .home-polish .header-main .brand-text {
        width: auto;
        gap: 8px;
    }

    .home-polish .brand-mark {
        width: 34px;
        height: 34px;
        border-radius: 8px;
        font-size: 18px;
    }

    .home-polish .brand-name {
        font-size: 15px;
    }

    .home-polish .brand-name em {
        display: none;
    }

    .home-polish .header-main .brand img {
        width: auto !important;
        max-width: min(120px, 36vw) !important;
        height: auto !important;
        max-height: 38px !important;
        object-fit: contain;
        object-position: left center;
    }

    .home-polish .header-main .search {
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
        min-width: 0;
        height: 42px !important;
    }

    .home-polish .header-main .search-field {
        border-color: #e5e7eb !important;
        background: #f9fafb !important;
        border-radius: 10px 0 0 10px !important;
        border-width: 1px !important;
        border-right: 0 !important;
    }

    .home-polish .header-main .search-field:focus-within {
        border-color: rgba(239, 18, 24, 0.45) !important;
        background: #fff !important;
        box-shadow: 0 0 0 3px rgba(239, 18, 24, 0.12);
    }

    .home-polish .header-main .search-field input {
        height: 40px !important;
        font-size: 15px;
    }

    .home-polish .header-main .search-clear {
        border-left-color: rgba(15, 23, 42, 0.08) !important;
        color: #6b7280;
    }

    .home-polish .header-main .search > button[type="submit"] {
        height: 42px !important;
        border-radius: 0 10px 10px 0 !important;
        font-weight: 700;
        font-size: 14px;
        min-width: 56px;
        padding: 0 10px;
    }

    .home-polish .header-actions {
        grid-column: 2 / 4;
        grid-row: 1;
        width: auto;
        justify-self: end;
        justify-content: flex-end;
        gap: 8px;
        flex-wrap: nowrap;
    }

    .home-polish .header-actions .register {
        width: auto !important;
        min-width: 0;
        height: 36px !important;
        padding: 0 16px !important;
        border-radius: 999px !important;
        background: transparent !important;
        color: #374151 !important;
        border: 1px solid #d1d5db !important;
        font-weight: 500 !important;
        font-size: 13px;
        box-shadow: none !important;
    }

    .home-polish .header-actions .register:hover {
        background: rgba(239, 18, 24, 0.06) !important;
        color: #d60d13 !important;
        border-color: rgba(214, 13, 19, 0.55) !important;
        transform: none !important;
    }

    .home-polish .mobile-toggle {
        width: 40px !important;
        height: 40px !important;
        border-radius: 10px !important;
        border: 1px solid #e5e7eb !important;
        background: #fff !important;
        padding: 0 !important;
        align-items: center;
        justify-content: center;
        gap: 5px !important;
        flex: 0 0 40px !important;
    }

    .home-polish .mobile-toggle i {
        width: 18px !important;
        background: #374151 !important;
    }
}

@media (max-width: 390px) {
    .home-polish .header-main {
        padding-left: 10px;
        padding-right: 10px;
        gap: 8px 8px;
    }

    .home-polish .header-main .brand img {
        max-width: min(108px, 38vw) !important;
        max-height: 34px !important;
    }

    .home-polish .header-actions .register {
        padding: 0 11px !important;
        font-size: 12px;
    }
}

/* Header toolbar polish */
@media (min-width: 761px) {
    .home-polish .site-header {
        background: #fff !important;
        box-shadow: 0 1px 0 rgba(15, 23, 42, 0.08) !important;
    }

    .home-polish .topbar {
        height: 28px !important;
        background: #f8fafc;
        border-bottom: 1px solid #eef2f7;
        color: #64748b;
    }

    .home-polish .topbar-inner {
        height: 28px !important;
    }

    .home-polish .topbar nav {
        gap: 18px;
    }

    .home-polish .header-main {
        min-height: 66px !important;
        height: auto !important;
        grid-template-columns: 190px minmax(520px, 1fr) 126px !important;
        gap: 22px !important;
        padding: 10px 0 9px;
        border-bottom: 1px solid #eef2f7;
    }

    .home-polish .header-main .brand {
        width: 178px;
        height: 48px;
        padding: 2px 4px;
        justify-content: flex-start;
        border-radius: 0;
    }

    .home-polish .header-main .brand img {
        max-width: 168px;
        max-height: 42px;
        filter: none;
    }

    .home-polish .header-main .search {
        height: 40px !important;
        grid-template-columns: minmax(0, 1fr) 70px;
        align-self: center;
    }

    .home-polish .header-main .search-field {
        height: 40px;
        border: 1px solid #e5e7eb !important;
        border-right: 0 !important;
        border-radius: 4px 0 0 4px;
        background: #fff;
        transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }

    .home-polish .header-main .search-field:focus-within {
        border-color: rgba(153, 27, 27, 0.42) !important;
        box-shadow: 0 0 0 3px rgba(153, 27, 27, 0.08);
    }

    .home-polish .header-main .search-field input {
        height: 38px !important;
        padding-left: 16px;
        color: #475569;
        font-size: 13px;
    }

    .home-polish .header-main .search > button[type="submit"] {
        height: 40px !important;
        border-radius: 0 4px 4px 0;
        background: #ef1218;
        font-size: 13px;
        font-weight: 800;
    }

    .home-polish .header-actions {
        justify-content: flex-end;
    }

    .home-polish .header-actions .register {
        width: 118px !important;
        height: 40px !important;
        border-radius: 4px !important;
        background: #ef1218 !important;
        font-size: 14px;
        box-shadow: none !important;
    }

    .home-polish .main-nav {
        height: 42px !important;
        gap: 24px;
        border-top: 0 !important;
    }

    .home-polish .main-nav .nav-item {
        height: 42px;
        display: flex;
        align-items: center;
    }

    .home-polish .main-nav a {
        height: 42px !important;
        padding: 0 2px;
        color: #334155;
        font-size: 14px;
        font-weight: 700;
    }

    .home-polish .main-nav a.active,
    .home-polish .main-nav a:hover {
        color: #ef1218;
    }

    .home-polish .main-nav a.active::after {
        left: 0 !important;
        right: 0 !important;
        bottom: 0;
        height: 2px !important;
        border-radius: 2px 2px 0 0;
    }
}

/* Article detail mobile spacing and disabled interaction compatibility */
.home-polish .article-content .article-donate,
.home-polish .article-content .entry-meta,
.home-polish #comments {
    display: none !important;
}

@media (max-width: 760px) {
    .home-polish .hero-banner {
        height: auto !important;
        min-height: 286px;
        background:
            radial-gradient(circle at 88% 10%, rgba(239, 18, 24, 0.09), transparent 34%),
            radial-gradient(circle at 12% 92%, rgba(255, 143, 36, 0.12), transparent 36%),
            linear-gradient(135deg, #ffffff 0%, #fff8f5 44%, #f8fbff 100%) !important;
        box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08) !important;
        border: 1px solid rgba(239, 18, 24, 0.1);
        display: flex;
        flex-direction: column;
        position: relative;
        overflow: hidden;
        margin-top: 4px !important;
        border-radius: 14px !important;
    }

    .home-polish .hero-banner::before {
        content: "";
        position: absolute;
        top: 18px;
        right: 18px;
        width: 84px;
        height: 84px;
        border: 1px solid rgba(239, 18, 24, 0.08);
        border-radius: 28px;
        background: rgba(255, 255, 255, 0.5);
        transform: rotate(12deg);
        z-index: 1;
    }

    .home-polish .hero-banner::after {
        content: "";
        position: absolute;
        right: 0;
        bottom: 0;
        width: 118px;
        height: 118px;
        background:
            linear-gradient(135deg, rgba(239, 18, 24, 0.08), transparent 64%),
            repeating-linear-gradient(135deg, rgba(239, 18, 24, 0.08) 0 1px, transparent 1px 10px);
        opacity: 0.8;
        z-index: 1;
    }

    .home-polish .hero-accent-line {
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 5px;
        background: linear-gradient(to bottom, #ef1218, #ff8f24);
        z-index: 2;
    }

    .home-polish .hero-copy {
        width: 100% !important;
        padding: 22px 20px 20px 22px !important;
        position: relative;
        z-index: 3;
    }

    .home-polish .workbench-kicker {
        display: inline-block;
        padding: 4px 10px;
        background: #fff0ef;
        color: #ef1218;
        border-radius: 999px;
        font-size: 11px;
        font-weight: 800;
        margin-bottom: 12px;
        border: 1px solid rgba(239, 18, 24, 0.12);
        box-shadow: 0 6px 16px rgba(239, 18, 24, 0.08);
        letter-spacing: 0.2px;
    }

    .home-polish .hero-copy h1 {
        font-size: 32px !important;
        color: #0f172a !important;
        margin-bottom: 9px !important;
        font-weight: 900 !important;
        line-height: 1.08 !important;
        letter-spacing: -0.04em;
        text-shadow: none;
    }

    .home-polish .hero-copy h2 {
        max-width: 92%;
        font-size: 15px !important;
        color: #1f2937 !important;
        line-height: 1.48 !important;
        margin-bottom: 12px !important;
        font-weight: 800 !important;
    }

    .home-polish .hero-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 7px !important;
        margin-bottom: 13px !important;
    }

    .home-polish .hero-tags li {
        min-height: 28px;
        background: rgba(255, 255, 255, 0.82);
        color: #475467;
        padding: 4px 9px;
        border-radius: 8px;
        font-size: 12px;
        font-weight: 700;
        border: 1px solid #e8edf5;
        box-shadow: 0 3px 10px rgba(15, 23, 42, 0.035);
        display: flex;
        align-items: center;
        gap: 5px;
    }

    .home-polish .hero-tags li i {
        color: #ef1218;
        font-size: 12px;
    }

    .home-polish .hero-tags li:before {
        display: none;
    }

    .home-polish .hero-copy p {
        max-width: 94%;
        font-size: 13px !important;
        color: #667085 !important;
        margin-bottom: 15px !important;
        line-height: 1.58 !important;
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .home-polish .hero-btns {
        display: flex;
        gap: 10px;
    }

    .home-polish .hero-btns .btn {
        flex: 1;
        margin: 0 !important;
        height: 42px !important;
        font-size: 14px !important;
        border-radius: 10px !important;
        font-weight: 800 !important;
    }

    .home-polish .hero-btns .btn.red {
        background: linear-gradient(135deg, #ef1218 0%, #d60d13 100%) !important;
        box-shadow: 0 8px 18px rgba(239, 18, 24, 0.22) !important;
        border: none !important;
    }

    .home-polish .hero-btns .btn.dark {
        background: rgba(255, 255, 255, 0.82) !important;
        color: #111827 !important;
        border: 1px solid #cfd6e4 !important;
        box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
    }

    .home-polish .hero-date {
        color: #98a2b3 !important;
        top: 22px !important;
        right: 18px !important;
        font-size: 12px;
    }

    .home-polish .focus-strip {
        margin: 8px 0 !important;
        border: 1px solid rgba(239, 18, 24, 0.1) !important;
        background: #fff !important;
        height: 40px !important;
        border-radius: 10px !important;
        box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04) !important;
        padding: 0 10px !important;
    }

    .home-polish .focus-strip strong {
        font-size: 11px;
        padding: 3px 9px;
        background: linear-gradient(90deg, #ef1218, #ff8f24);
        color: #fff;
        border: none !important;
        border-radius: 6px;
        margin-right: 10px !important;
        font-weight: 800;
    }

    .home-polish .focus-strip span {
        font-size: 12px;
        color: #4b5563;
        font-weight: 500;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .home-polish main.container.page {
        width: calc(100% - 12px);
        margin-left: 6px;
        margin-right: 6px;
        margin-top: 4px !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .home-polish .article-content {
        margin-left: 0;
        margin-right: 0;
        padding: 12px 14px !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    .home-polish .article-content > .article-tag:first-child {
        margin-bottom: 10px !important;
    }

    .home-polish .article-content > .section-head {
        gap: 6px;
        padding-bottom: 8px;
        margin-bottom: 10px;
    }

    .home-polish .article-content > .section-head h2 {
        font-size: 20px !important;
        line-height: 1.32 !important;
    }

    .home-polish .article-content > .section-head + .article-tag {
        margin-bottom: 12px !important;
        gap: 6px 10px;
    }

    .home-polish .article-content .article-text {
        font-size: 15px;
        line-height: 1.78;
    }

    .home-polish .article-content .article-text p {
        margin-bottom: 12px;
    }

    .home-polish .article-content .social-share {
        margin-top: 8px !important;
        margin-bottom: 8px !important;
    }

    .home-polish .article-content .entry-meta,
    .home-polish .article-content .related-article {
        margin-top: 10px !important;
    }
}

@media (max-width: 390px) {
    .home-polish .article-content {
        padding: 10px 12px !important;
    }
}

/* -------------------------------------------------------------------------
   Plan A · 紧凑工作台 — 移动端整页首页
   ------------------------------------------------------------------------- */
@media (max-width: 760px) {
    .home-polish .focus-strip {
        margin: 8px 12px !important;
        width: auto !important;
    }

    .home-polish .seller-workbench-hero {
        --workbench-headline-h: auto;
        --workbench-search-h: auto;
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        margin-top: 10px !important;
        padding: 0 12px;
    }

    .home-polish .seller-workbench-main {
        display: grid !important;
        grid-template-rows: auto auto !important;
        gap: 10px !important;
    }

    .home-polish .seller-workbench-hero .hero-banner {
        min-height: 0 !important;
        height: auto !important;
        margin: 0 !important;
        border-radius: 14px !important;
        border: 1px solid rgba(239, 18, 24, 0.1) !important;
        background:
            radial-gradient(circle at 88% 10%, rgba(239, 18, 24, 0.08), transparent 34%),
            radial-gradient(circle at 12% 92%, rgba(255, 143, 36, 0.1), transparent 36%),
            linear-gradient(135deg, #ffffff 0%, #fff8f5 44%, #f8fbff 100%) !important;
        box-shadow: 0 8px 22px rgba(15, 23, 42, 0.07) !important;
        color: #111827 !important;
    }

    .home-polish .seller-workbench-hero .hero-banner::after {
        content: "" !important;
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        bottom: 0 !important;
        right: auto !important;
        width: 5px !important;
        height: 100% !important;
        background: linear-gradient(to bottom, #ef1218, #ff8f24) !important;
        opacity: 1 !important;
        filter: none !important;
    }

    .home-polish .seller-workbench-hero .hero-banner::before {
        display: none !important;
    }

    .home-polish .seller-workbench-hero .hero-copy {
        padding: 20px 18px 18px 20px !important;
    }

    .home-polish .seller-workbench-hero .hero-copy h1 {
        font-size: 28px !important;
        color: #0f172a !important;
        margin-bottom: 8px !important;
    }

    .home-polish .seller-workbench-hero .hero-copy h2 {
        font-size: 15px !important;
        color: #374151 !important;
        margin-bottom: 10px !important;
        max-width: 100% !important;
    }

    .home-polish .seller-workbench-hero .hero-copy ul.hero-tags,
    .home-polish .seller-workbench-hero .hero-tags {
        gap: 6px !important;
        margin-bottom: 12px !important;
    }

    .home-polish .seller-workbench-hero .hero-copy li {
        background: #fff !important;
        color: #475467 !important;
        border: 1px solid #e8edf5 !important;
        padding: 4px 9px !important;
        height: auto !important;
        font-size: 11px !important;
        font-weight: 700 !important;
    }

    .home-polish .seller-workbench-hero .hero-copy p {
        color: #667085 !important;
        margin-bottom: 14px !important;
        -webkit-line-clamp: 2 !important;
    }

    .home-polish .seller-workbench-hero .hero-btns .btn,
    .home-polish .seller-workbench-hero .hero-copy .btn {
        height: 42px !important;
        border-radius: 10px !important;
    }

    .home-polish .seller-workbench-hero .btn.dark {
        background: #fff !important;
        color: #111827 !important;
        border: 1px solid #cfd6e4 !important;
    }

    .home-polish .seller-workbench-hero .dots {
        display: none !important;
    }

    .home-polish .seller-workbench-search {
        margin: 0 !important;
        padding: 12px !important;
        border-radius: 12px !important;
        height: auto !important;
        min-height: 0 !important;
    }

    .home-polish .seller-workbench-search label {
        font-size: 13px !important;
        margin-bottom: 6px !important;
    }

    .home-polish .seller-workbench-digest,
    .home-polish .seller-workbench-actions {
        margin: 0 !important;
        padding: 12px !important;
        border-radius: 12px !important;
        height: auto !important;
        overflow: visible !important;
    }

    .home-polish .workbench-panel-head {
        padding-bottom: 8px !important;
    }

    .home-polish .workbench-panel-head strong {
        font-size: 16px !important;
    }

    .home-polish .workbench-digest-list {
        gap: 8px !important;
        margin-top: 8px !important;
    }

    .home-polish .workbench-digest-list a {
        padding: 10px !important;
        border-radius: 10px !important;
    }

    .home-polish .workbench-action-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
        margin-top: 8px !important;
    }

    .home-polish .workbench-action-card {
        min-height: 72px !important;
        padding: 10px 10px 10px 30px !important;
        border-radius: 10px !important;
    }

    .home-polish .seller-workbench-actions .hero-side {
        margin-top: 8px !important;
        gap: 8px !important;
    }

    .home-polish .seller-workbench-actions .side-card {
        min-height: 0 !important;
        border-radius: 10px !important;
    }

    .home-polish .seller-workbench-actions .side-text p {
        display: -webkit-box !important;
        -webkit-line-clamp: 1 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        font-size: 11px !important;
    }

    /* 卖家路径 · 四宫格 */
    .home-polish .seller-secondary-lane {
        margin: 10px 12px !important;
        padding: 12px !important;
        border-radius: 12px !important;
        background: #fff !important;
        border: 1px solid #e8ecf1 !important;
        box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04) !important;
    }

    .home-polish .secondary-lane-head p,
    .home-polish .secondary-lane-head > a {
        display: none !important;
    }

    .home-polish .secondary-lane-head {
        margin-bottom: 10px !important;
        padding-bottom: 8px !important;
        border-bottom: 1px solid #f0f2f5;
    }

    .home-polish .secondary-lane-head strong {
        font-size: 16px !important;
    }

    .home-polish .secondary-lane-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }

    .home-polish .secondary-lane-item {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        grid-template-columns: none !important;
        min-height: 0 !important;
        padding: 10px 4px !important;
        border-radius: 10px !important;
        border: 1px solid #edf0f5 !important;
        border-top: 1px solid #edf0f5 !important;
        box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03) !important;
    }

    .home-polish .secondary-lane-item img {
        position: static !important;
        transform: none !important;
        width: 28px !important;
        height: 28px !important;
        margin: 0 0 6px !important;
        grid-row: auto !important;
    }

    .home-polish .secondary-lane-item b {
        font-size: 12px !important;
        white-space: normal !important;
        line-height: 1.25 !important;
    }

    .home-polish .secondary-lane-item span {
        font-size: 10px !important;
        margin-top: 2px !important;
        -webkit-line-clamp: 2 !important;
    }

    /* 工具台 */
    .home-polish .seller-tooldesk {
        margin: 10px 12px 0 !important;
        padding: 0 !important;
    }

    .home-polish .seller-tooldesk-head {
        margin-bottom: 10px !important;
        padding: 0 2px !important;
    }

    .home-polish .seller-tooldesk-head h2 {
        font-size: 18px !important;
    }

    .home-polish .seller-tooldesk-head p {
        font-size: 12px !important;
        line-height: 1.55 !important;
    }

    .home-polish .seller-tooldesk > .cms-resource-hub,
    .home-polish .seller-tooldesk > .toolbox-nav,
    .home-polish .seller-tooldesk > .report-library,
    .home-polish .seller-tooldesk > .event-calendar-hub,
    .home-polish .seller-tooldesk > .service-market-hub,
    .home-polish .seller-tooldesk > .knowledge-system,
    .home-polish .workbench-platform-grid > .platform-war-room {
        margin-top: 10px !important;
        border-radius: 12px !important;
    }

    /* 平台作战室 · 移动端重设计 */
    .platform-war-room,
    .home-polish .platform-war-room {
        padding: 12px !important;
        border-radius: 12px !important;
        border: 1px solid #e8ecf1 !important;
        box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04) !important;
        background: linear-gradient(180deg, #fff 0%, #fbfcfe 100%) !important;
    }

    .platform-war-head {
        margin-bottom: 10px !important;
        gap: 5px !important;
    }

    .platform-war-head span {
        font-size: 11px !important;
    }

    .platform-war-head h2 {
        font-size: 17px !important;
        line-height: 1.3 !important;
    }

    .platform-war-head p {
        font-size: 12px !important;
        line-height: 1.55 !important;
        max-width: none !important;
    }

    .platform-war-head .module-topic-link {
        width: fit-content !important;
        height: 32px !important;
        margin-top: 4px !important;
        padding: 0 12px !important;
        font-size: 12px !important;
        border-radius: 8px !important;
    }

    .platform-war-grid {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 10px !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        padding-bottom: 6px !important;
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .platform-war-grid::-webkit-scrollbar {
        height: 4px;
    }

    .platform-war-grid::-webkit-scrollbar-thumb {
        background: #d0d5dd;
        border-radius: 99px;
    }

    .platform-war-card {
        flex: 0 0 min(86vw, 288px) !important;
        scroll-snap-align: start !important;
        scroll-snap-stop: always !important;
        min-height: 0 !important;
        padding: 12px !important;
        gap: 10px !important;
        border-radius: 12px !important;
        border: 1px solid #edf0f5 !important;
        box-shadow: 0 3px 12px rgba(15, 23, 42, 0.04) !important;
    }

    .platform-war-main {
        display: grid !important;
        grid-template-columns: 42px minmax(0, 1fr) !important;
        grid-template-rows: auto auto auto !important;
        gap: 4px 10px !important;
        align-items: start !important;
    }

    .platform-war-main i {
        grid-row: 1 / span 3 !important;
        grid-column: 1 !important;
        width: 42px !important;
        height: 42px !important;
        border-radius: 11px !important;
        font-size: 17px !important;
    }

    .platform-war-main span {
        grid-column: 2 !important;
        font-size: 11px !important;
    }

    .platform-war-main strong {
        grid-column: 2 !important;
        font-size: 17px !important;
        line-height: 1.25 !important;
    }

    .platform-war-main em {
        grid-column: 2 !important;
        min-height: 0 !important;
        font-size: 12px !important;
        line-height: 1.45 !important;
        display: -webkit-box !important;
        overflow: hidden !important;
        -webkit-box-orient: vertical !important;
        -webkit-line-clamp: 2 !important;
    }

    .platform-war-actions {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 6px !important;
    }

    .platform-war-actions a {
        height: 34px !important;
        padding: 0 8px !important;
        border-radius: 8px !important;
        font-size: 11px !important;
        font-weight: 700 !important;
        background: #fff !important;
        border: 1px solid #e5eaf0 !important;
        white-space: nowrap !important;
    }

    .platform-war-actions a:hover {
        border-color: rgba(239, 18, 24, 0.3) !important;
        color: var(--red) !important;
        background: #fff7f7 !important;
    }

    /* 工具台模块 · 横滑卡片 + 2×2（对齐平台作战室） */
    .toolbox-nav,
    .report-library,
    .event-calendar-hub,
    .service-market-hub,
    .knowledge-system,
    .cms-resource-hub,
    .home-polish .seller-tooldesk > .toolbox-nav,
    .home-polish .seller-tooldesk > .report-library,
    .home-polish .seller-tooldesk > .event-calendar-hub,
    .home-polish .seller-tooldesk > .service-market-hub,
    .home-polish .seller-tooldesk > .knowledge-system,
    .home-polish .seller-tooldesk > .cms-resource-hub {
        padding: 12px !important;
        border-radius: 12px !important;
        border: 1px solid #e8ecf1 !important;
        box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04) !important;
    }

    .toolbox-nav-head,
    .report-library-head,
    .event-calendar-head,
    .service-market-head,
    .knowledge-system-head,
    .resource-hub-head {
        margin-bottom: 10px !important;
        gap: 5px !important;
    }

    .toolbox-nav-head span,
    .report-library-head span,
    .event-calendar-head span,
    .service-market-head span,
    .knowledge-system-head span,
    .resource-hub-head span {
        font-size: 11px !important;
    }

    .toolbox-nav-head h2,
    .report-library-head h2,
    .event-calendar-head h2,
    .service-market-head h2,
    .knowledge-system-head h2,
    .resource-hub-head h2 {
        font-size: 17px !important;
        line-height: 1.3 !important;
    }

    .toolbox-nav-head p,
    .report-library-head p,
    .event-calendar-head p,
    .service-market-head p,
    .knowledge-system-head p,
    .resource-hub-head p {
        font-size: 12px !important;
        line-height: 1.55 !important;
        max-width: none !important;
    }

    .toolbox-nav-head .module-topic-link,
    .report-library-head .module-topic-link,
    .event-calendar-head .module-topic-link,
    .service-market-head .module-topic-link,
    .knowledge-system-head .module-topic-link {
        width: fit-content !important;
        height: 32px !important;
        margin-top: 4px !important;
        padding: 0 12px !important;
        font-size: 12px !important;
        border-radius: 8px !important;
    }

    .toolbox-nav-grid,
    .report-library-grid,
    .event-calendar-grid,
    .service-market-grid,
    .knowledge-system-grid,
    .resource-hub-grid {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 10px !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        padding-bottom: 6px !important;
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .toolbox-nav-grid::-webkit-scrollbar,
    .report-library-grid::-webkit-scrollbar,
    .event-calendar-grid::-webkit-scrollbar,
    .service-market-grid::-webkit-scrollbar,
    .knowledge-system-grid::-webkit-scrollbar,
    .resource-hub-grid::-webkit-scrollbar {
        height: 4px;
    }

    .toolbox-nav-grid::-webkit-scrollbar-thumb,
    .report-library-grid::-webkit-scrollbar-thumb,
    .event-calendar-grid::-webkit-scrollbar-thumb,
    .service-market-grid::-webkit-scrollbar-thumb,
    .knowledge-system-grid::-webkit-scrollbar-thumb,
    .resource-hub-grid::-webkit-scrollbar-thumb {
        background: #d0d5dd;
        border-radius: 99px;
    }

    .toolbox-nav-card,
    .report-library-card,
    .event-calendar-card,
    .service-market-card,
    .knowledge-system-card,
    .resource-hub-card {
        flex: 0 0 min(86vw, 288px) !important;
        scroll-snap-align: start !important;
        scroll-snap-stop: always !important;
        min-height: 0 !important;
        padding: 12px !important;
        gap: 10px !important;
        border-radius: 12px !important;
        border: 1px solid #edf0f5 !important;
        box-shadow: 0 3px 12px rgba(15, 23, 42, 0.04) !important;
    }

    .toolbox-nav-main,
    .report-library-main,
    .event-calendar-main,
    .service-market-main,
    .resource-hub-main,
    .knowledge-system-main {
        display: grid !important;
        grid-template-columns: 42px minmax(0, 1fr) !important;
        grid-template-rows: auto auto auto !important;
        gap: 4px 10px !important;
        align-items: start !important;
    }

    .toolbox-nav-main i,
    .report-library-main i,
    .event-calendar-main i,
    .service-market-main i,
    .resource-hub-main i,
    .knowledge-system-main i,
    .resource-hub-main .resource-hub-icon-img {
        grid-row: 1 / span 3 !important;
        grid-column: 1 !important;
        width: 42px !important;
        height: 42px !important;
        border-radius: 11px !important;
        font-size: 17px !important;
        object-fit: cover !important;
    }

    .toolbox-nav-main span,
    .report-library-main span,
    .event-calendar-main span,
    .service-market-main span,
    .resource-hub-main span,
    .knowledge-system-main span {
        grid-column: 2 !important;
        font-size: 11px !important;
    }

    .toolbox-nav-main strong,
    .report-library-main strong,
    .event-calendar-main strong,
    .service-market-main strong,
    .resource-hub-main strong,
    .knowledge-system-main strong {
        grid-column: 2 !important;
        font-size: 17px !important;
        line-height: 1.25 !important;
    }

    .toolbox-nav-main em,
    .report-library-main em,
    .event-calendar-main em,
    .service-market-main em,
    .resource-hub-main em,
    .knowledge-system-main em {
        grid-column: 2 !important;
        min-height: 0 !important;
        font-size: 12px !important;
        line-height: 1.45 !important;
        display: -webkit-box !important;
        overflow: hidden !important;
        -webkit-box-orient: vertical !important;
        -webkit-line-clamp: 2 !important;
    }

    .toolbox-nav-actions,
    .report-library-actions,
    .event-calendar-actions,
    .service-market-actions,
    .resource-hub-actions,
    .knowledge-system-actions {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 6px !important;
    }

    .toolbox-nav-actions a,
    .report-library-actions a,
    .event-calendar-actions a,
    .service-market-actions a,
    .resource-hub-actions a,
    .knowledge-system-actions a {
        height: 34px !important;
        padding: 0 8px !important;
        border-radius: 8px !important;
        font-size: 11px !important;
        font-weight: 700 !important;
        background: #fff !important;
        border: 1px solid #e5eaf0 !important;
        white-space: nowrap !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .toolbox-nav-actions a:hover,
    .report-library-actions a:hover,
    .event-calendar-actions a:hover,
    .service-market-actions a:hover,
    .resource-hub-actions a:hover,
    .knowledge-system-actions a:hover {
        border-color: rgba(239, 18, 24, 0.3) !important;
        color: var(--red) !important;
        background: #fff7f7 !important;
    }

    /* 主内容区 */
    .home-polish .content-layout {
        margin-top: 10px !important;
        gap: 10px !important;
        padding: 0 12px 16px !important;
    }

    .home-polish .main-col,
    .home-polish .side-col {
        gap: 10px !important;
        grid-template-columns: minmax(0, 1fr) !important;
        min-width: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .home-polish .main-col > *,
    .home-polish .side-col > * {
        min-width: 0 !important;
        max-width: 100% !important;
    }

    .home-polish .panel.block,
    .home-polish .panel.side-box,
    .home-polish .news-channel-panel {
        border-radius: 12px !important;
        border: 1px solid #e8ecf1 !important;
        box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04) !important;
        margin-bottom: 0 !important;
    }

    .home-polish #news.news-channel-panel {
        padding: 14px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .home-polish .news-channel-head {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
        padding-bottom: 10px !important;
    }

    .home-polish .news-channel-head h2 {
        font-size: 17px !important;
    }

    .home-polish .news-channel-head a {
        align-self: flex-start !important;
        font-size: 12px !important;
    }

    .home-polish .news-channel-tabs {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        margin-top: 10px !important;
        padding-bottom: 4px !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .home-polish .news-channel-tabs::-webkit-scrollbar {
        display: none;
    }

    .home-polish .news-channel-tab {
        flex: 0 0 auto !important;
    }

    .home-polish .news-channel-grid {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 10px !important;
        margin-top: 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .home-polish .news-channel-card,
    .home-polish .news-channel-card.featured {
        grid-column: 1 / -1 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        padding: 12px !important;
        border-radius: 10px !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 10px !important;
        min-height: 0 !important;
    }

    .home-polish .news-channel-card.featured {
        background: linear-gradient(135deg, #fff 0%, #fff8f8 100%) !important;
    }

    .home-polish .news-channel-thumb,
    .home-polish .news-channel-card.featured .news-channel-thumb {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        min-height: 0 !important;
        height: auto !important;
        aspect-ratio: 16 / 9 !important;
        border-radius: 10px !important;
        box-sizing: border-box !important;
        text-decoration: none !important;
    }

    .home-polish .news-channel-card > div {
        min-width: 0 !important;
        display: grid !important;
        gap: 6px !important;
    }

    .home-polish .news-channel-card em {
        font-size: 11px !important;
    }

    .home-polish .news-channel-card h3 {
        font-size: 15px !important;
        margin: 0 !important;
        line-height: 1.4 !important;
    }

    .home-polish .news-channel-card.featured h3 {
        font-size: 17px !important;
    }

    .home-polish .news-channel-card p {
        font-size: 12px !important;
        line-height: 1.55 !important;
        -webkit-line-clamp: 2 !important;
    }

    .home-polish .news-channel-card.featured p {
        -webkit-line-clamp: 3 !important;
    }

    .home-polish .news-channel-card b {
        margin-top: 2px !important;
        font-size: 11px !important;
    }

    .home-polish #courses .course-row {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 10px !important;
        overflow-x: auto !important;
        padding-bottom: 4px !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .home-polish #courses .course-row article {
        flex: 0 0 min(78vw, 280px) !important;
        min-height: 0 !important;
        padding: 12px !important;
        border: 1px solid #edf0f5 !important;
        border-radius: 12px !important;
        background: #fff !important;
        box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04) !important;
    }

    .home-polish #courses .section-head,
    .home-polish .topic-venue-head,
    .home-polish .service-entrance-head {
        margin-bottom: 10px !important;
        padding-bottom: 8px !important;
    }

    .home-polish #courses .section-head h2,
    .home-polish .topic-venue-head h2,
    .home-polish .service-entrance-head h2 {
        font-size: 17px !important;
    }

    .home-polish .side-col .panel.side-box {
        padding: 0 !important;
    }

    .home-polish .side-col .section-head.compact {
        padding: 12px 12px 8px !important;
    }

    .home-polish .side-col .section-head.compact h2 {
        font-size: 16px !important;
    }

    .home-polish .side-col .panel.side-box > .panel-body,
    .home-polish .side-col .side-box.live,
    .home-polish .side-col .side-box:not(.live) {
        padding: 0 12px 12px !important;
    }

    .home-polish #member.member {
        margin: 10px 12px 20px !important;
        border-radius: 12px !important;
    }
}

@media (max-width: 390px) {
    .home-polish .secondary-lane-grid {
        gap: 6px !important;
    }

    .home-polish .secondary-lane-item b {
        font-size: 11px !important;
    }

    .home-polish .secondary-lane-item span {
        font-size: 9px !important;
    }

    .home-polish .seller-workbench-hero .hero-copy h1 {
        font-size: 26px !important;
    }
}

/* -------------------------------------------------------------------------
   右侧快捷导航（参考雨果跨境 cifnews.com 固定侧栏：竖条 + 图标 + 文案）
   ------------------------------------------------------------------------- */
.site-dock {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 95;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 72px;
    padding: 10px 0 8px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-right: 0;
    border-radius: 10px 0 0 10px;
    box-shadow: -4px 8px 28px rgba(15, 23, 42, 0.08);
    font-size: 11px;
    line-height: 1.2;
    color: #6b7280;
}

.site-dock__badge {
    align-self: center;
    width: 44px;
    height: 44px;
    margin: 0 auto 10px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 11px;
    font-weight: 800;
    color: #fff !important;
    line-height: 1.15;
    background: linear-gradient(145deg, #ff8f24 0%, #ef1218 52%, #d60d13 100%);
    box-shadow: 0 4px 12px rgba(239, 18, 24, 0.35);
    text-decoration: none !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.site-dock__badge:hover {
    transform: scale(1.04);
    box-shadow: 0 6px 16px rgba(239, 18, 24, 0.38);
    color: #fff !important;
}

.site-dock__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 64px;
    padding: 8px 6px;
    margin: 0;
    border: 0;
    background: transparent;
    color: inherit !important;
    text-decoration: none !important;
    cursor: pointer;
    font: inherit;
    transition: background 0.18s ease, color 0.18s ease;
}

.site-dock__item + .site-dock__item {
    border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.site-dock__item:hover,
.site-dock__item:focus-visible {
    background: #f3f4f6;
    color: #111827 !important;
    outline: none;
}

.site-dock__icon {
    font-size: 20px !important;
    color: #374151;
    line-height: 1;
}

.site-dock__item:hover .site-dock__icon,
.site-dock__item:focus-visible .site-dock__icon {
    color: #ef1218;
}

.site-dock__item span {
    display: block;
    max-width: 100%;
    text-align: center;
    word-break: keep-all;
    white-space: nowrap;
}

/* 回到顶部：向下滚动一定距离后才出现（桌面为侧栏最后一项，移动端为单独圆形按钮） */
.site-dock__top {
    display: none !important;
}

@media (min-width: 761px) {
    body.backtop-visible .site-dock__top {
        display: flex !important;
    }
}

.site-backtop-mobile {
    display: none;
    position: fixed;
    right: 14px;
    bottom: calc(22px + env(safe-area-inset-bottom, 0px));
    z-index: 96;
    width: 48px;
    height: 48px;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff !important;
    font-size: 20px;
    line-height: 1;
    background: linear-gradient(145deg, #ff8f24 0%, #ef1218 52%, #d60d13 100%);
    box-shadow: 0 6px 20px rgba(239, 18, 24, 0.38);
    transition: transform 0.2s ease, opacity 0.22s ease;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.92);
}

.site-backtop-mobile:hover {
    transform: scale(1);
}

@media (min-width: 761px) {
    .site-backtop-mobile {
        display: none !important;
    }
}

@media (max-width: 760px) {
    .site-dock__top {
        display: none !important;
    }

    body.backtop-visible .site-backtop-mobile {
        display: flex !important;
        opacity: 1;
        pointer-events: auto;
        transform: scale(1);
    }

    .site-dock {
        display: none;
    }
}

/* 首页二次清理后主内容区不再保留右侧信息栏。 */
.home-polish .homepage-main-layout {
    grid-template-columns: minmax(0, 1fr);
}

.home-polish .homepage-main-layout .main-col {
    width: 100%;
    min-width: 0;
}

.home-polish .footer-pages .footer-social-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Mobile footer compact redesign */
@media (max-width: 768px) {
    .home-polish .footer-pages {
        margin-top: 0 !important;
        border-top: 3px solid var(--red);
        background: linear-gradient(180deg, #fff 0%, #fff 58%, #fff8f6 100%);
        box-shadow: inset 0 1px 0 rgba(15, 23, 42, 0.04);
    }

    .home-polish .footer-pages .footer-inner {
        width: 100% !important;
        max-width: none !important;
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 18px !important;
        padding: 26px 18px 96px !important;
    }

    .home-polish .footer-pages .footer-brand {
        display: grid !important;
        grid-template-columns: minmax(112px, 132px) minmax(0, 1fr);
        align-items: center;
        gap: 12px;
        margin: 0 !important;
        padding: 0 0 18px !important;
        text-align: left;
        border-bottom: 1px solid rgba(239, 18, 24, 0.14) !important;
    }

    .home-polish .footer-pages .footer-brand img {
        width: 132px !important;
        max-width: 100%;
        height: auto !important;
        margin: 0 !important;
    }

    .home-polish .footer-pages .footer-brand p {
        max-width: none !important;
        margin: 0 !important;
        color: #475467;
        font-size: 12px;
        line-height: 1.65;
    }

    .home-polish .footer-pages .footer-links-wrapper {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px 12px;
        margin: 0 !important;
        padding: 0 0 16px !important;
        border-bottom: 1px solid rgba(239, 18, 24, 0.12);
    }

    .home-polish .footer-pages .footer-col {
        min-width: 0;
        margin: 0 !important;
        padding: 0 !important;
    }

    .home-polish .footer-pages .footer-col h4 {
        margin: 0 0 9px !important;
        color: #111827;
        font-size: 14px;
        line-height: 1.3;
        font-weight: 800;
    }

    .home-polish .footer-pages .footer-col a {
        display: block;
        margin: 0 0 7px !important;
        color: #667085 !important;
        font-size: 12px;
        line-height: 1.55;
        overflow-wrap: anywhere;
    }

    .home-polish .footer-pages .footer-links-wrapper > .footer-col:last-of-type {
        grid-column: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        border-top: 0 !important;
    }

    .home-polish .footer-pages .footer-inner > .footer-col:last-of-type {
        display: grid;
        gap: 12px;
        grid-column: auto !important;
        min-width: 0;
        margin: 0 !important;
        padding: 0 !important;
        border-top: 0 !important;
    }

    .home-polish .footer-pages .footer-social-list {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin: 0 !important;
    }

    .home-polish .footer-pages .footer-contact-item {
        width: 100%;
        min-width: 0;
        min-height: 36px;
        height: 36px;
        justify-content: center;
        padding: 0 8px !important;
        border: 1px solid rgba(239, 18, 24, 0.12);
        border-radius: 10px;
        background: #fff;
        color: #344054 !important;
        font-size: 12px;
        font-weight: 800;
        box-shadow: 0 6px 16px rgba(239, 18, 24, 0.05);
    }

    .home-polish .footer-pages .footer-contact-item .social-icon {
        width: 18px;
        height: 18px;
        flex: 0 0 18px;
    }

    .home-polish .footer-pages .footer-contact-item span {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .home-polish .footer-pages .footer-contact-meta {
        display: grid;
        grid-template-columns: 1fr;
        gap: 5px;
        margin: 0 !important;
        padding: 12px 14px;
        border: 1px solid rgba(239, 18, 24, 0.12);
        border-radius: 10px;
        background: #fff;
        color: #667085;
        box-shadow: 0 8px 20px rgba(15, 23, 42, 0.035);
    }

    .home-polish .footer-pages .footer-contact-meta b {
        margin: 0 0 2px !important;
        color: #111827;
        font-size: 13px;
        line-height: 1.35;
    }

    .home-polish .footer-pages .footer-contact-meta p {
        margin: 0;
        color: #667085;
        font-size: 12px;
        line-height: 1.55;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .home-polish .footer-pages .copy {
        display: grid;
        gap: 4px !important;
        margin: 0 !important;
        padding-top: 14px !important;
        border-top: 1px solid rgba(15, 23, 42, 0.08);
        color: #98a2b3;
        font-size: 11px;
        line-height: 1.6;
        text-align: left;
    }

    .site-backtop-mobile {
        right: 14px;
        bottom: calc(16px + env(safe-area-inset-bottom, 0px));
        width: 44px;
        height: 44px;
        font-size: 18px;
        box-shadow: 0 8px 22px rgba(239, 18, 24, 0.34);
    }
}

@media print {
    .site-dock,
    .site-backtop-mobile {
        display: none !important;
    }
}

/* 侨商集采中心页头最终覆盖：放在文件尾部，压过旧 Logo 兼容规则。 */
@media (min-width: 761px) {
    .home-polish .header-main {
        grid-template-columns: 236px minmax(460px, 1fr) auto !important;
    }

    .home-polish .header-main .brand-text {
        width: 228px !important;
        height: 52px !important;
        padding: 0 !important;
        justify-content: flex-start !important;
        overflow: visible !important;
    }
}

.home-polish .brand-text .brand-name em,
.home-polish .footer-brand-text .brand-name em {
    display: block;
}

/* Blue administrative header bridge */
.home-polish .site-header {
    border-bottom: 1px solid var(--admin-border, #d9e5f2);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 6px 18px rgba(11, 58, 117, 0.08);
}

.home-polish .topbar {
    color: var(--admin-muted, #5b6b7d);
    background: var(--admin-page-bg, #f3f7fc);
    border-bottom: 1px solid var(--admin-border, #d9e5f2);
}

.home-polish .topbar a:hover,
.home-polish .user-nickname:hover,
.home-polish .sub-nav a:hover {
    color: var(--admin-blue, #0d4f9b) !important;
}

.home-polish .header-actions .register {
    border: 1px solid var(--admin-blue, #0d4f9b);
    background: linear-gradient(180deg, var(--admin-blue-light, #1f6fb8) 0%, var(--admin-blue, #0d4f9b) 100%);
    color: #fff !important;
    box-shadow: 0 8px 18px rgba(13, 79, 155, 0.18);
}

.home-polish .header-actions .register:hover {
    background: var(--admin-blue-dark, #0b3a75);
    box-shadow: 0 10px 22px rgba(11, 58, 117, 0.22);
}

.home-polish .header-main .search > button[type="submit"] {
    border: 1px solid var(--admin-blue-dark, #0b3a75) !important;
    background: linear-gradient(180deg, var(--admin-blue, #0d4f9b) 0%, var(--admin-blue-dark, #0b3a75) 100%) !important;
    color: #fff !important;
    box-shadow: 0 8px 18px rgba(13, 79, 155, 0.18) !important;
}

.home-polish .header-main .search > button[type="submit"]:hover,
.home-polish .header-main .search > button[type="submit"]:focus-visible {
    border-color: var(--admin-blue-dark, #0b3a75) !important;
    background: var(--admin-blue-dark, #0b3a75) !important;
    color: #fff !important;
    outline: none;
}

.home-polish .header-actions .register {
    border: 1px solid var(--admin-blue-dark, #0b3a75) !important;
    background: linear-gradient(180deg, var(--admin-blue, #0d4f9b) 0%, var(--admin-blue-dark, #0b3a75) 100%) !important;
    color: #fff !important;
    box-shadow: 0 8px 18px rgba(13, 79, 155, 0.18) !important;
}

.home-polish .header-actions .register:hover,
.home-polish .header-actions .register:focus-visible {
    border-color: var(--admin-blue-dark, #0b3a75) !important;
    background: var(--admin-blue-dark, #0b3a75) !important;
    color: #fff !important;
    outline: none;
}

.home-polish .search-field,
.home-polish .search > input[name="q"],
.home-polish .search > input[type="search"] {
    border-color: var(--admin-blue, #0d4f9b);
}

.home-polish .search-field:focus-within {
    border-color: var(--admin-blue-dark, #0b3a75);
    box-shadow: 0 0 0 3px rgba(13, 79, 155, 0.12);
}

.home-polish .search-clear {
    border-left-color: rgba(13, 79, 155, 0.22);
}

.home-polish .search-clear:hover {
    color: var(--admin-blue, #0d4f9b);
}

.home-polish .search > button[type="submit"],
.home-polish .main-nav a.active::after {
    background: var(--admin-blue, #0d4f9b);
}

.home-polish .main-nav {
    border-top-color: var(--admin-border, #d9e5f2);
}

.home-polish .main-nav a.active,
.home-polish .main-nav a:hover {
    color: var(--admin-blue, #0d4f9b);
}

.home-polish .mobile-toggle {
    border-color: var(--admin-border, #d9e5f2);
}

.home-polish .mobile-toggle i {
    background: var(--admin-blue-dark, #0b3a75);
}

.home-polish .site-backtop-mobile {
    background: linear-gradient(145deg, var(--admin-blue-light, #1f6fb8) 0%, var(--admin-blue, #0d4f9b) 54%, var(--admin-blue-dark, #0b3a75) 100%);
    box-shadow: 0 8px 22px rgba(13, 79, 155, 0.28);
}

.home-polish .site-dock__top {
    background: linear-gradient(145deg, var(--admin-blue, #0d4f9b) 0%, var(--admin-blue-dark, #0b3a75) 100%) !important;
    color: #fff !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.home-polish .site-dock__top .site-dock__icon,
.home-polish .site-dock__top:hover .site-dock__icon,
.home-polish .site-dock__top:focus-visible .site-dock__icon {
    color: #fff !important;
}

.home-polish .site-dock__top:hover,
.home-polish .site-dock__top:focus-visible {
    background: var(--admin-blue-dark, #0b3a75) !important;
    color: #fff !important;
}

@media (max-width: 760px) {
    .home-polish .main-nav {
        border-top: 1px solid var(--admin-border, #d9e5f2);
        box-shadow: 0 8px 22px rgba(11, 58, 117, 0.1);
    }

    .home-polish .main-nav a.active,
    .home-polish .main-nav a:hover {
        background: var(--admin-blue-soft, #eaf2fb);
    }
}

/* Mobanwang Real Space header adaptation */
.home-polish .template-topbar {
    height: 38px;
    color: #d6e7fb;
    background: #072f63;
    border-bottom: 0;
}

.home-polish .template-topbar .topbar-inner {
    height: 38px;
}

.home-polish .template-topbar span,
.home-polish .template-topbar a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #d6e7fb !important;
}

.home-polish .template-topbar a:hover {
    color: #fff !important;
}

.home-polish .template-topbar nav {
    gap: 18px;
}

.home-polish .template-header-main {
    min-height: 86px;
    height: auto;
    grid-template-columns: 286px minmax(360px, 1fr) auto !important;
    padding-top: 14px;
    padding-bottom: 14px;
}

.home-polish .template-header-main .brand-text {
    width: 278px !important;
}

.home-polish .template-header-main .brand-mark {
    background: linear-gradient(145deg, #0d4f9b 0%, #37a2d8 100%);
    box-shadow: 0 10px 22px rgba(13, 79, 155, .22);
}

.home-polish .template-header-main .brand-name {
    color: #072f63;
}

.home-polish .template-header-main .brand-name em {
    color: #5b6b7d;
}

.home-polish .template-header-main .search {
    height: 42px;
    grid-template-columns: 1fr 76px;
}

.home-polish .template-header-main .search-field {
    border-width: 1px;
    border-color: #c8d8ea;
    border-radius: 0;
}

.home-polish .template-header-main .search-field input {
    height: 40px;
}

.home-polish .template-header-main .search > button[type="submit"] {
    height: 42px;
    border-radius: 0 !important;
}

.home-polish .template-header-main .register {
    width: auto;
    min-width: 130px;
    border-radius: 0 !important;
}

.home-polish .template-main-nav {
    height: 52px;
    justify-content: center;
    gap: 4px;
    border-top: 1px solid #e3edf7;
}

.home-polish .template-main-nav a {
    height: 52px;
    padding: 0 13px;
    color: #173b64;
    font-size: 14px;
}

.home-polish .template-main-nav a.active,
.home-polish .template-main-nav a:hover {
    color: #0d4f9b !important;
}

.home-polish .template-main-nav a.active::after {
    left: 13px;
    right: 13px;
    height: 4px;
    background: #d9a441;
}

.home-polish .footer-pages {
    border-top: 0;
    background:
        linear-gradient(90deg, rgba(7, 47, 99, .98), rgba(10, 60, 122, .96)),
        url("images/realspace-template/project-2-1200x800-original.jpg") center/cover no-repeat;
    color: #d6e7fb;
}

.home-polish .footer-pages .brand-name,
.home-polish .footer-pages .footer-col h4 {
    color: #fff;
}

.home-polish .footer-pages .brand-name em,
.home-polish .footer-pages .footer-brand p,
.home-polish .footer-pages .footer-col a,
.home-polish .footer-pages .footer-contact-meta,
.home-polish .footer-pages .copy {
    color: #d6e7fb !important;
}

.home-polish .footer-pages .footer-col a:hover {
    color: #fff !important;
}

.home-polish .footer-pages .footer-contact-item,
.home-polish .footer-pages .footer-contact-meta {
    border-color: rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .08);
}

.home-polish .footer-pages .footer-contact-item .social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 1;
    text-align: center;
}

.home-polish .footer-pages .footer-contact-meta {
    display: none !important;
}

.home-polish .site-dock__badge {
    background: linear-gradient(145deg, #37a2d8 0%, #0d4f9b 55%, #072f63 100%);
    box-shadow: 0 6px 16px rgba(13, 79, 155, .32);
}

.home-polish .site-dock__item:hover .site-dock__icon,
.home-polish .site-dock__item:focus-visible .site-dock__icon {
    color: #0d4f9b;
}

.template-mobile-toggle {
    position: fixed;
    left: min(330px, calc(100vw - 54px));
    right: auto;
    top: 18px;
    z-index: 140;
    width: 40px;
    height: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0;
    border: 1px solid #0d4f9b;
    border-radius: 10px;
    background: #0d4f9b;
    box-shadow: 0 8px 18px rgba(13, 79, 155, .18);
}

.template-mobile-toggle i {
    width: 18px;
    height: 2px;
    display: block;
    border-radius: 99px;
    background: #fff;
}

@media (min-width: 761px) {
    .template-mobile-toggle {
        display: none !important;
    }
}

@media (max-width: 980px) {
    .home-polish .template-header-main {
        grid-template-columns: minmax(0, 1fr) auto !important;
    }

    .home-polish .template-header-main .search {
        grid-column: 1 / -1;
        grid-row: 2;
    }
}

@media (max-width: 760px) {
    .home-polish .container,
    .home-polish .page {
        width: 100% !important;
        max-width: 100% !important;
    }

    .home-polish .template-header-main {
        position: relative;
        grid-template-columns: minmax(0, 1fr) auto !important;
        padding-top: 10px;
        padding-bottom: 10px;
        padding-left: 14px;
        padding-right: 14px;
    }

    .home-polish .template-header-main .brand-text {
        width: auto !important;
    }

    .home-polish .template-header-main .brand-name {
        font-size: 15px;
    }

    .home-polish .template-header-main .brand-name em {
        font-size: 10px;
    }

    body.home-polish:has(.home-d-hero) .template-header-main .search {
        display: none;
    }

    .home-polish .template-header-main .register {
        display: none;
    }

    .home-polish .template-header-main .mobile-toggle {
        display: flex !important;
        justify-content: center;
        align-items: center;
        border-color: #0d4f9b !important;
        background: #0d4f9b !important;
        box-shadow: 0 8px 18px rgba(13, 79, 155, .18);
    }

    .home-polish .template-header-main .mobile-toggle i {
        background: #fff !important;
    }

    .home-polish .template-header-main .header-actions {
        position: fixed;
        right: 14px;
        top: 18px;
        z-index: 120;
        display: flex !important;
        width: auto;
        transform: none;
        justify-content: flex-end;
        overflow: visible;
    }

    .home-polish .template-main-nav {
        justify-content: flex-start;
        gap: 0;
    }

    .home-polish .template-main-nav a {
        height: auto;
        padding: 12px 20px !important;
    }

    .home-polish .footer-pages {
        background: #072f63 !important;
    }

    .home-polish .footer-pages .footer-contact-meta {
        background: rgba(255, 255, 255, .08);
    }

    .template-mobile-toggle {
        position: fixed;
        left: min(330px, calc(100vw - 54px));
        right: auto;
        top: 18px;
        z-index: 140;
        width: 40px;
        height: 40px;
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        padding: 0;
        border: 1px solid #0d4f9b;
        border-radius: 10px;
        background: #0d4f9b;
        box-shadow: 0 8px 18px rgba(13, 79, 155, .18);
    }

    .template-mobile-toggle i {
        width: 18px;
        height: 2px;
        display: block;
        border-radius: 99px;
        background: #fff;
    }
}
