:root {
    --li-primary: #4c6fff;
    --li-primary-dark: #3658ea;
    --li-ink: #17253c;
    --li-muted: #72809a;
    --li-bg: #f7f8fe;
    --li-card: #fff;
    --li-line: #e1e6f0;
    --li-shadow: 0 10px 28px rgba(36, 53, 91, .055);
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
    margin: 0;
}

body {
    color: var(--li-ink);
    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    background: var(--li-bg);
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

.li-shell {
    width: min(1140px, calc(100% - 40px));
    margin: 0 auto;
}

/* 顶栏 */
.li-header {
    height: 70px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(40, 57, 93, .045);
}

.li-header-inner {
    display: grid;
    grid-template-columns: 1fr minmax(320px, 500px) 1fr;
    align-items: center;
    height: 70px;
}

.li-brand {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    gap: 10px;
    font-size: 21px;
    font-weight: 700;
}

.li-brand-icon {
    display: inline-flex;
    width: 32px;
    height: 32px;
    color: var(--li-primary);
}

.li-brand-icon svg {
    width: 100%;
    height: 100%;
}

.li-brand-text {
    max-width: 240px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.li-home-link {
    justify-self: end;
    padding: 8px 13px;
    color: var(--li-primary);
    font-size: 15px;
    border-radius: 7px;
}

.li-home-link:hover {
    background: #f0f3ff;
}

.li-search {
    display: flex;
    min-width: 0;
    height: 50px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #dce2ee;
    border-radius: 12px;
    box-shadow: 0 9px 24px rgba(76, 111, 255, .07);
}

.li-search:focus-within {
    border-color: #bdc9ff;
    box-shadow: 0 0 0 3px rgba(76, 111, 255, .08), 0 9px 24px rgba(76, 111, 255, .08);
}

.li-search input {
    width: 0;
    min-width: 0;
    flex: 1 1 0%;
    padding: 0 24px;
    color: #4a566d;
    background: transparent;
    border: 0;
    outline: 0;
}

.li-search input::placeholder {
    color: #8d98aa;
}

.li-search button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100px;
    color: #fff;
    font-weight: 700;
    background: var(--li-primary);
    border: 0;
    cursor: pointer;
}

.li-search button:hover {
    background: var(--li-primary-dark);
}

.li-search button svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
}

.li-header-search {
    justify-self: center;
    width: 100%;
    height: 48px;
    border-radius: 26px;
    box-shadow: 0 5px 18px rgba(37, 55, 91, .05);
}

.li-header-search button {
    width: 68px;
}

.li-home .li-header-inner {
    grid-template-columns: 1fr 1fr;
}

.li-home .li-header-search {
    display: none;
}

/* 首页 */
.li-home {
    min-height: 100vh;
}

.li-home-main {
    display: flex;
    min-height:700px;
    align-items: flex-start;
    justify-content: center;
    padding: 64px 20px 44px;
}

.li-home-hero {
    width: min(800px, 100%);
    min-width: 0;
    max-width: 100%;
    text-align: center;
}

.li-home-hero h1 {
    margin: 0;
    font-size: 44px;
    line-height: 1.3;
    letter-spacing: -1px;
}

.li-home-hero p {
    margin: 20px 0 31px;
    color: #7786a2;
    font-size: 17px;
}

.li-home-search {
    width: 100%;
    height: 60px;
    border-radius: 12px;
}

.li-home-search input {
    padding-left: 25px;
    font-size: 16px;
}

.li-home-search button {
    width: 130px;
    font-size: 16px;
}

/* 搜索结果 */
.li-results-main {
    min-height: calc(100vh - 142px);
    padding-top: 30px;
    padding-bottom: 38px;
}

.li-results-heading {
    margin: 0 0 26px;
}

.li-results-heading h1 {
    margin: 0 0 18px;
    font-size: 26px;
    line-height: 1.4;
}

.li-results-heading h1 strong {
    color: var(--li-primary);
}

.li-results-heading p {
    margin: 0;
    color: #75829c;
    font-size: 15px;
}

.li-fuzzy-note {
    margin-top: 8px !important;
    color: #9a7623 !important;
}

.li-results-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.li-result-card {
    min-width: 0;
    min-height: 184px;
    padding: 20px;
    background: var(--li-card);
    border-radius: 12px;
    box-shadow: var(--li-shadow);
}

.li-result-title {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--li-line);
}

.li-file-icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #3f9bed;
    background: #edf7ff;
    border-radius: 10px;
}

