/* 搜索框相机入口 */
.search-bar {
    position: relative;
}
.plugins-imagesearch-search-btn {
    position: absolute;
    right: calc(27% + 0.6rem);
    top: 0.1rem;
    width: 2.4rem;
    height: 2.4rem;
    line-height: 2.4rem;
    text-align: center;
    color: #666;
    cursor: pointer;
    z-index: 5;
}
.plugins-imagesearch-search-btn i {
    font-size: 1.5rem;
    line-height: inherit;
}
.plugins-imagesearch-search-btn:hover,
.plugins-imagesearch-search-btn:hover i {
    color: var(--color-main);
}
.search-bar form .search-group > input {
    padding-right: 3rem;
}
@media only screen and (min-width: 641px) {
    .plugins-imagesearch-search-btn {
        right: calc(20% + 0.8rem);
        top: 0.6rem;
        width: 2.8rem;
        height: 2.8rem;
        line-height: 2.8rem;
    }
    .plugins-imagesearch-search-btn i {
        font-size: 1.6rem;
    }
    .search-bar form .search-group > input {
        padding-right: 3.4rem;
    }
}

/* 手机顶栏搜索 */
.navigation-search {
    position: relative;
}
.plugins-imagesearch-search-btn.is-mobile {
    right: 3.4rem;
    top: 50%;
    transform: translateY(-50%);
    width: 2.6rem;
    height: 2.6rem;
    line-height: 2.6rem;
}
.navigation-search .am-input-group > input.am-form-field {
    padding-right: 3.2rem;
}

