/**
 * 产品库首页样式。
 *
 * 服务产品库归档页，移动端优先，PC 跟随同一信息结构适配。
 */
.litheme-app-library {
    padding: 0 0 60px;
    background: #ffffff;
    color: #27313d;
}

.litheme-app-library-mobile {
    min-height: 100vh;
    background: #ffffff;
}

.litheme-app-library,
.litheme-app-library * {
    box-sizing: border-box;
}

.litheme-app-library__stats-section {
    background: #ffffff;
    border-bottom: 1px solid rgba(98, 197, 193, .22);
}

.litheme-app-library__stats-banner {
    padding: 15px 0 6px;
    background: #ffffff;
    color: #666666;
    font-size: 15px;
    line-height: 1.45;
}

.litheme-app-library__stats-brand {
    color: #000000;
    font-weight: 700;
}

.litheme-app-library__stats-count {
    margin: 0 2px;
    color: #e11d2e;
    font-size: 16px;
    font-weight: 700;
}

.litheme-app-library__search-section {
    margin-top: 0;
    padding: 10px 0 12px;
    border-bottom: 1px solid rgba(98, 197, 193, .22);
    background: #ffffff;
}

.litheme-app-library__search {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 44px;
    padding: 0 8px 0 12px;
    border: 1px solid rgba(72, 168, 166, .34);
    border-radius: 8px;
    background: #ffffff;
}

.litheme-app-library__search:focus-within {
    border-color: rgba(35, 120, 255, .55);
    box-shadow: 0 0 0 3px rgba(35, 120, 255, .08);
}

.litheme-app-library__search label {
    flex: 0 0 auto;
    color: #202a35;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
}

.litheme-app-library__search input[type="text"] {
    flex: 1 1 auto;
    min-width: 0;
    height: 42px;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #202a35;
    font-size: 14px;
}

.litheme-app-library__search button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 6px;
    background: #48a8a6;
    color: #ffffff;
    cursor: pointer;
}

.litheme-app-library__section {
    margin-top: 16px;
}

.litheme-app-library__section-heading,
.litheme-app-library__list-header {
    margin-bottom: 14px;
}

.litheme-app-library__section-heading h2 {
    margin: 0;
    color: #48a8a6;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
}

.litheme-app-library__list-header h2 {
    margin: 0 0 6px;
    color: #211b2f;
    font-size: 22px;
}

.litheme-app-library__list-header p {
    margin: 0;
    color: #6b657f;
    line-height: 1.7;
}

.litheme-app-library__quick-links,
.litheme-app-library__category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.litheme-app-library__quick-card,
.litheme-app-library__category-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 112px;
    padding: 18px;
    border: 1px solid rgba(36, 32, 58, 0.08);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(33, 27, 47, 0.05);
    color: #241f35;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.litheme-app-library__quick-card:hover,
.litheme-app-library__category-card:hover,
.litheme-app-library__category-card.is-active {
    transform: translateY(-3px);
    border-color: rgba(225, 149, 0, 0.35);
    box-shadow: 0 18px 38px rgba(33, 27, 47, 0.11);
}

.litheme-app-library__quick-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 10px;
    background: #fff3d1;
    color: #b87a00;
    font-size: 22px;
}

.litheme-app-library__quick-card strong,
.litheme-app-library__category-card strong {
    font-size: 17px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.litheme-app-library__category-card em {
    margin-top: auto;
    color: #8b5f08;
    font-style: normal;
    font-weight: 700;
}

.litheme-app-library__filters {
    padding: 18px;
    border: 1px solid rgba(36, 32, 58, 0.08);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 24px rgba(33, 27, 47, 0.05);
}

.litheme-app-library__filters-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.litheme-app-library__select-group,
.litheme-app-library__sort-field {
    position: relative;
    display: grid;
    grid-template-columns: 4.8em minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.litheme-app-library__sort-field label,
.litheme-app-library__select-group label {
    flex: 0 0 auto;
    color: #625b77;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.litheme-app-library__select {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    min-height: 40px;
    padding: 0 30px 0 10px;
    border: 1px solid rgba(36, 32, 58, 0.12);
    border-radius: 8px;
    background-color: #ffffff;
    background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%23625b77' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-position: right 11px center;
    background-repeat: no-repeat;
    color: #241f35;
    font-size: 14px;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
}

.litheme-app-library__select:focus {
    border-color: rgba(35, 120, 255, .55);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(35, 120, 255, .08);
}

.litheme-app-library__select:disabled {
    background-color: #f5f2e9;
    color: #968a73;
    cursor: not-allowed;
}

.litheme-app-library__select-native {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    border: 0;
    opacity: 0;
    pointer-events: none;
}

.litheme-app-library__select-enhanced {
    position: relative;
    min-width: 0;
}

.litheme-app-library__select-text {
    display: block;
    min-width: 0;
}

.litheme-app-library__select-button-label {
    display: none;
}

.litheme-app-library__select-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    min-height: 40px;
    padding: 0 10px;
    border: 1px solid rgba(36, 32, 58, 0.12);
    border-radius: 8px;
    background: #ffffff;
    color: #241f35;
    font-size: 14px;
    line-height: 1.2;
    cursor: pointer;
}

.litheme-app-library__select-enhanced.is-open .litheme-app-library__select-button,
.litheme-app-library__select-button:focus {
    border-color: rgba(35, 120, 255, .55);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(35, 120, 255, .08);
}

.litheme-app-library__select-value {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.litheme-app-library__select-arrow {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%23625b77' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
    transition: transform .18s ease;
}

.litheme-app-library__select-enhanced.is-open .litheme-app-library__select-arrow {
    transform: rotate(180deg);
}

.litheme-app-library__select-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    left: 0;
    z-index: 40;
    display: none;
    padding: 8px;
    border: 1px solid rgba(36, 32, 58, 0.12);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.16);
}

