.p2-theme-header {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 500px;
    background-size: cover;
    background-position: 50%;
    background-repeat: no-repeat;
    background-image: url(../static/theme-bg.png);
}

.p2-theme-header.fill-screen {
    height: 90vh;
    background-image: url(/staticresource/scioabook2/static/sub_bg.png);

}

.p2-theme-header.left-screen {
    align-items: flex-start;
    background-image: url(/staticresource/scioabook2/static/sub_bg.png);
}

.p2-theme-header.left-screen .p2-theme-header-title,
.p2-theme-header.left-screen .p2-theme-header-desc {
    margin-left: 0;
    text-align: left;
}

.p2-theme-header-title {
    font-size: 40px;
    color: #384572;
    line-height: 1;
    text-align: center;
}

.p2-theme-header-desc {
    font-size: 14px;
    max-width: 750px;
    color: #384572;
    text-align: center;
    word-break: break-all;
    margin: 0 auto;
    margin-top: 35px;
}

.p2-theme-header-search-content {
    text-align: center;
    margin-top: 50px;
}

.p2-theme-header-search {
    position: relative;
    display: inline-block;
}

.p2-th-search-input {
    height: 40px;
    width: 470px;
    border: 1px solid rgba(218, 224, 238, .8);
    border-radius: 20px;
    padding-left: 16px;
    padding-right: 61px;
    outline: none;
}

.p2-clear-icon {
    display: none;
    user-select: none;
    cursor: pointer;
    right: 40px;
    width: 16px;
    height: 16px;
    top: 50%;
    transform: translateY(-50%);
    position: absolute;
}

.p2-th-search-btn {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 17px;
}

.p2-th-search-input:not(:placeholder-shown)+.p2-clear-icon:hover,
.p2-th-search-input:not(:placeholder-shown):hover+.p2-clear-icon,
.p2-th-search-input:not(:placeholder-shown):focus+.p2-clear-icon {
    display: flex;
}

@media screen and (max-width: 480px) {
    .p2-th-search-input:not(:placeholder-shown)+.p2-clear-icon {
        display: flex !important;
    }

    .p2-theme-header-title {
        font-size: 32px;
    }
}

/* 卡片部分 */
.p2-theme-content-card {
    display: grid;
    column-gap: 24px;
    row-gap: 36px;
    margin-bottom: 36px;
    grid-template-columns: repeat(4, 1fr);
}

.p2-theme-content-card>a {
    min-width: 0;
    transition: all .3s;
}

/* .p2-theme-content-card>a:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
} */
.p2-theme-content-card>a:hover .p2-tcc-card-title {
    color: #1549C0;
}

.p2-theme-content-card>a:hover .p2-tcc-card-cover img {
    transform: scale(1.1);
}

.p2-tcc-card {
    cursor: pointer;
    user-select: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.p2-tcc-card-cover {
    position: relative;
    width: 100%;
    padding-top: 58.2%;
    overflow: hidden;
}

.p2-tcc-card-cover img {
    transition: all .3s;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.p2-tcc-card-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #384572;
    font-weight: 600;
    font-size: 16px;
}

.p2-tcc-card-desc {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    font-size: 14px;
    color: #A6ACBC;
    overflow: hidden;
}