/* 上传弹层 */
.plugins-imagesearch-dialog {
    width: 30rem;
    max-width: 86%;
    border-radius: 1rem;
    overflow: hidden;
}
@media only screen and (min-width: 641px) {
    .plugins-imagesearch-dialog {
        width: 32rem;
    }
}
.plugins-imagesearch-dialog .am-modal-hd {
    text-align: left;
    font-size: 1.5rem;
    font-weight: 600;
    padding: 1.4rem 1.4rem 0;
}
.plugins-imagesearch-dialog .am-modal-bd {
    padding: 1.4rem;
}
.plugins-imagesearch-dropzone {
    width: 100%;
    aspect-ratio: 1 / 1;
    max-height: min(58vw, 24rem);
    border: 0.1rem dashed #ddd;
    border-radius: 0.8rem;
    background: #f7f8fa;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #999;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-sizing: border-box;
}
.plugins-imagesearch-dropzone.is-dragover {
    border-color: #7eb8f7;
    background: #f7fbff;
}
.plugins-imagesearch-dropzone .dz-icon {
    font-size: 3.6rem;
    color: #c8c8c8;
    margin-bottom: 0.8rem;
}
.plugins-imagesearch-dropzone .dz-tip {
    font-size: 1.2rem;
}
.plugins-imagesearch-dropzone .dz-preview {
    display: none;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
    padding: 0.8rem;
    box-sizing: border-box;
    pointer-events: none;
    -webkit-user-drag: none;
    user-select: none;
}
.plugins-imagesearch-dropzone.has-preview {
    border-style: solid;
    border-color: #eee;
    background: #fff;
}
.plugins-imagesearch-dropzone.has-preview .dz-icon,
.plugins-imagesearch-dropzone.has-preview .dz-tip,
.plugins-imagesearch-dropzone.has-preview .dz-progress-wrap {
    display: none;
}
.plugins-imagesearch-dropzone.has-preview .dz-preview {
    display: block;
}
.plugins-imagesearch-dropzone .dz-scan-overlay {
    display: none;
    position: absolute;
    inset: 0;
    z-index: 3;
    overflow: hidden;
    pointer-events: none;
}
.plugins-imagesearch-dropzone.is-scanning .dz-scan-overlay {
    display: block;
}
.plugins-imagesearch-dropzone.is-scanning.has-preview .dz-preview {
    filter: saturate(0.9) brightness(0.97);
}
.plugins-imagesearch-dropzone .dz-scan-mask {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 25%, rgba(64, 158, 255, 0.12), transparent 45%),
        radial-gradient(ellipse at 75% 70%, rgba(168, 85, 247, 0.1), transparent 48%),
        linear-gradient(180deg, rgba(8, 16, 32, 0.22), rgba(8, 16, 32, 0.3));
}
.plugins-imagesearch-dropzone .dz-scan-links {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.75;
}
.plugins-imagesearch-dropzone .dz-scan-links path {
    fill: none;
    stroke: rgba(120, 200, 255, 0.45);
    stroke-width: 0.35;
    stroke-linecap: round;
    stroke-dasharray: 4 6;
    animation: plugins-imagesearch-link-flow 2.4s linear infinite;
}
.plugins-imagesearch-dropzone .dz-scan-links path:nth-child(2) {
    stroke: rgba(167, 139, 250, 0.4);
    animation-duration: 2.8s;
    animation-delay: -0.4s;
}
.plugins-imagesearch-dropzone .dz-scan-links path:nth-child(3) {
    stroke: rgba(52, 211, 153, 0.38);
    animation-duration: 2.2s;
    animation-delay: -0.8s;
}
.plugins-imagesearch-dropzone .dz-scan-links path:nth-child(4) {
    stroke: rgba(251, 146, 60, 0.36);
    animation-duration: 3s;
    animation-delay: -1.2s;
}
.plugins-imagesearch-dropzone .dz-scan-links path:nth-child(5) {
    stroke: rgba(244, 114, 182, 0.38);
    animation-duration: 2.6s;
    animation-delay: -0.6s;
}
.plugins-imagesearch-dropzone .dz-scan-links path:nth-child(6) {
    stroke: rgba(56, 189, 248, 0.4);
    animation-duration: 2.1s;
    animation-delay: -1s;
}
.plugins-imagesearch-dropzone .dz-scan-links path:nth-child(7) {
    stroke: rgba(250, 204, 21, 0.32);
    animation-duration: 2.9s;
    animation-delay: -0.2s;
}
.plugins-imagesearch-dropzone .dz-scan-dots {
    position: absolute;
    inset: 0;
}
.plugins-imagesearch-dropzone .dz-scan-dots > i {
    position: absolute;
    width: 0.62rem;
    height: 0.62rem;
    margin: -0.31rem 0 0 -0.31rem;
    border-radius: 50%;
    opacity: 0.15;
    transform: scale(0.75);
    animation-name: plugins-imagesearch-dot-a;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}
