.logo-section,
.nav-item,
.primary-btn,
.vip-btn,
.round-link {
    text-decoration: none;
}

.search-shell {
    background: #eef3f9;
}

body.mobile-ppt-list-page,
body.mobile-document-list-page {
    font-family: "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
}

body.mobile-ppt-list-page button,
body.mobile-ppt-list-page input,
body.mobile-ppt-list-page select,
body.mobile-ppt-list-page textarea,
body.mobile-document-list-page button,
body.mobile-document-list-page input,
body.mobile-document-list-page select,
body.mobile-document-list-page textarea {
    font-family: inherit;
}

.search-page {
    width: min(1420px, calc(100vw - 80px));
    margin: 0 auto;
    padding: 12px 0 34px;
    color: #1f2f4d;
}

.search-filter-panel {
    margin: 0 0 10px;
    padding: 12px 14px;
    border: 1px solid #dfe7f3;
    border-radius: 8px;
    background: #fff;
}

.filter-body {
    display: grid;
    gap: 10px;
}

.filter-row {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
}

.filter-label,
.filter-field-label {
    color: #1d2d4a;
    font-size: 14px;
    font-weight: 800;
    line-height: 30px;
}

.filter-chip-row {
    min-width: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 10px;
}

.category-tab,
.tag-item,
.filter-toggle,
.sort-tab {
    height: 30px;
    min-height: 30px;
    border: 1px solid #dce5f1;
    border-radius: 7px;
    padding: 0 13px;
    color: #344761;
    background: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 28px;
    box-shadow: 0 1px 2px rgba(29, 45, 74, 0.02);
    transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.category-tab:hover,
.tag-item:hover,
.filter-toggle:hover,
.sort-tab:hover {
    border-color: #b9cffb;
    color: #1765ff;
    background: #f6f9ff;
}

.category-tab.active,
.tag-item.active,
.sort-tab.active {
    border-color: #5d8dff;
    color: #1765ff;
    background: #f4f8ff;
    box-shadow: inset 0 0 0 1px rgba(23, 101, 255, 0.14);
}

.filter-chip-hidden {
    display: none !important;
}

.filter-toggle {
    color: #1765ff;
    background: #f1f6ff;
}

.filter-inline {
    display: grid;
    grid-template-columns: minmax(360px, 1fr) auto;
    gap: 18px;
    align-items: end;
}

.filter-field {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.filter-field-label {
    flex: 0 0 84px;
}

.keyword-field .filter-field-label {
    flex-basis: 84px;
}

.filter-input-shell {
    min-width: 0;
    flex: 1 1 auto;
}

.filter-input {
    width: 100%;
    height: 30px;
    min-height: 30px;
    border: 1px solid #dbe4f0;
    border-radius: 6px;
    padding: 0 13px;
    color: #21314f;
    background: #fff;
    font-size: 13px;
    font-weight: 500;
    line-height: 28px;
    outline: none;
}

.filter-input::placeholder {
    color: #9aa8ba;
}

.filter-input:focus {
    border-color: #6e99ff;
    box-shadow: 0 0 0 3px rgba(23, 101, 255, 0.08);
}

.filter-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.search-action {
    height: 34px;
    min-height: 34px;
    min-width: 92px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid #d9e3f3;
    border-radius: 6px;
    padding: 0 18px;
    color: #42536d;
    background: #fff;
    font-size: 13px;
    font-weight: 800;
    line-height: 32px;
}

.search-action.primary {
    border-color: #1f67f2;
    color: #fff;
    background: linear-gradient(180deg, #3476ff 0%, #225ff1 100%);
    box-shadow: 0 8px 14px rgba(34, 95, 241, 0.22);
}

.action-icon {
    width: 14px;
    height: 14px;
    display: inline-block;
    flex: 0 0 14px;
    background: currentColor;
    mask-position: center;
    mask-repeat: no-repeat;
    mask-size: contain;
    -webkit-mask-position: center;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: contain;
}

.search-mask {
    mask-image: url("data:image/svg+xml,%3Csvg width='15' height='15' viewBox='0 0 15 15' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6.7 11.9a5.2 5.2 0 1 1 0-10.4 5.2 5.2 0 0 1 0 10.4Zm4-1.2 2.8 2.8' fill='none' stroke='black' stroke-width='1.55' stroke-linecap='round'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg width='15' height='15' viewBox='0 0 15 15' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6.7 11.9a5.2 5.2 0 1 1 0-10.4 5.2 5.2 0 0 1 0 10.4Zm4-1.2 2.8 2.8' fill='none' stroke='black' stroke-width='1.55' stroke-linecap='round'/%3E%3C/svg%3E");
}

.reset-mask {
    mask-image: url("data:image/svg+xml,%3Csvg width='15' height='15' viewBox='0 0 15 15' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3.5 4.7A4.8 4.8 0 1 1 3 9.4M3.4 2v3.1h3.1' fill='none' stroke='black' stroke-width='1.45' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg width='15' height='15' viewBox='0 0 15 15' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3.5 4.7A4.8 4.8 0 1 1 3 9.4M3.4 2v3.1h3.1' fill='none' stroke='black' stroke-width='1.45' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.hot-keywords-strip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 86px;
    color: #52657f;
    font-size: 13px;
    font-weight: 700;
}

.hot-keywords-list {
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hot-keyword-item {
    border: 0;
    padding: 0 2px;
    color: #1765ff;
    background: transparent;
    font-size: 13px;
    font-weight: 700;
    line-height: 22px;
}

.results {
    min-height: 360px;
}

.resource-list {
    width: 100%;
    overflow: hidden;
    border: 1px solid #e2e9f3;
    border-radius: 7px;
    background: #fff;
}

.list-header,
.list-item {
    display: grid;
    grid-template-columns: 8% 12% minmax(360px, 1fr) 8% 9% 11%;
    align-items: center;
}

.list-header {
    min-height: 40px;
    border-bottom: 1px solid #e9eef6;
    background: #f7f9fc;
}

.header-cell,
.item-cell {
    min-width: 0;
    height: 42px;
    display: flex;
    align-items: center;
    padding: 0 14px;
    border-right: 1px solid #edf2f8;
    color: #1f2f4d;
    font-size: 14px;
    line-height: 42px;
}

.header-cell {
    border-width: 0 1px 0 0;
    height: 40px;
    color: #52637d;
    background: transparent;
    font-size: 13px;
    font-weight: 800;
    line-height: 40px;
}

.sortable-header {
    appearance: none;
    -webkit-appearance: none;
    border-top: 0;
    border-bottom: 0;
    border-left: 0;
    cursor: pointer;
    gap: 4px;
    transition: color 0.16s ease, background 0.16s ease;
}

.sortable-header:hover,
.sortable-header.active {
    color: #1765ff;
    background: #f1f6ff;
}

.sort-indicator {
    color: currentColor;
    font-size: 12px;
    line-height: 1;
}

.header-cell:last-child,
.item-cell:last-child {
    border-right: 0;
}

.list-item {
    border-bottom: 1px solid #e9eef6;
    background: #fff;
}

.list-item:last-child {
    border-bottom: 0;
}

.list-item:hover {
    background: #fbfdff;
}

.cell-time,
.cell-category,
.cell-views,
.cell-size,
.cell-action {
    justify-content: center;
    text-align: center;
    white-space: nowrap;
}

.cell-title {
    align-items: center;
}

.title-wrapper,
.title-text {
    min-width: 0;
}

.title-wrapper {
    width: 100%;
}

.title-text {
    display: block;
    width: 100%;
    overflow: hidden;
    color: #1265ff;
    font-size: 14px;
    font-weight: 800;
    line-height: 42px;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.category-tag {
    display: block;
    max-width: 100%;
    overflow: hidden;
    color: #1d2b49;
    font-size: 14px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.time-text,
.size-text {
    color: #52657f;
    font-size: 13px;
    font-weight: 600;
}

.metric-number {
    color: #ff4d16;
    font-size: 14px;
    font-weight: 800;
}

.cell-action {
    gap: 12px;
}

.detail-link,
.download-link {
    height: 42px;
    padding: 0;
    border: 0;
    color: #33425c;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    font-weight: 800;
    line-height: 42px;
    text-decoration: none;
}

.download-link {
    color: #11a35d;
}

.download-link:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.result-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    min-height: 38px;
    margin-top: 7px;
    padding: 0 4px;
    gap: 18px;
}

.search-load-more-sentinel {
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9aa3ab;
    font-size: 12px;
}

.search-load-more-sentinel button {
    border: 0;
    padding: 8px 16px;
    color: #9aa3ab;
    background: transparent;
    cursor: pointer;
    font: inherit;
}

.search-load-more-sentinel button:empty {
    display: none;
}

.search-load-more-sentinel button:hover {
    color: var(--portal-teal);
}

.result-count {
    justify-self: start;
    color: #51637f;
    font-size: 13px;
    font-weight: 800;
}

.result-count strong {
    color: #1765ff;
}

.pagination {
    grid-column: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.page-btn,
.pager-ellipsis {
    min-width: 34px;
    height: 30px;
    border: 1px solid #d9e3f3;
    border-radius: 6px;
    padding: 0 10px;
    color: #42536d;
    background: #fff;
    font-size: 13px;
    font-weight: 800;
    line-height: 28px;
}

.page-btn.active {
    border-color: #1f67f2;
    color: #fff;
    background: linear-gradient(180deg, #3476ff 0%, #225ff1 100%);
    box-shadow: 0 7px 14px rgba(34, 95, 241, 0.2);
}

.page-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.pager-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #8a98ad;
}

.empty-state {
    grid-column: 1 / -1;
    padding: 58px 20px;
    color: #8a98ad;
    text-align: center;
    font-size: 14px;
}

body.modal-open {
    overflow: hidden;
}

.detail-overlay {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: grid;
    place-items: center;
    padding: 28px;
    background: rgba(15, 23, 42, 0.52);
}

.detail-modal {
    width: min(1120px, 100%);
    max-height: min(880px, calc(100vh - 56px));
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 8px;
    background: #f6f7fb;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
}

.detail-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    border-bottom: 1px solid #e6eaf0;
    background: #fff;
}

.detail-kicker,
.detail-header h2 {
    margin: 0;
}

.detail-kicker {
    color: #8a98ad;
    font-size: 13px;
}

.detail-header h2 {
    margin-top: 4px;
    color: #1f2f4d;
    font-size: 22px;
}

.detail-close {
    width: 36px;
    height: 36px;
    border: 1px solid #e0e6ed;
    border-radius: 50%;
    color: #606266;
    background: #fff;
    font-size: 24px;
    line-height: 1;
}

.detail-body {
    min-height: 0;
    overflow: auto;
    padding: 18px 22px 22px;
}

.detail-loading {
    padding: 70px 20px;
    color: #8a98ad;
    text-align: center;
}

.detail-summary {
    margin-bottom: 16px;
    padding: 16px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
}

.detail-meta-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.detail-meta-grid span {
    min-width: 0;
    overflow: hidden;
    border-radius: 6px;
    padding: 10px 12px;
    color: #52657f;
    background: #f7f9fc;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.detail-meta-grid strong {
    display: block;
    margin-bottom: 4px;
    color: #8a98ad;
    font-size: 12px;
}

.detail-description {
    margin: 14px 0 0;
    color: #52657f;
    line-height: 1.7;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.detail-chip {
    border-radius: 999px;
    padding: 5px 10px;
    color: #1765ff;
    background: #eef4ff;
    font-size: 12px;
}

.detail-chip.muted {
    color: #8a98ad;
    background: #f0f2f5;
}

.preview-toolbar {
    position: sticky;
    top: -18px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    padding: 12px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
}

.preview-tab {
    border: 1px solid #dce5f1;
    border-radius: 7px;
    padding: 8px 16px;
    color: #344761;
    background: #fff;
    font-weight: 800;
}

.preview-tab.active {
    border-color: #5d8dff;
    color: #1765ff;
    background: #f4f8ff;
}

.preview-tab:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.preview-download {
    margin-left: auto;
}

.detail-preview-panel {
    min-height: 260px;
}

.image-preview-page,
.text-preview-page,
.table-preview-page {
    margin: 0 0 16px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.08);
}

.image-preview-page {
    padding: 18px;
    text-align: center;
}

.preview-limit-notice {
    margin: 0 0 16px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #ffe0a3;
    border-radius: 4px;
    color: #8a5a00;
    background: #fff8e6;
    font-size: 14px;
    line-height: 1.6;
}

.preview-limit-notice strong {
    flex: 0 0 auto;
    color: #ad6800;
}

.image-preview-page.is-loading,
.image-preview-page.is-error {
    min-height: 260px;
    display: grid;
    place-items: center;
}

.image-preview-loading,
.image-preview-error {
    width: 100%;
    min-height: 180px;
    display: grid;
    place-items: center;
    border: 1px dashed #d8e0ee;
    border-radius: 4px;
    color: #8a98ad;
    background: #f8fafc;
    font-size: 14px;
}

.image-preview-error {
    border-color: #f3c7c7;
    color: #c45656;
    background: #fff6f6;
}

.image-preview-page img {
    max-width: 100%;
    height: auto;
    border: 1px solid #eef0f4;
    border-radius: 4px;
}

.text-preview-page {
    padding: 28px 34px;
}

.text-preview-page pre {
    margin: 0;
    color: #1f2f4d;
    font-family: "Microsoft YaHei", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.9;
    white-space: pre-wrap;
    word-break: break-word;
}

.table-preview-page {
    padding: 16px;
}

.table-preview-scroll {
    overflow: auto;
    border: 1px solid #eef0f4;
    border-radius: 6px;
}

.table-preview-page table {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
    font-size: 14px;
}

.table-preview-page th,
.table-preview-page td {
    padding: 10px 12px;
    border-right: 1px solid #eef0f4;
    border-bottom: 1px solid #eef0f4;
    text-align: left;
    vertical-align: top;
}

.table-preview-page th {
    background: #f5f7fb;
    font-weight: 700;
}

.table-preview-note {
    margin: 10px 0 0;
    color: #8a98ad;
    font-size: 13px;
}

.pdf-preview-frame {
    width: 100%;
    min-height: 70vh;
    border: 1px solid #eef0f4;
    border-radius: 6px;
    background: #fff;
}

.pdf-fallback-note {
    margin: 0 0 12px;
    padding: 10px 12px;
    border: 1px solid #ffe0a3;
    border-radius: 4px;
    color: #ad6800;
    background: #fff8e6;
    font-size: 13px;
}

@media (max-width: 1320px) {
    .filter-inline {
        grid-template-columns: 1fr 1fr;
    }

    .filter-actions {
        grid-column: 1 / -1;
    }

    .list-header,
    .list-item {
        grid-template-columns: 94px 140px minmax(360px, 1fr) 84px 90px 112px;
    }

    .resource-list {
        overflow-x: auto;
    }

    .list-header,
    .list-item {
        min-width: 900px;
    }
}

@media (max-width: 768px) {
    .search-page {
        width: 100%;
        padding: 10px 10px 28px;
    }

    .search-filter-panel {
        padding: 12px;
    }

    .filter-row,
    .filter-inline {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .filter-label,
    .filter-field-label {
        line-height: 1.4;
    }

    .filter-field {
        align-items: stretch;
        flex-direction: column;
        gap: 6px;
    }

    .filter-field-label,
    .keyword-field .filter-field-label,
    .sort-field .filter-field-label {
        flex-basis: auto;
    }

    .filter-chip-row,
    .sort-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 2px;
        scrollbar-width: none;
    }

    .filter-chip-row::-webkit-scrollbar,
    .sort-tabs::-webkit-scrollbar {
        display: none;
    }

    .category-tab,
    .tag-item,
    .filter-toggle,
    .sort-tab {
        flex: 0 0 auto;
    }

    .hot-keywords-strip {
        align-items: flex-start;
        flex-direction: column;
        padding-left: 0;
    }

    .filter-actions {
        justify-content: stretch;
    }

    .search-action {
        flex: 1 1 0;
    }

    .result-footer {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 10px;
    }

    .result-count,
    .pagination {
        grid-column: auto;
        justify-self: center;
    }

    .pagination {
        flex-wrap: wrap;
    }

    .detail-overlay {
        padding: 12px;
    }

    .detail-modal {
        max-height: calc(100vh - 24px);
    }

    .detail-header {
        padding: 14px 16px;
    }

    .detail-body {
        padding: 14px;
    }

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

    .preview-toolbar {
        align-items: stretch;
        flex-wrap: wrap;
    }

    .preview-download {
        margin-left: 0;
    }

    .text-preview-page {
        padding: 20px;
    }
}

/* Resource list portal layout. Keep this section last so it can share the
   homepage header while replacing the legacy blue table presentation. */
html,
body {
    margin: 0;
}

.search-shell,
.search-shell *,
.search-shell *::before,
.search-shell *::after {
    box-sizing: border-box;
}

.search-shell {
    background: #f7f7f7;
    overflow-x: hidden;
}

.search-shell .hidden {
    display: none !important;
}

.search-shell .portal-hot-search .hot-keyword-item {
    color: var(--portal-teal);
    font-weight: 400;
}

.search-page {
    width: 100%;
    margin: 0;
    padding: 0 0 52px;
    color: #28343d;
    background: #f7f7f7;
}

.resource-category-hero {
    min-height: 230px;
    color: #fff;
    background: #10141a url("images/portal/resource-list-hero.png") center / cover no-repeat;
}

.resource-category-hero-inner {
    width: min(1200px, calc(100vw - 40px));
    margin: 0 auto;
    padding: 18px 0 112px;
}

.resource-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #aeb8c2;
    font-size: 13px;
}

.resource-breadcrumb a {
    color: #d0d6dc;
    text-decoration: none;
}

.resource-breadcrumb a:hover,
.resource-breadcrumb strong,
.resource-category-title strong {
    color: var(--portal-teal);
}

.resource-breadcrumb strong {
    font-weight: 500;
}

.resource-category-title {
    display: flex;
    align-items: baseline;
    gap: 13px;
    margin-top: 40px;
}

.resource-title-icon {
    width: 25px;
    height: 27px;
    display: inline-flex;
    flex: 0 0 25px;
    color: #fff;
}

.resource-title-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.resource-category-title h1 {
    margin: 0;
    color: #fff;
    font-size: 27px;
    line-height: 1.2;
}

.resource-category-title p {
    margin: 0 0 1px 18px;
    color: #aeb8c2;
    font-size: 13px;
}

.search-filter-panel {
    position: relative;
    z-index: 2;
    width: min(1200px, calc(100vw - 40px));
    margin: -100px auto 28px;
    padding: 20px 24px;
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: 0 12px 28px rgba(17, 29, 40, .1);
}

.filter-body {
    gap: 0;
    border: 1px dashed #e4e7e9;
    padding: 8px 18px;
}

.filter-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    min-height: 52px;
    align-items: center;
    border-bottom: 1px dashed #eceeef;
}

.filter-row:last-of-type {
    border-bottom: 0;
}

.filter-label {
    color: #25313a;
    font-size: 13px;
    line-height: 1.4;
}

.filter-chip-row {
    gap: 8px 10px;
}

.category-tab,
.filter-toggle,
.sort-tab {
    height: 28px;
    min-height: 28px;
    border: 0;
    border-radius: 0;
    padding: 0 11px;
    color: #303b43;
    background: transparent;
    box-shadow: none;
    font-size: 13px;
    font-weight: 500;
    line-height: 28px;
}

.category-tab:hover,
.filter-toggle:hover,
.sort-tab:hover {
    border-color: transparent;
    color: var(--portal-teal);
    background: #eefaf8;
}

.category-tab.active,
.sort-tab.active {
    border-color: transparent;
    color: #fff;
    background: var(--portal-teal);
    box-shadow: none;
}

.search-shell .category-tab.active {
    color: #fff !important;
    background: var(--portal-teal) !important;
}

.filter-toggle {
    color: var(--portal-teal);
    background: #eefaf8;
}

.filter-inline {
    display: none;
}

.results {
    width: min(1200px, calc(100vw - 40px));
    min-height: 320px;
    margin: 0 auto;
}

.result-toolbar {
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.result-sort-tabs {
    display: flex;
    align-items: center;
    gap: 6px;
}

.result-sort-tabs .sort-tab {
    padding: 0 10px;
}

.result-sort-tabs .sort-tab.active {
    color: var(--portal-teal);
    background: transparent;
    font-weight: 700;
}

.sort-indicator {
    font-size: 11px;
}

.favorite-shortcut {
    color: #33414b;
    font-size: 12px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.favorite-shortcut:hover {
    color: var(--portal-teal);
}

.favorite-shortcut-icon {
    width: 15px;
    height: 15px;
    display: inline-flex;
    flex: 0 0 15px;
}

.favorite-shortcut-icon svg {
    width: 100%;
    height: 100%;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.resource-list {
    width: 100%;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.ppt-resource-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
}

.ppt-resource-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e8ebed;
    background: #fff;
    transition: transform .18s ease, box-shadow .18s ease;
}

.ppt-resource-card:hover,
.ppt-resource-card:focus-within {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(44, 56, 67, .11);
}

.ppt-resource-card::after {
    content: "";
    position: absolute;
    z-index: 2;
    top: 50%;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(255, 255, 255, .86);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
}

.ppt-resource-card:hover::after,
.ppt-resource-card:focus-within::after {
    opacity: 1;
}

.ppt-resource-hover-action {
    position: absolute;
    z-index: 3;
    top: 72%;
    left: 50%;
    min-width: 92px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border-radius: 20px;
    background: var(--portal-teal);
    box-shadow: 0 6px 16px rgba(0, 159, 145, .2);
    color: #fff;
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -35%);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}

.ppt-resource-card:hover .ppt-resource-hover-action,
.ppt-resource-card:focus-within .ppt-resource-hover-action {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%);
}

.ppt-resource-cover {
    position: relative;
    display: block;
    aspect-ratio: 1.43;
    overflow: hidden;
    background: linear-gradient(135deg, #edf8f6, #dcefeb);
}

.ppt-resource-cover img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.ppt-resource-cover .word-manuscript-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 4px 10px;
    border-radius: 999px;
    color: #fff;
    background: rgba(0, 155, 145, .94);
    box-shadow: 0 2px 7px rgba(0, 83, 77, .2);
    font-size: 11px;
    font-weight: 700;
}

.ppt-resource-cover.image-error::after {
    content: "教务PPT";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--portal-teal);
    font-size: 22px;
    font-weight: 800;
}

.ppt-resource-title {
    min-height: 48px;
    display: -webkit-box;
    margin: 11px 10px 5px;
    overflow: hidden;
    color: #26313a;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.65;
    text-decoration: none;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.ppt-resource-title:hover {
    color: var(--portal-teal);
}

.ppt-resource-meta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 5px 8px;
    padding: 0 10px 12px;
    color: #99a1a8;
    font-size: 11px;
}

.ppt-resource-meta em {
    overflow: hidden;
    color: var(--portal-teal);
    font-style: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ppt-resource-meta b {
    grid-column: 2;
    color: var(--portal-teal);
    font-weight: 500;
}

.ppt-resource-meta time {
    grid-column: 1;
}

.document-resource-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 30px;
}

.document-resource-item {
    min-width: 0;
    height: 38px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px dashed #e6e9eb;
}

.document-file-icon {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #4f8eff;
    font-family: "PortalReferenceIcons";
    font-size: 16px;
    line-height: 1;
}

.document-file-icon::before {
    content: "\e7bc";
}

.document-file-icon.is-ppt {
    width: 16px;
    height: 20px;
    flex-basis: 16px;
    color: #f06445;
}

.document-file-icon.is-ppt::before {
    content: none;
}

.document-file-icon.is-excel {
    width: 16px;
    height: 20px;
    flex-basis: 16px;
    color: #16b96b;
}

.document-file-icon.is-excel::before {
    content: none;
}

.document-resource-item a {
    min-width: 0;
    flex: 1;
    overflow: hidden;
    color: #27333d;
    font-size: 13px;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.document-resource-item a:hover {
    color: var(--portal-teal);
}

.document-resource-item time {
    flex: 0 0 auto;
    color: #9aa3ab;
    font-size: 11px;
    white-space: nowrap;
}

.document-resource-item time::before {
    content: "\e634";
    width: 14px;
    height: 14px;
    display: inline-block;
    margin-right: 4px;
    color: #9aa3ab;
    font-family: "PortalReferenceIcons";
    font-size: 14px;
    line-height: 14px;
    vertical-align: -2px;
}

.document-mobile-file-icon,
.document-mobile-meta {
    display: none;
}

.ppt-resource-meta time::before {
    content: "\e634";
    display: inline-block;
    margin-right: 4px;
    font-family: "PortalReferenceIcons";
    font-size: 13px;
    font-weight: 400;
    vertical-align: -1px;
}

.result-footer {
    margin-top: 22px;
}

.result-count strong,
.page-btn.active {
    color: var(--portal-teal);
}

.page-btn.active {
    border-color: var(--portal-teal);
    background: #fff;
    box-shadow: none;
}

@media (max-width: 1000px) {
    .ppt-resource-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

@media (max-width: 640px) {
    .resource-category-hero-inner,
    .search-filter-panel,
    .results {
        width: calc(100vw - 24px);
    }

    .resource-category-title {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .resource-category-title p {
        width: 100%;
        margin: 2px 0 0 39px;
    }

    .search-filter-panel {
        padding: 12px;
    }

    .filter-body {
        padding: 8px 10px;
    }

    .filter-row {
        grid-template-columns: 1fr;
        gap: 5px;
        padding: 8px 0;
    }

    .ppt-resource-grid,
    .document-resource-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .document-resource-item {
        height: 44px;
    }

    .document-resource-item time {
        display: none;
    }
}

@media (max-width: 480px) {
    .detail-meta-grid {
        grid-template-columns: 1fr;
    }

    .preview-tab,
    .preview-download {
        width: 100%;
    }
}

/* Mobile PPT course catalogue. This is intentionally scoped to PPT result
   pages so the general document search and the desktop portal stay intact. */
.mobile-ppt-chrome,
.mobile-ppt-filter-heading,
.mobile-ppt-filter-backdrop,
.mobile-ppt-floating-actions,
.ppt-resource-price {
    display: none;
}

@media (max-width: 768px) {
    body.mobile-ppt-list-page {
        min-width: 0;
        overflow-x: hidden;
        color: #303030;
        background: #fff;
    }

    body.mobile-ppt-list-page .search-shell,
    body.mobile-ppt-list-page .search-page {
        background: #fff;
    }

    body.mobile-ppt-list-page .app-shell {
        padding-bottom: 0;
    }

    body.mobile-ppt-list-page .portal-utility,
    body.mobile-ppt-list-page .portal-header,
    body.mobile-ppt-list-page .resource-category-hero,
    body.mobile-ppt-list-page .result-toolbar {
        display: none !important;
    }

    body.mobile-ppt-list-page .mobile-ppt-chrome {
        display: block;
        width: 100%;
        color: #363636;
        background: #fff;
    }

    .mobile-ppt-topbar {
        min-height: 64px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 0 16px;
        background: #f1f1f1;
    }

    .mobile-ppt-section-link,
    .mobile-ppt-quick-nav,
    .mobile-ppt-quick-nav a,
    .mobile-ppt-quick-nav button {
        color: #363636;
        font-size: 16px;
        text-decoration: none;
    }

    .mobile-ppt-section-link {
        min-width: 0;
        display: inline-flex;
        align-items: center;
        gap: 9px;
        font-weight: 500;
    }

    .mobile-ppt-section-link svg {
        width: 25px;
        height: 25px;
        flex: 0 0 25px;
        fill: none;
        stroke: #858585;
        stroke-width: 1.7;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .mobile-ppt-section-link span {
        max-width: 112px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mobile-ppt-quick-nav {
        display: flex;
        align-items: center;
        gap: 10px;
        white-space: nowrap;
    }

    .mobile-ppt-quick-nav button {
        appearance: none;
        border: 0;
        padding: 7px 0;
        background: transparent;
        font-family: inherit;
    }

    .mobile-ppt-quick-nav i {
        width: 1px;
        height: 18px;
        background: #b2b2b2;
    }

    .mobile-ppt-search-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 12px;
        padding: 16px 16px 12px;
        border-bottom: 1px solid #ededed;
    }

    .mobile-ppt-search-box {
        min-width: 0;
        height: 44px;
        display: flex;
        align-items: center;
        gap: 10px;
        border: 1px solid #e3e3e3;
        border-radius: 24px;
        padding: 0 14px;
        background: #fff;
        box-shadow: inset 0 1px 4px rgba(0, 0, 0, .03);
    }

    .mobile-ppt-search-box svg {
        width: 22px;
        height: 22px;
        flex: 0 0 22px;
        fill: none;
        stroke: #aaa;
        stroke-width: 2.2;
        stroke-linecap: round;
    }

    .mobile-ppt-search-box input {
        width: 100%;
        min-width: 0;
        height: 40px;
        border: 0;
        padding: 0;
        outline: 0;
        color: #333;
        background: transparent;
        font: 15px/40px "Microsoft YaHei", Arial, sans-serif;
    }

    .mobile-ppt-search-box input::placeholder {
        color: #c9c9c9;
    }

    #mobilePptSearchBtn {
        border: 0;
        padding: 8px 0;
        color: var(--portal-teal);
        background: transparent;
        font: 600 17px/1 "Microsoft YaHei", Arial, sans-serif;
    }

    .mobile-ppt-tabs {
        min-height: 60px;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        align-items: stretch;
        border-bottom: 1px solid #ededed;
    }

    .mobile-ppt-tabs a {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 6px;
        color: #5f5f5f;
        font-size: 17px;
        text-align: center;
        text-decoration: none;
        white-space: nowrap;
    }

    .mobile-ppt-tabs a.active {
        color: var(--portal-teal);
        font-weight: 700;
    }

    .mobile-ppt-tabs a.active::after {
        content: "";
        position: absolute;
        right: 35%;
        bottom: 8px;
        left: 35%;
        height: 3px;
        border-radius: 3px;
        background: var(--portal-teal);
    }

    .mobile-ppt-filterbar {
        min-height: 66px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 17px;
    }

    .mobile-ppt-all-button,
    .mobile-ppt-filter-button {
        display: inline-flex;
        align-items: center;
        border: 0;
        padding: 9px 0;
        color: #999;
        background: transparent;
        font: 16px/1 "Microsoft YaHei", Arial, sans-serif;
    }

    .mobile-ppt-all-button i {
        width: 9px;
        height: 9px;
        margin: -4px 0 0 9px;
        border-right: 1.5px solid currentColor;
        border-bottom: 1.5px solid currentColor;
        transform: rotate(45deg);
    }

    .mobile-ppt-filter-button {
        gap: 7px;
    }

    .mobile-ppt-filter-button svg {
        width: 18px;
        height: 18px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.7;
        stroke-linejoin: round;
    }

    body.mobile-ppt-list-page .search-page {
        width: 100%;
        margin: 0;
        padding: 0 14px 32px;
    }

    body.mobile-ppt-list-page .results {
        width: 100%;
        min-height: 260px;
        margin: 0;
    }

    body.mobile-ppt-list-page .resource-list {
        overflow: visible;
        border: 0;
        border-radius: 0;
        background: transparent;
    }

    body.mobile-ppt-list-page .ppt-resource-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px 14px;
    }

    body.mobile-ppt-list-page .ppt-resource-card {
        overflow: hidden;
        border: 1px solid #ededed;
        border-radius: 6px;
        background: #fff;
        box-shadow: 0 2px 7px rgba(25, 35, 45, .05);
    }

    body.mobile-ppt-list-page .ppt-resource-card:hover,
    body.mobile-ppt-list-page .ppt-resource-card:focus-within {
        transform: none;
        box-shadow: 0 2px 7px rgba(25, 35, 45, .05);
    }

    body.mobile-ppt-list-page .ppt-resource-card::after,
    body.mobile-ppt-list-page .ppt-resource-hover-action {
        display: none !important;
    }

    body.mobile-ppt-list-page .ppt-resource-cover {
        aspect-ratio: 1.7;
        background: #f3f6f6;
    }

    body.mobile-ppt-list-page .ppt-resource-title {
        min-height: 50px;
        margin: 10px 10px 7px;
        color: #303030;
        font-size: 14px;
        font-weight: 600;
        line-height: 1.72;
    }

    body.mobile-ppt-list-page .ppt-resource-meta {
        min-height: 31px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        padding: 0 10px 10px;
        font-size: 13px;
    }

    body.mobile-ppt-list-page .ppt-resource-meta em,
    body.mobile-ppt-list-page .ppt-resource-meta time {
        display: none;
    }

    body.mobile-ppt-list-page .ppt-resource-meta .ppt-resource-price {
        display: inline;
        color: var(--portal-teal);
        font-size: 14px;
        white-space: nowrap;
    }

    body.mobile-ppt-list-page .ppt-resource-meta b {
        grid-column: auto;
        color: var(--portal-teal);
        font-size: 13px;
        font-weight: 500;
        white-space: nowrap;
    }

    body.mobile-ppt-list-page .ppt-resource-cover .word-manuscript-badge {
        top: 6px;
        left: 6px;
        padding: 3px 7px;
        font-size: 9px;
    }

    body.mobile-ppt-list-page .search-load-more-sentinel {
        min-height: 48px;
    }

    body.mobile-ppt-list-page .empty-state {
        grid-column: 1 / -1;
        padding: 48px 12px;
    }

    body.mobile-ppt-list-page .search-filter-panel {
        position: fixed;
        z-index: 102;
        right: 0;
        bottom: 0;
        left: 0;
        width: 100%;
        max-height: min(76vh, 620px);
        margin: 0;
        overflow-y: auto;
        border: 0;
        border-radius: 18px 18px 0 0;
        padding: 0 16px calc(20px + env(safe-area-inset-bottom));
        background: #fff;
        box-shadow: 0 -10px 32px rgba(0, 0, 0, .16);
        visibility: hidden;
        opacity: 0;
        transform: translateY(105%);
        transition: visibility .22s, opacity .22s, transform .22s ease;
    }

    body.mobile-ppt-list-page .mobile-ppt-filter-heading {
        position: sticky;
        z-index: 2;
        top: 0;
        min-height: 56px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        border-bottom: 1px solid #eee;
        background: #fff;
    }

    .mobile-ppt-filter-heading strong {
        font-size: 17px;
    }

    .mobile-ppt-filter-heading button {
        width: 38px;
        height: 38px;
        border: 0;
        border-radius: 50%;
        padding: 0;
        color: #777;
        background: #f5f5f5;
        font-size: 25px;
        line-height: 36px;
    }

    body.mobile-ppt-list-page .search-filter-panel .filter-body {
        border: 0;
        padding: 8px 0 0;
    }

    body.mobile-ppt-list-page .search-filter-panel .filter-row {
        min-height: auto;
        padding: 10px 0;
    }

    body.mobile-ppt-list-page .search-filter-panel .filter-chip-row {
        flex-wrap: wrap;
        overflow: visible;
        gap: 9px;
    }

    body.mobile-ppt-list-page .search-filter-panel .category-tab,
    body.mobile-ppt-list-page .search-filter-panel .filter-toggle {
        height: 34px;
        min-height: 34px;
        border: 1px solid #e5e5e5;
        border-radius: 17px;
        padding: 0 14px;
        color: #555;
        background: #fafafa;
        line-height: 32px;
    }

    body.mobile-ppt-list-page .search-filter-panel .category-tab.active {
        border-color: var(--portal-teal);
        color: #fff;
        background: var(--portal-teal);
    }

    body.mobile-ppt-list-page .mobile-ppt-filter-backdrop {
        position: fixed;
        z-index: 101;
        inset: 0;
        display: block;
        background: rgba(0, 0, 0, .36);
        visibility: hidden;
        opacity: 0;
        transition: visibility .22s, opacity .22s;
    }

    body.mobile-ppt-filter-open {
        overflow: hidden;
    }

    body.mobile-ppt-filter-open .search-filter-panel {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
    }

    body.mobile-ppt-filter-open .mobile-ppt-filter-backdrop {
        visibility: visible;
        opacity: 1;
    }

    body.mobile-ppt-list-page .mobile-ppt-floating-actions {
        position: fixed;
        z-index: 20;
        right: 8px;
        top: 54%;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 13px;
        pointer-events: none;
    }

    .mobile-ppt-floating-actions a {
        display: flex;
        flex-direction: column;
        align-items: center;
        color: var(--portal-teal);
        font-size: 11px;
        line-height: 1.25;
        text-decoration: none;
        text-shadow: 0 1px 2px #fff, 1px 0 2px #fff;
        pointer-events: auto;
    }

    .mobile-ppt-floating-actions svg {
        width: 34px;
        height: 34px;
        fill: #fff;
        stroke: var(--portal-teal);
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
        filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .1));
    }

    body.mobile-document-list-page {
        min-width: 0;
        overflow-x: hidden;
        color: #303030;
        background: #fff;
    }

    body.mobile-document-list-page .app-shell,
    body.mobile-document-list-page .search-shell,
    body.mobile-document-list-page .search-page {
        background: #fff;
    }

    body.mobile-document-list-page .app-shell {
        padding-bottom: 0;
    }

    body.mobile-document-list-page .portal-utility,
    body.mobile-document-list-page .portal-header,
    body.mobile-document-list-page .resource-category-hero,
    body.mobile-document-list-page .result-toolbar,
    body.mobile-document-list-page .search-filter-panel,
    body.mobile-document-list-page .mobile-ppt-filterbar,
    body.mobile-document-list-page .mobile-ppt-filter-backdrop {
        display: none !important;
    }

    body.mobile-document-list-page .mobile-ppt-chrome {
        display: block;
        width: 100%;
        color: #363636;
        background: #fff;
    }

    body.mobile-document-list-page .mobile-ppt-tabs {
        min-height: 54px;
        display: flex;
        align-items: stretch;
        gap: 0;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 0 8px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    body.mobile-document-list-page .mobile-ppt-tabs::-webkit-scrollbar {
        display: none;
    }

    body.mobile-document-list-page .mobile-ppt-tabs.is-empty {
        display: none;
    }

    body.mobile-document-list-page .mobile-ppt-tabs a {
        min-width: max-content;
        flex: 0 0 auto;
        padding: 0 12px;
        color: #666;
        font-size: 17px;
        font-weight: 400;
    }

    body.mobile-document-list-page .mobile-ppt-tabs a.active {
        color: var(--portal-teal);
        font-weight: 600;
    }

    body.mobile-document-list-page .mobile-ppt-tabs a.active::after {
        display: none;
    }

    body.mobile-document-list-page .search-page {
        width: 100%;
        margin: 0;
        padding: 16px 15px 34px;
    }

    body.mobile-document-list-page .results {
        width: 100%;
        min-height: 260px;
        margin: 0;
    }

    body.mobile-document-list-page .resource-list {
        overflow: hidden;
        border: 0;
        border-radius: 6px;
        background: #fff;
        box-shadow: 0 1px 9px rgba(35, 45, 55, .14);
    }

    body.mobile-document-list-page .document-resource-grid {
        display: block;
    }

    body.mobile-document-list-page .document-resource-item {
        min-width: 0;
        min-height: 116px;
        height: auto;
        display: grid;
        grid-template-columns: 58px minmax(0, 1fr);
        grid-template-rows: minmax(50px, auto) 28px;
        align-items: center;
        gap: 4px 14px;
        box-sizing: border-box;
        padding: 15px 12px;
        border-bottom: 1px solid #ececec;
    }

    body.mobile-document-list-page .document-resource-item:last-child {
        border-bottom: 0;
    }

    body.mobile-document-list-page .document-file-icon,
    body.mobile-document-list-page .document-desktop-time {
        display: none;
    }

    body.mobile-document-list-page .document-mobile-file-icon {
        --mobile-file-color: #4f83ed;
        width: 58px;
        height: 72px;
        grid-row: 1 / 3;
        display: block;
        align-self: center;
    }

    body.mobile-document-list-page .document-mobile-file-icon.is-excel {
        --mobile-file-color: #39ae6e;
    }

    body.mobile-document-list-page .document-mobile-file-icon.is-pdf,
    body.mobile-document-list-page .document-mobile-file-icon.is-powerpoint {
        --mobile-file-color: #ee6b52;
    }

    .document-mobile-file-icon svg {
        width: 100%;
        height: 100%;
        display: block;
        overflow: visible;
    }

    .document-mobile-sheet,
    .document-mobile-fold {
        fill: #fff;
        stroke: #dce5ed;
        stroke-linejoin: round;
        stroke-width: 2;
    }

    .document-mobile-letter {
        fill: var(--mobile-file-color);
        font-family: Arial, sans-serif;
        font-size: 30px;
        font-weight: 500;
        text-anchor: middle;
    }

    .document-mobile-band {
        fill: var(--mobile-file-color);
    }

    .document-mobile-label {
        fill: #fff;
        font-family: Arial, sans-serif;
        font-size: 15px;
        font-weight: 500;
        text-anchor: middle;
    }

    body.mobile-document-list-page .document-resource-item > a {
        min-width: 0;
        align-self: end;
        display: -webkit-box;
        overflow: hidden;
        color: #333;
        font-size: 17px;
        font-weight: 700;
        line-height: 1.45;
        text-decoration: none;
        white-space: normal;
        text-overflow: clip;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    body.mobile-document-list-page .document-mobile-meta {
        min-width: 0;
        align-self: center;
        display: flex;
        align-items: center;
        gap: clamp(15px, 7vw, 30px);
        color: #6f6f6f;
        font-family: inherit;
        font-size: 15px;
        white-space: nowrap;
    }

    .document-mobile-meta span,
    .document-mobile-meta time {
        min-width: 0;
        display: inline-flex;
        align-items: center;
        gap: 5px;
        color: inherit;
        font: inherit;
    }

    .document-mobile-meta time::before {
        content: none;
    }

    .document-mobile-meta i {
        position: relative;
        width: 17px;
        height: 17px;
        flex: 0 0 17px;
        display: inline-block;
        box-sizing: border-box;
        color: #747474;
    }

    .document-mobile-pages i {
        margin-left: 2px;
        border: 2px solid currentColor;
        border-radius: 2px;
    }

    .document-mobile-pages i::before {
        content: "";
        position: absolute;
        top: 3px;
        right: 3px;
        width: 100%;
        height: 100%;
        box-sizing: border-box;
        border: 2px solid currentColor;
        border-radius: 2px;
        background: #fff;
    }

    .document-mobile-size i {
        height: 12px;
        margin-top: 3px;
        border: 2px solid currentColor;
        border-radius: 2px;
    }

    .document-mobile-size i::before {
        content: "";
        position: absolute;
        top: -6px;
        left: -2px;
        width: 8px;
        height: 5px;
        border: 2px solid currentColor;
        border-bottom: 0;
        border-radius: 2px 2px 0 0;
    }

    .document-mobile-meta time i {
        border: 2px solid currentColor;
        border-radius: 50%;
    }

    .document-mobile-meta time i::before,
    .document-mobile-meta time i::after {
        content: "";
        position: absolute;
        top: 3px;
        left: 7px;
        width: 2px;
        height: 6px;
        border-radius: 2px;
        background: currentColor;
        transform-origin: 1px 5px;
    }

    .document-mobile-meta time i::after {
        transform: rotate(125deg);
    }

    body.mobile-document-list-page .search-load-more-sentinel {
        min-height: 48px;
    }

    body.mobile-document-list-page .empty-state {
        padding: 48px 12px;
    }

    body.mobile-document-list-page .mobile-ppt-floating-actions {
        position: fixed;
        z-index: 20;
        right: 8px;
        top: 54%;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 13px;
        pointer-events: none;
    }
}

@media (max-width: 380px) {
    .mobile-ppt-topbar {
        padding: 0 12px;
    }

    .mobile-ppt-section-link span {
        max-width: 84px;
    }

    .mobile-ppt-quick-nav {
        gap: 7px;
    }

    .mobile-ppt-quick-nav a,
    .mobile-ppt-quick-nav button {
        font-size: 14px;
    }

    .mobile-ppt-search-row {
        gap: 9px;
        padding-right: 12px;
        padding-left: 12px;
    }

    .mobile-ppt-tabs a {
        font-size: 15px;
    }

    body.mobile-ppt-list-page .search-page {
        padding-right: 10px;
        padding-left: 10px;
    }

    body.mobile-ppt-list-page .ppt-resource-grid {
        gap: 12px 9px;
    }

    body.mobile-ppt-list-page .ppt-resource-title {
        margin-right: 8px;
        margin-left: 8px;
        font-size: 13px;
    }

    body.mobile-ppt-list-page .ppt-resource-meta {
        padding-right: 8px;
        padding-left: 8px;
        font-size: 12px;
    }
}

/* Desktop article-search page, based on the public reference search result layout. */
.desktop-search-controls,
.related-search-panel,
.search-pagination {
    display: none;
}

.search-reset-hidden {
    display: none !important;
}

@media (min-width: 769px) {
    .search-page {
        width: 100%;
        padding: 0 0 36px;
        background: #f7f7f7;
    }

    .resource-category-hero {
        min-height: 123px;
    }

    .resource-category-hero-inner {
        width: min(1200px, calc(100vw - 40px));
        padding: 17px 0 19px;
    }

    .resource-category-title {
        margin-top: 37px;
        gap: 9px;
    }

    .resource-category-title h1 {
        font-size: 25px;
    }

    .resource-category-title p {
        display: none;
    }

    .search-filter-panel {
        width: min(1200px, calc(100vw - 40px));
        margin: 30px auto 0;
        padding: 30px 40px 0;
        border: 0;
        border-radius: 0;
        background: #fff;
        box-shadow: none;
    }

    .search-filter-panel .filter-body,
    .search-filter-panel .mobile-ppt-filter-heading {
        display: none;
    }

    .desktop-search-controls {
        display: block;
    }

    .desktop-search-row {
        width: min(630px, 100%);
        height: 44px;
        display: flex;
        overflow: hidden;
        border: 2px solid var(--portal-teal);
        border-radius: 6px;
        background: #fff;
    }

    .desktop-search-row input {
        min-width: 0;
        flex: 1;
        border: 0;
        padding: 0 18px;
        outline: 0;
        color: #26343e;
        background: #fff;
        font: 14px/40px "Microsoft YaHei", PingFang SC, sans-serif;
    }

    .desktop-search-row input::placeholder {
        color: #9aa4aa;
    }

    .desktop-search-row button {
        width: 90px;
        flex: 0 0 90px;
        border: 0;
        color: #fff;
        background: var(--portal-teal);
        cursor: pointer;
        font-size: 16px;
        font-weight: 700;
    }

    .desktop-search-row button:hover {
        filter: brightness(.94);
    }

    .desktop-search-options {
        min-height: 41px;
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 8px 12px;
        color: #68747c;
        font-size: 13px;
    }

    .desktop-search-options label {
        display: inline-flex;
        align-items: center;
        gap: 3px;
        cursor: pointer;
        white-space: nowrap;
    }

    .desktop-search-options input {
        width: 14px;
        height: 14px;
        margin: 0;
        accent-color: #139bff;
    }

    .desktop-search-options select {
        height: 27px;
        border: 1px solid #bfc6cb;
        border-radius: 0;
        padding: 0 22px 0 7px;
        color: #343e44;
        background: #fff;
        font: 13px "Microsoft YaHei", PingFang SC, sans-serif;
    }

    .desktop-sort-prefix {
        margin-left: -6px;
    }

    .search-result-summary {
        margin: 0;
        padding: 0 0 13px;
        border-bottom: 1px solid #e7e9eb;
        color: #29353d;
        font-size: 13px;
        line-height: 22px;
    }

    .search-result-summary strong {
        color: var(--portal-teal);
        font-weight: 500;
    }

    .results {
        width: min(1200px, calc(100vw - 40px));
        min-height: 320px;
        margin: 0 auto;
        padding: 0 40px 30px;
        background: #fff;
    }

    .result-toolbar {
        display: none;
    }

    .resource-list,
    .resource-list.article-mode {
        overflow: visible;
        border: 0;
        border-radius: 0;
        background: #fff;
    }

    .search-article-list {
        display: block;
    }

    .search-article-item {
        padding: 29px 0 0;
    }

    .search-article-item h2 {
        display: flex;
        align-items: center;
        gap: 7px;
        margin: 0 0 8px;
        font-size: 16px;
        line-height: 1.35;
    }

    .search-article-item h2 a {
        color: #064fd3;
        font-weight: 700;
        text-decoration: none;
    }

    .search-article-item h2 a:hover {
        color: var(--portal-teal);
    }

    .search-article-item mark {
        padding: 0;
        color: var(--portal-teal);
        background: transparent;
    }

    .search-article-item time {
        color: #a2a9ad;
        font-size: 13px;
        line-height: 20px;
    }

    .search-load-more-sentinel {
        display: none;
    }

    .search-pagination {
        min-height: 60px;
        display: flex;
        align-items: flex-end;
        justify-content: center;
        gap: 0;
    }

    .search-pagination button,
    .search-page-ellipsis {
        min-width: 32px;
        height: 30px;
        display: inline-grid;
        place-items: center;
        border: 1px solid #d7dcdf;
        border-right: 0;
        padding: 0 9px;
        color: #3f474d;
        background: #fff;
        font: 13px/28px "Microsoft YaHei", PingFang SC, sans-serif;
    }

    .search-pagination button:first-child {
        border-radius: 4px 0 0 4px;
    }

    .search-pagination button:last-child {
        border-right: 1px solid #d7dcdf;
        border-radius: 0 4px 4px 0;
    }

    .search-pagination button {
        cursor: pointer;
    }

    .search-pagination button:hover,
    .search-pagination button.active {
        border-color: var(--portal-teal);
        color: #fff;
        background: var(--portal-teal);
    }

    .search-pagination button.active + button,
    .search-pagination button:hover + button {
        border-left-color: var(--portal-teal);
    }

    .related-search-panel {
        width: min(1200px, calc(100vw - 40px));
        min-height: 104px;
        display: flex;
        align-items: flex-start;
        gap: 12px;
        margin: 20px auto 0;
        padding: 23px 49px;
        background: #fff;
    }

    .related-search-panel h2 {
        flex: 0 0 auto;
        margin: 0;
        color: #27333a;
        font-size: 14px;
        line-height: 24px;
    }

    .related-search-list {
        display: flex;
        flex-wrap: wrap;
        gap: 4px 18px;
    }

    .related-search-list a {
        color: var(--portal-teal);
        font-size: 13px;
        line-height: 24px;
        text-decoration: none;
    }

    .related-search-list a:hover {
        text-decoration: underline;
    }

    .empty-state {
        min-height: 240px;
    }
}

/* Desktop catalogue pages keep the original category-list presentation.
   The compact article list above is reserved for body.search-result-mode. */
@media (min-width: 769px) {
    body.catalog-list-mode .resource-category-hero {
        min-height: 230px;
    }

    body.catalog-list-mode .resource-category-hero-inner {
        padding: 18px 0 112px;
    }

    body.catalog-list-mode .resource-category-title {
        margin-top: 40px;
    }

    body.catalog-list-mode .resource-category-title p {
        display: block;
    }

    body.catalog-list-mode .search-filter-panel {
        margin: -100px auto 28px;
        padding: 20px 24px;
        background: #fff;
        box-shadow: 0 12px 28px rgba(17, 29, 40, .1);
    }

    body.catalog-list-mode .search-filter-panel .filter-body {
        display: grid;
    }

    body.catalog-list-mode .desktop-search-controls,
    body.catalog-list-mode .related-search-panel,
    body.catalog-list-mode .search-pagination {
        display: none;
    }

    body.catalog-list-mode .results {
        width: min(1200px, calc(100vw - 40px));
        min-height: 320px;
        margin: 0 auto;
        padding: 0;
        background: transparent;
    }

    body.catalog-list-mode .result-toolbar {
        display: flex;
    }

    body.catalog-list-mode .resource-list,
    body.catalog-list-mode .resource-list.document-mode,
    body.catalog-list-mode .resource-list.ppt-mode {
        overflow: visible;
        border: 0;
        border-radius: 0;
        background: transparent;
    }

    body.catalog-list-mode .search-load-more-sentinel {
        display: block;
    }
}