.li-file-icon svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.li-file-icon svg path:nth-child(2),
.li-file-icon svg path:nth-child(3) {
    fill: none;
    stroke: #fff;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.li-result-title h2, .li-result-title h3 {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    font-size: 16px;
    line-height: 1.5;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.li-result-title h2 a, .li-result-title h3 a{
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.li-result-title h2 a:hover, .li-result-title h3 a:hover {
    color: var(--li-primary);
}

.li-result-title em,
.li-result-title font,
.li-result-title mark {
    padding: 0;
    background: transparent !important;
    color: #ff3f46 !important;
    font-style: italic;
}

.li-result-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 17px 0;
    color: #7a87a0;
    font-size: 13px;
    border-bottom: 1px solid var(--li-line);
}

.li-result-meta b {
    color: #27344b;
}

.li-view-link {
    display: block;
    margin-top: 16px;
    color: #7e8aa0;
    font-size: 13px;
    text-align: right;
}

.li-view-link:hover {
    color: var(--li-primary);
}

.li-empty {
    padding: 50px 20px;
    color: var(--li-muted);
    text-align: center;
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--li-shadow);
}

.li-error-main {
    display: grid;
    min-height: 540px;
    place-items: center;
    padding: 70px 20px;
}

.li-error-card {
    width: min(620px, 100%);
    padding: 52px 42px;
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--li-shadow);
    text-align: center;
}

.li-error-code {
    color: var(--li-primary);
    font-size: 72px;
    font-weight: 800;
    line-height: 1;
}

.li-error-card h1 {
    margin: 18px 0 8px;
    font-size: 25px;
}

.li-error-card p {
    margin: 0 0 26px;
    color: var(--li-muted);
}

.li-error-card .li-search {
    margin: 0 auto;
}

.li-error-home {
    display: inline-block;
    margin-top: 20px;
    color: var(--li-primary);
}

.li-pagination {
    display: flex;
    justify-content: center;
    padding: 40px 0 0;
}

.li-pagination .pager-wrap {
    margin: 0;
}

.li-pagination .pc-pager-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 9px;
}

.li-pagination .mobile-pager-wrap {
    display: none;
}

.li-pagination a,
.li-pagination b {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    color: #27344b;
    background: #fff;
    border: 0;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(38, 54, 90, .04);
}

.li-pagination b,
.li-pagination a:hover {
    color: #fff;
    background: var(--li-primary);
}

.li-pagination .pager-mark {
    color: #7f8ba2;
}

/* 内容页 */
.li-detail-page {
    background: var(--li-bg);
}

.li-detail-page .li-footer {
    width: min(1140px, calc(100% - 40px));
    margin: 16px auto 40px;
}

.li-detail-main {
    min-height: 0;
    padding-top: 30px;
    padding-bottom: 24px;
}

.li-detail-card,
.li-directory-card {
    padding: 22px;
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--li-shadow);
}

.li-detail-card {
    margin-bottom: 24px;
}

.li-directory-card {
    min-height: 0;
}

.li-detail-card .resource-title {
    margin: 0 0 22px;
    font-size: 24px;
    line-height: 1.45;
}

.li-meta-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px 28px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--li-line);
}

.li-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.li-meta-icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    color: var(--li-primary);
    font-size: 16px;
    background: #eef1ff;
    border-radius: 8px;
}

.li-meta-icon svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.li-meta-item p {
    min-width: 0;
    margin: 0;
}

.li-meta-item small {
    display: block;
    margin-bottom: 5px;
    color: #60708c;
    font-size: 14px;
}

.li-meta-item strong {
    display: block;
    overflow: hidden;
    color: #26334a;
    font-size: 15px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.li-valid-text {
    display: inline-block !important;
    width: auto !important;
    padding: 3px 8px;
    color: #23945f !important;
    font-size: 14px !important;
    background: #e9f9f0;
    border-radius: 10px;
}

.li-valid-text.is-invalid {
    color: #e05252 !important;
    background: #fff0f0;
}

.li-share-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 14px;
}

.li-share-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    color: #fff;
    font-size: 12px;
    background: var(--li-primary);
    border-radius: 50%;
}

.li-share-row strong,
.li-share-row small {
    display: block;
}

.li-share-row strong {
    font-size: 13px;
}

.li-share-row small {
    margin-top: 2px;
    color: #8a96aa;
    font-size: 11px;
}

.li-detail-card .action-buttons {
    margin: 4px 0 0 34px;
}

.li-detail-card .btn {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 2px 4px;
    color: #4f5c72;
    font-size: 11px;
    background: #fff;
    border: 1px solid #b6bfce;
    border-radius: 0;
}

.li-detail-card .resource-meta {
    display: inline-flex;
    margin-top: 12px;
    padding: 8px 10px;
    color: #66738a;
    font-size: 12px;
    background: #f6f8fd;
    border-radius: 6px;
}

.li-detail-card .resource-meta span {
    margin-right: 7px;
}

.li-detail-card .tip {
    display: none;
}

.li-detail-card .check-wrap {
    display: none;
}

.li-detail-card .button-wrap {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.li-detail-card .button,
.li-detail-card .button2 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 17px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    background: var(--li-primary);
    border: 0;
    border-radius: 6px;
}