.plugins-imagesearch-dropzone .dz-scan-dots > i:nth-child(3n+1) {
    background: #38bdf8;
    box-shadow: 0 0 0.7rem rgba(56, 189, 248, 0.75);
}
.plugins-imagesearch-dropzone .dz-scan-dots > i:nth-child(3n+2) {
    background: #a78bfa;
    box-shadow: 0 0 0.7rem rgba(167, 139, 250, 0.75);
}
.plugins-imagesearch-dropzone .dz-scan-dots > i:nth-child(3n) {
    background: #34d399;
    box-shadow: 0 0 0.7rem rgba(52, 211, 153, 0.72);
}
.plugins-imagesearch-dropzone .dz-scan-dots > i:nth-child(4n) {
    background: #fb923c;
    box-shadow: 0 0 0.7rem rgba(251, 146, 60, 0.7);
}
.plugins-imagesearch-dropzone .dz-scan-dots > i:nth-child(5n) {
    background: #f472b6;
    box-shadow: 0 0 0.7rem rgba(244, 114, 182, 0.72);
}
.plugins-imagesearch-dropzone .dz-scan-dots > i:nth-child(7n) {
    background: #facc15;
    box-shadow: 0 0 0.7rem rgba(250, 204, 21, 0.65);
}
.plugins-imagesearch-dropzone .dz-scan-dots > i:nth-child(3n+2) {
    animation-name: plugins-imagesearch-dot-b;
}
.plugins-imagesearch-dropzone .dz-scan-dots > i:nth-child(3n) {
    animation-name: plugins-imagesearch-dot-c;
}
.plugins-imagesearch-dropzone .dz-scan-dots > i:nth-child(1)  { left: 12%; top: 18%; animation-duration: 1.15s; animation-delay: -0.23s; }
.plugins-imagesearch-dropzone .dz-scan-dots > i:nth-child(2)  { left: 22%; top: 12%; animation-duration: 1.82s; animation-delay: -1.41s; width: 0.45rem; height: 0.45rem; }
.plugins-imagesearch-dropzone .dz-scan-dots > i:nth-child(3)  { left: 34%; top: 20%; animation-duration: 0.96s; animation-delay: -0.07s; }
.plugins-imagesearch-dropzone .dz-scan-dots > i:nth-child(4)  { left: 46%; top: 14%; animation-duration: 2.14s; animation-delay: -1.88s; width: 0.5rem; height: 0.5rem; }
.plugins-imagesearch-dropzone .dz-scan-dots > i:nth-child(5)  { left: 58%; top: 22%; animation-duration: 1.37s; animation-delay: -0.64s; }
.plugins-imagesearch-dropzone .dz-scan-dots > i:nth-child(6)  { left: 70%; top: 16%; animation-duration: 1.68s; animation-delay: -0.19s; width: 0.42rem; height: 0.42rem; }
.plugins-imagesearch-dropzone .dz-scan-dots > i:nth-child(7)  { left: 82%; top: 24%; animation-duration: 1.05s; animation-delay: -0.91s; }
.plugins-imagesearch-dropzone .dz-scan-dots > i:nth-child(8)  { left: 90%; top: 32%; animation-duration: 1.93s; animation-delay: -1.22s; width: 0.48rem; height: 0.48rem; }
.plugins-imagesearch-dropzone .dz-scan-dots > i:nth-child(9)  { left: 8%; top: 30%; animation-duration: 1.44s; animation-delay: -0.38s; width: 0.5rem; height: 0.5rem; }
.plugins-imagesearch-dropzone .dz-scan-dots > i:nth-child(10) { left: 18%; top: 38%; animation-duration: 0.88s; animation-delay: -0.55s; }
.plugins-imagesearch-dropzone .dz-scan-dots > i:nth-child(11) { left: 28%; top: 28%; animation-duration: 2.05s; animation-delay: -1.67s; width: 0.4rem; height: 0.4rem; }
.plugins-imagesearch-dropzone .dz-scan-dots > i:nth-child(12) { left: 40%; top: 34%; animation-duration: 1.26s; animation-delay: -0.02s; }
.plugins-imagesearch-dropzone .dz-scan-dots > i:nth-child(13) { left: 52%; top: 28%; animation-duration: 1.71s; animation-delay: -1.09s; width: 0.55rem; height: 0.55rem; }
.plugins-imagesearch-dropzone .dz-scan-dots > i:nth-child(14) { left: 64%; top: 36%; animation-duration: 1.12s; animation-delay: -0.74s; }
.plugins-imagesearch-dropzone .dz-scan-dots > i:nth-child(15) { left: 76%; top: 30%; animation-duration: 1.98s; animation-delay: -0.31s; width: 0.45rem; height: 0.45rem; }
.plugins-imagesearch-dropzone .dz-scan-dots > i:nth-child(16) { left: 86%; top: 42%; animation-duration: 0.93s; animation-delay: -0.48s; }
.plugins-imagesearch-dropzone .dz-scan-dots > i:nth-child(17) { left: 14%; top: 48%; animation-duration: 1.58s; animation-delay: -1.33s; }
.plugins-imagesearch-dropzone .dz-scan-dots > i:nth-child(18) { left: 26%; top: 52%; animation-duration: 1.21s; animation-delay: -0.86s; width: 0.48rem; height: 0.48rem; }
.plugins-imagesearch-dropzone .dz-scan-dots > i:nth-child(19) { left: 38%; top: 44%; animation-duration: 2.22s; animation-delay: -0.15s; }
.plugins-imagesearch-dropzone .dz-scan-dots > i:nth-child(20) { left: 50%; top: 50%; animation-duration: 1.09s; animation-delay: -0.97s; width: 0.7rem; height: 0.7rem; }
.plugins-imagesearch-dropzone .dz-scan-dots > i:nth-child(21) { left: 62%; top: 46%; animation-duration: 1.76s; animation-delay: -1.54s; }
.plugins-imagesearch-dropzone .dz-scan-dots > i:nth-child(22) { left: 74%; top: 54%; animation-duration: 1.33s; animation-delay: -0.41s; width: 0.42rem; height: 0.42rem; }
.plugins-imagesearch-dropzone .dz-scan-dots > i:nth-child(23) { left: 88%; top: 56%; animation-duration: 0.99s; animation-delay: -0.68s; }
.plugins-imagesearch-dropzone .dz-scan-dots > i:nth-child(24) { left: 10%; top: 62%; animation-duration: 1.87s; animation-delay: -1.16s; width: 0.5rem; height: 0.5rem; }
.plugins-imagesearch-dropzone .dz-scan-dots > i:nth-child(25) { left: 22%; top: 68%; animation-duration: 1.41s; animation-delay: -0.27s; }
.plugins-imagesearch-dropzone .dz-scan-dots > i:nth-child(26) { left: 34%; top: 60%; animation-duration: 2.08s; animation-delay: -1.79s; width: 0.45rem; height: 0.45rem; }
.plugins-imagesearch-dropzone .dz-scan-dots > i:nth-child(27) { left: 46%; top: 66%; animation-duration: 1.03s; animation-delay: -0.53s; }
.plugins-imagesearch-dropzone .dz-scan-dots > i:nth-child(28) { left: 58%; top: 62%; animation-duration: 1.64s; animation-delay: -0.11s; width: 0.55rem; height: 0.55rem; }
.plugins-imagesearch-dropzone .dz-scan-dots > i:nth-child(29) { left: 70%; top: 68%; animation-duration: 1.29s; animation-delay: -1.02s; }
.plugins-imagesearch-dropzone .dz-scan-dots > i:nth-child(30) { left: 82%; top: 64%; animation-duration: 1.95s; animation-delay: -0.79s; width: 0.4rem; height: 0.4rem; }
.plugins-imagesearch-dropzone .dz-scan-dots > i:nth-child(31) { left: 16%; top: 78%; animation-duration: 0.91s; animation-delay: -0.36s; }
.plugins-imagesearch-dropzone .dz-scan-dots > i:nth-child(32) { left: 30%; top: 74%; animation-duration: 1.52s; animation-delay: -1.28s; width: 0.48rem; height: 0.48rem; }
.plugins-imagesearch-dropzone .dz-scan-dots > i:nth-child(33) { left: 42%; top: 80%; animation-duration: 2.17s; animation-delay: -0.61s; }
.plugins-imagesearch-dropzone .dz-scan-dots > i:nth-child(34) { left: 54%; top: 76%; animation-duration: 1.18s; animation-delay: -1.45s; width: 0.5rem; height: 0.5rem; }
.plugins-imagesearch-dropzone .dz-scan-dots > i:nth-child(35) { left: 66%; top: 82%; animation-duration: 1.73s; animation-delay: -0.04s; }
.plugins-imagesearch-dropzone .dz-scan-dots > i:nth-child(36) { left: 78%; top: 78%; animation-duration: 1.07s; animation-delay: -0.83s; width: 0.45rem; height: 0.45rem; }
.plugins-imagesearch-dropzone .dz-scan-dots > i:nth-child(37) { left: 90%; top: 72%; animation-duration: 1.86s; animation-delay: -1.61s; }
.plugins-imagesearch-dropzone .dz-scan-dots > i:nth-child(38) { left: 6%; top: 42%; animation-duration: 1.35s; animation-delay: -0.49s; width: 0.42rem; height: 0.42rem; }
.plugins-imagesearch-dropzone .dz-scan-dots > i:nth-child(39) { left: 94%; top: 44%; animation-duration: 0.94s; animation-delay: -0.21s; }
.plugins-imagesearch-dropzone .dz-scan-dots > i:nth-child(40) { left: 48%; top: 38%; animation-duration: 2.01s; animation-delay: -1.12s; width: 0.38rem; height: 0.38rem; }
.plugins-imagesearch-dropzone .dz-scan-dots > i:nth-child(41) { left: 36%; top: 70%; animation-duration: 1.47s; animation-delay: -0.72s; }
.plugins-imagesearch-dropzone .dz-scan-dots > i:nth-child(42) { left: 60%; top: 18%; animation-duration: 1.24s; animation-delay: -1.35s; width: 0.48rem; height: 0.48rem; }
.plugins-imagesearch-dropzone .dz-scan-dots > i:nth-child(43) { left: 72%; top: 44%; animation-duration: 1.69s; animation-delay: -0.58s; }
.plugins-imagesearch-dropzone .dz-scan-dots > i:nth-child(44) { left: 24%; top: 84%; animation-duration: 1.01s; animation-delay: -0.93s; width: 0.4rem; height: 0.4rem; }
.plugins-imagesearch-dropzone .dz-scan-dots > i:nth-child(45) { left: 56%; top: 86%; animation-duration: 1.91s; animation-delay: -0.26s; }
.plugins-imagesearch-dropzone .dz-scan-dots > i:nth-child(46) { left: 84%; top: 18%; animation-duration: 1.39s; animation-delay: -1.48s; width: 0.45rem; height: 0.45rem; }
.plugins-imagesearch-dropzone .dz-scan-dots > i:nth-child(47) { left: 40%; top: 56%; animation-duration: 0.97s; animation-delay: -0.44s; }
.plugins-imagesearch-dropzone .dz-scan-dots > i:nth-child(48) { left: 68%; top: 58%; animation-duration: 2.11s; animation-delay: -1.06s; width: 0.5rem; height: 0.5rem; }
/* 三种不同节奏：亮灭峰值位置不同，避免“齐刷刷” */
@keyframes plugins-imagesearch-dot-a {
    0%, 100% { opacity: 0.12; transform: scale(0.55); }
    18% { opacity: 1; transform: scale(1.2); }
    42% { opacity: 0.2; transform: scale(0.7); }
    67% { opacity: 0.85; transform: scale(1.05); }
}
@keyframes plugins-imagesearch-dot-b {
    0%, 100% { opacity: 0.08; transform: scale(0.5); }
    30% { opacity: 0.25; transform: scale(0.65); }
    52% { opacity: 1; transform: scale(1.3); }
    78% { opacity: 0.18; transform: scale(0.6); }
}
@keyframes plugins-imagesearch-dot-c {
    0%, 100% { opacity: 0.15; transform: scale(0.6); }
    12% { opacity: 0.9; transform: scale(1.15); }
    28% { opacity: 0.15; transform: scale(0.55); }
    61% { opacity: 1; transform: scale(1.25); }
    80% { opacity: 0.22; transform: scale(0.7); }
}
@keyframes plugins-imagesearch-link-flow {
    0% { stroke-dashoffset: 24; opacity: 0.35; }
    50% { opacity: 0.85; }
    100% { stroke-dashoffset: 0; opacity: 0.35; }
}
.plugins-imagesearch-dropzone.has-preview.is-dragover::after {
    content: '松开换图';
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(22, 132, 252, 0.32);
    color: #fff;
    font-size: 1.4rem;
    font-weight: 600;
    text-shadow: 0 0.1rem 0.3rem rgba(0, 0, 0, 0.25);
    pointer-events: none;
}
.plugins-imagesearch-dropzone .dz-progress-wrap {
    display: none;
    width: 70%;
    margin-top: 1.4rem;
}
.plugins-imagesearch-dropzone.is-uploading .dz-icon {
    display: none;
}
.plugins-imagesearch-dropzone.is-uploading .dz-tip {
    color: #666;
}
.plugins-imagesearch-dropzone.is-uploading .dz-progress-wrap {
    display: block;
}
.plugins-imagesearch-progress {
    height: 0.3rem;
    background: #eee;
    border-radius: 0.2rem;
    overflow: hidden;
    margin-top: 0.8rem;
}
.plugins-imagesearch-progress > i {
    display: block;
    height: 100%;
    width: 40%;
    background: linear-gradient(90deg, color-mix(in srgb, var(--color-main) 15%, transparent), var(--color-main) 45%, var(--color-main-hover) 75%, color-mix(in srgb, var(--color-main) 20%, transparent));
    border-radius: 0.2rem;
    animation: plugins-imagesearch-bar 1s ease-in-out infinite;
}
@keyframes plugins-imagesearch-bar {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(280%); }
}
.plugins-imagesearch-dialog .plugins-imagesearch-primary-btn {
    display: block;
    width: 100%;
    margin-top: 1rem;
    height: 4rem;
    line-height: 4rem;
    border: 0;
    background: var(--color-main);
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}
.plugins-imagesearch-dialog .plugins-imagesearch-primary-btn[disabled] {
    background: #f0f0f0;
    color: #bbb;
    cursor: not-allowed;
}
.plugins-imagesearch-dialog .plugins-imagesearch-primary-btn .am-icon-spinner {
    margin-right: 0.45rem;
    vertical-align: middle;
}
.plugins-imagesearch-dialog .plugins-imagesearch-file-input {
    display: none;
}