.litheme-app-library__select-enhanced.is-open .litheme-app-library__select-menu {
    display: block;
}

.litheme-app-library__select-search {
    width: 100%;
    height: 36px;
    padding: 0 10px;
    border: 1px solid rgba(36, 32, 58, 0.12);
    border-radius: 7px;
    outline: 0;
    color: #202a35;
    font-size: 13px;
}

.litheme-app-library__select-search:focus {
    border-color: rgba(35, 120, 255, .5);
    box-shadow: 0 0 0 3px rgba(35, 120, 255, .07);
}

.litheme-app-library__select-options {
    max-height: 220px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.litheme-app-library__select-search + .litheme-app-library__select-options {
    margin-top: 6px;
}

.litheme-app-library__select-option {
    display: block;
    width: 100%;
    min-height: 34px;
    padding: 8px 9px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #334155;
    font-size: 13px;
    line-height: 1.35;
    text-align: left;
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.litheme-app-library__select-option:hover,
.litheme-app-library__select-option:focus {
    background: #f1f7ff;
    outline: 0;
}

.litheme-app-library__select-option.is-selected {
    background: #eaf4ff;
    color: #2378ff;
    font-weight: 700;
}

.litheme-app-library__select-empty {
    padding: 12px 8px;
    color: #8a96a3;
    font-size: 13px;
    text-align: center;
}

.litheme-app-library__filter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.litheme-app-library__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 128px;
    min-height: 44px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    background: #24203a;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.litheme-app-library__button.is-ghost {
    background: #f4edd8;
    color: #433710;
}

.litheme-app-library__list-toolbar {
    display: block;
}

.litheme-app-library__list.app-product-cover-flow {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 0.75rem;
}

.litheme-app-library__list .col {
    width: auto;
    max-width: none;
    padding: 0;
}

.litheme-app-library__list .app-item {
    width: 100%;
}

.litheme-app-library__list .app-product-card-simple {
    width: 100%;
    min-width: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    overflow: hidden;
}

.litheme-app-library__list .app-product-card-simple__link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.litheme-app-library__list .app-product-card-simple__cover {
    width: 100%;
    aspect-ratio: 3 / 4;
    background: #f3f4f6;
    border-radius: 6px;
    overflow: hidden;
}

.litheme-app-library__list .app-product-card-simple__cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.litheme-app-library__list .app-product-card-simple:hover .app-product-card-simple__cover img {
    transform: scale(1.04);
}

.litheme-app-library__list .app-product-card-simple__placeholder {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 1.8rem;
}

.litheme-app-library__list .app-product-card-simple__title {
    display: -webkit-box;
    margin: 0.5rem 0 0;
    overflow: hidden;
    color: #1e293b;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.litheme-app-library__empty {
    padding: 56px 20px;
    border: 1px dashed rgba(36, 32, 58, 0.18);
    border-radius: 12px;
    background: #ffffff;
    color: #6a647d;
    text-align: center;
}

.litheme-app-library__empty i {
    display: inline-flex;
    margin-bottom: 14px;
    color: #c58b00;
    font-size: 42px;
}

.litheme-app-library__empty h2 {
    margin-bottom: 8px;
    color: #211b2f;
}

.litheme-app-library__pagination .page-numbers {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.litheme-app-library__pagination a,
.litheme-app-library__pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border-radius: 12px;
    background: #ffffff;
    color: #221d31;
    text-decoration: none;
}

.litheme-app-library__pagination .current {
    background: #24203a;
    color: #ffffff;
}

@media (max-width: 991px) {
    .litheme-app-library__quick-links,
    .litheme-app-library__category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .litheme-app-library-mobile {
        padding-top: 44px;
    }

    .litheme-app-library__search-section {
        padding-top: 10px;
        padding-bottom: 12px;
    }

    .litheme-app-library__search label {
        font-size: 14px;
    }

    .litheme-app-library__search input[type="text"] {
        font-size: 13px;
    }

    .litheme-app-library__filters,
    .litheme-app-library__quick-card,
    .litheme-app-library__category-card {
        padding: 14px;
    }

    .litheme-app-library__filters-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .litheme-app-library__select-group,
    .litheme-app-library__sort-field {
        display: block;
    }

    .litheme-app-library__select,
    .litheme-app-library__select-button {
        min-height: 44px;
        padding: 0 8px;
        font-size: 15px;
    }

    .litheme-app-library__select-group.is-enhanced > label {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        border: 0;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    .litheme-app-library__select-text {
        display: block;
        min-width: 0;
        text-align: left;
    }

    .litheme-app-library__select-button-label {
        display: block;
        color: #241f35;
        font-size: 15px;
        font-weight: 700;
        line-height: 1.2;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .litheme-app-library__select-value {
        display: none;
    }

    .litheme-app-library__select-arrow {
        width: 14px;
        height: 14px;
    }

    .litheme-app-library__select-menu {
        padding: 7px;
    }

    .litheme-app-library__select-options {
        max-height: 240px;
    }

    .litheme-app-library__filter-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .litheme-app-library__button {
        width: 100%;
        min-width: 0;
        padding: 0 12px;
    }

    .litheme-app-library__list.app-product-cover-flow {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.75rem;
    }

    .litheme-app-library__list .app-product-card-simple__title {
        margin-top: 0.4rem;
        color: #333333;
        font-size: 0.76rem;
        font-weight: 500;
    }

    .litheme-app-library__list .app-product-card-simple__placeholder {
        font-size: 1.5rem;
    }
}