.li-detail-card .button::before {
    margin-right: 6px;
    content: "↗";
}

.li-detail-card .button:hover,
.li-detail-card .button2:hover {
    background: var(--li-primary-dark);
}

.li-detail-card .button2 {
    color: var(--li-primary);
    background: #eef1ff;
}

.li-directory-card h2 {
    margin: 0 0 26px;
    font-size: 22px;
}

.li-directory-content {
    height: auto;
    min-height: 0;
    max-height: none;
    overflow-wrap: anywhere;
    color: #31405a;
    font-size: 13px;
    line-height: 1.75;
}

.li-directory-content p {
    margin: 0;
    white-space: pre-wrap;
}

.li-directory-content br+br {
    display: block;
    content: "";
}

/* 页脚 */
.li-footer {
    color: #74819b;
    background: #fff;
    border-top: 1px solid #dfe4ee;
}

.li-footer-inner {
    padding: 24px 0 16px;
    text-align: center;
}

.li-footer p {
    margin: 0 auto 5px;
    font-size: 12px;
    line-height: 1.75;
}

@media (max-width: 900px) {
    .li-header-inner {
        grid-template-columns: auto minmax(260px, 1fr) auto;
        gap: 20px;
    }

    .li-results-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .li-meta-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .li-shell {
        width: calc(100% - 24px);
    }

    .li-header {
        height: auto;
    }

    .li-header-inner {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 8px 12px;
        min-height: 0;
        height: auto;
        padding: 10px 0;
    }

    .li-brand {
        justify-content: flex-start;
        margin: 0;
        font-size: 20px;
    }

    .li-brand-icon {
        width: 34px;
    }

    .li-header-search {
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
        height: 44px;
        border-radius: 24px;
    }

    .li-header-search button {
        flex: 0 0 60px;
    }

    .li-home-link {
        grid-column: 2;
        grid-row: 1;
        margin: 0;
        padding: 6px 8px;
        font-size: 14px;
    }

    .li-home {
        display: flex;
        flex-direction: column;
        min-height: 100svh;
    }

    .li-home .li-header-inner {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .li-home-main {
        flex: 1;
        min-width: 0;
        min-height: 0;
        align-items: center;
        padding: 32px 14px;
    }

    .li-home-hero h1 {
        font-size: 30px;
        overflow-wrap: anywhere;
    }

    .li-home-hero p {
        margin: 14px 0 24px;
        font-size: 15px;
    }

    .li-home-search {
        height: 52px;
    }

    /* Keep focused search fields at 16px on iOS; do not disable user zoom. */
    .li-search input {
        font-size: 16px;
        padding: 0 14px;
    }

    .li-home-search input {
        padding-left: 15px;
        font-size: 16px;
    }

    .li-home-search button {
        flex: 0 0 88px;
        width: 88px;
    }

    .li-results-main {
        padding: 23px 10px 38px;
    }

    .li-results-heading h1 {
        font-size: 22px;
    }

    .li-results-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .li-result-card {
        min-height: 170px;
    }


    .li-pagination .mobile-pager-wrap {
        display: flex;
    }

    .li-detail-main {
        width: calc(100% - 24px);
        padding: 24px 0 20px;
    }

    .li-detail-card,
    .li-directory-card {
        padding: 18px;
        border-radius: 14px;
    }

    .li-detail-card {
        margin-bottom: 18px;
    }

    .li-detail-card .resource-title {
        margin-bottom: 20px;
        font-size: 21px;
    }

    .li-meta-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding-bottom: 20px;
    }

    .li-meta-item {
        gap: 12px;
    }

    .li-meta-icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }

    .li-meta-item small {
        margin-bottom: 6px;
        font-size: 14px;
    }

    .li-meta-item strong {
        font-size: 16px;
    }

    .li-share-row {
        padding-top: 16px;
    }

    .li-share-row strong {
        font-size: 15px;
    }

    .li-share-row small {
        font-size: 14px;
    }

    .li-detail-card .action-buttons {
        margin-left: 0;
    }

    .li-detail-card .button-wrap {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        width: 100%;
        margin-top: 18px;
    }

    .li-detail-card .button,
    .li-detail-card .button2 {
        width: 100%;
        min-height: 44px;
        font-size: 14px;
    }

    .li-directory-card {
        min-height: 0;
    }

    .li-directory-card h2 {
        margin-bottom: 22px;
        font-size: 22px;
    }

    .li-directory-content {
        padding: 0 6px;
        font-size: 14px;
        line-height: 1.78;
    }

    .li-detail-page .li-footer {
        width: calc(100% - 24px);
        margin: 0 auto 24px;
    }

    .li-footer-inner {
        padding: 18px 0 12px;
    }

    .li-footer p {
        overflow-wrap: anywhere;
    }
}
.l-h2x{
    font-size:22px;
}