/* 结果页 */
.plugins-imagesearch-page {
    min-height: 56.6rem;
}
.plugins-imagesearch-query-panel {
    margin-top: 1.2rem;
    background: #fff;
    border: 0.1rem solid #f0f0f0;
    border-radius: 0.6rem;
}
.plugins-imagesearch-query-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    padding: 1.2rem 1.4rem;
}
.plugins-imagesearch-query-thumbs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding-bottom: 0.6rem;
}
.plugins-imagesearch-query-thumb {
    position: relative;
    width: 6.4rem;
    height: 6.4rem;
    border: 0.2rem solid transparent;
    border-radius: 0.4rem;
    background: #fafafa;
}
.plugins-imagesearch-query-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0.2rem;
    pointer-events: none;
}
.plugins-imagesearch-query-thumb.is-active {
    border-color: var(--color-main);
}
.plugins-imagesearch-query-thumb.is-active:after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -1.1rem;
    margin-left: -0.5rem;
    border: 0.5rem solid transparent;
    border-top-color: var(--color-main);
}
.plugins-imagesearch-query-add {
    height: 6.4rem;
    min-width: 6.4rem;
    padding: 0 1rem;
    border: 0.1rem dashed #ddd;
    border-radius: 0.4rem;
    background: #fff;
    color: #666;
    cursor: pointer;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    gap: 0.4rem;
}
.plugins-imagesearch-query-add:hover {
    border-color: var(--color-main);
    color: var(--color-main);
}
.plugins-imagesearch-result-hd {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    padding: 1rem 1.4rem;
    border-top: 0.1rem solid #f5f5f5;
}
.plugins-imagesearch-result-title {
    font-size: 1.6rem;
    color: #333;
}
.plugins-imagesearch-result-clear {
    margin-left: auto;
    font-size: 1.3rem;
    text-decoration: none;
    cursor: pointer;
}
.plugins-imagesearch-sort-nav {
    margin-top: 0.8rem;
}
.plugins-imagesearch-sort-nav .search-nav {
    margin-top: 0;
}
.plugins-imagesearch-page .sort-nav {
    width: 100%;
}
.plugins-imagesearch-goods-list {
    margin-top: 0.8rem;
}
.plugins-imagesearch-goods-panel {
    position: relative;
    min-height: 12rem;
}
.plugins-imagesearch-goods-body {
    position: relative;
    min-height: 24rem;
}
.plugins-imagesearch-goods-panel .search-goods-loading-mask {
    display: flex;
    align-items: center;
    justify-content: center;
}
.plugins-imagesearch-goods-panel .search-goods-loading-inner > p {
    margin: 0;
}
.plugins-imagesearch-goods-panel .search-goods-loading-inner .plugins-imagesearch-progress {
    width: 12rem;
    margin: 1rem auto 0;
}
.plugins-imagesearch-page-loading {
    padding-top: 8rem !important;
}

/* 页面状态：boot / restoring 由 class 控制显隐 */
.plugins-imagesearch-boot {
    display: none;
    margin-top: 1.2rem;
}
.plugins-imagesearch-page.is-boot .plugins-imagesearch-query-panel {
    display: none;
}
.plugins-imagesearch-page.is-boot .plugins-imagesearch-boot {
    display: block;
}
.plugins-imagesearch-page.is-restoring .plugins-imagesearch-query-panel,
.plugins-imagesearch-page.is-restoring .plugins-imagesearch-boot {
    display: none;
}
.plugins-imagesearch-page.is-restoring #plugins-imagesearch-page-loading {
    display: block !important;
}

/* 待搜索引导 */
.plugins-imagesearch-boot-card {
    height: 54rem;
    box-sizing: border-box;
    padding: 7.2rem 2.4rem 0;
    background: #fff;
    border-radius: 0.8rem;
    text-align: center;
}
.plugins-imagesearch-boot-icon {
    width: 7.2rem;
    height: 7.2rem;
    margin: 0 auto 1.6rem;
    border-radius: 50%;
    background: var(--color-main-light);
    color: var(--color-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.plugins-imagesearch-boot-icon i {
    font-size: 3rem;
    line-height: 1;
}
.plugins-imagesearch-boot-title {
    font-size: 2rem;
    font-weight: 600;
    color: #222;
    line-height: 1.4;
}
.plugins-imagesearch-boot-desc {
    margin-top: 0.8rem;
    font-size: 1.3rem;
    color: #999;
    line-height: 1.6;
}
.plugins-imagesearch-boot-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 2.2rem;
    min-width: 18rem;
    height: 4.2rem;
    padding: 0 2.2rem;
    border: 0;
    border-radius: 2.1rem;
    background: var(--color-main);
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}
.plugins-imagesearch-boot-btn:hover {
    background: var(--color-main-hover);
}
.plugins-imagesearch-boot-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.8rem 2.8rem;
    margin: 4rem 0 0;
    padding: 0;
    list-style: none;
}
.plugins-imagesearch-boot-steps li {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    color: #666;
    font-size: 1.3rem;
}
.plugins-imagesearch-boot-steps em {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    background: #f5f5f5;
    color: #999;
    font-style: normal;
    font-size: 1.2rem;
    line-height: 2.2rem;
    text-align: center;
}
.plugins-imagesearch-boot-hint {
    margin-top: 1.8rem;
    font-size: 1.2rem;
    color: #bbb;
}

@media only screen and (max-width: 640px) {
    .plugins-imagesearch-page {
        min-height: 55.8rem;
    }
    .plugins-imagesearch-boot-card {
        padding: 5.2rem 1.6rem 0;
    }
    .plugins-imagesearch-boot-title {
        font-size: 1.7rem;
    }
    .plugins-imagesearch-boot-steps {
        gap: 1rem 1.6rem;
    }
    .plugins-imagesearch-query-thumb,
    .plugins-imagesearch-query-add {
        width: 5.6rem;
        height: 5.6rem;
        min-width: 5.6rem;
    }
}
