@charset "utf-8";

/* 列表页主题：沿用首页的蓝紫渐变、玻璃质感与圆角卡片 */

#main.list-theme {
    --list-ink: #0c1424;
    --list-muted: #5b657a;
    --list-blue: #2e6bff;
    --list-violet: #7a5cff;
    --list-cyan: #54d8ff;
    --list-line: rgba(28, 56, 120, 0.08);
    background: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

/* ---------- 顶部视觉区 ---------- */

#main.list-theme .list-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 36px 48px 92px;
    border-radius: 0 0 30px 30px;
    background-image:
        radial-gradient(120% 120% at 50% -30%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0) 60%),
        linear-gradient(118deg, #e6f9fd 0%, #d6e1fb 30%, #e4dbf7 62%, #d9defa 100%);
    background-size: 100% 100%, 240% 240%;
    background-position: 50% 0%, 0% 34%;
    animation: listAurora 16s ease-in-out infinite alternate;
}

#main.list-theme .list-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(90deg, rgba(46, 107, 255, 0.06) 1px, transparent 1px),
        linear-gradient(180deg, rgba(46, 107, 255, 0.06) 1px, transparent 1px);
    background-size: 40px 40px;
    -webkit-mask-image: radial-gradient(ellipse 70% 100% at 20% 16%, #000 18%, transparent 74%);
    mask-image: radial-gradient(ellipse 70% 100% at 20% 16%, #000 18%, transparent 74%);
}

#main.list-theme .list-hero-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
    user-select: none;
}

#main.list-theme .list-hero-orb {
    position: absolute;
    border-radius: 50%;
    will-change: transform;
}

#main.list-theme .list-hero-orb--cyan {
    width: 540px;
    height: 540px;
    left: -8%;
    top: -60%;
    background: radial-gradient(circle at 45% 45%, rgba(104, 210, 240, 0.58), rgba(104, 210, 240, 0) 67%);
    animation: listOrbA 9s ease-in-out infinite alternate;
}

#main.list-theme .list-hero-orb--violet {
    width: 480px;
    height: 480px;
    right: -6%;
    top: -58%;
    background: radial-gradient(circle at 50% 50%, rgba(146, 118, 232, 0.5), rgba(146, 118, 232, 0) 68%);
    animation: listOrbB 10s ease-in-out infinite alternate;
}

#main.list-theme .list-hero-orb--blue {
    width: 620px;
    height: 620px;
    left: 32%;
    bottom: -120%;
    background: radial-gradient(circle at 50% 50%, rgba(104, 138, 232, 0.38), rgba(104, 138, 232, 0) 70%);
    animation: listOrbC 12s ease-in-out infinite alternate;
}

@keyframes listAurora {
    to {
        background-position: 50% 0%, 100% 70%;
    }
}

@keyframes listOrbA {
    from {
        transform: translate3d(-4%, -2%, 0) scale(1);
    }

    to {
        transform: translate3d(22%, 18%, 0) scale(1.14);
    }
}

@keyframes listOrbB {
    from {
        transform: translate3d(6%, -4%, 0) scale(1.08);
    }

    to {
        transform: translate3d(-18%, 16%, 0) scale(0.94);
    }
}

@keyframes listOrbC {
    from {
        transform: translate3d(-8%, 8%, 0) scale(0.96);
    }

    to {
        transform: translate3d(12%, -12%, 0) scale(1.1);
    }
}

#main.list-theme .list-hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    animation: listRise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes listRise {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#main.list-theme .list-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    padding: 6px 13px 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.75);
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--list-blue);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
}

#main.list-theme .list-hero-eyebrow span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--list-blue), var(--list-violet));
    box-shadow: 0 0 0 4px rgba(46, 107, 255, 0.14);
    animation: listDot 2.4s ease-in-out infinite;
}

@keyframes listDot {
    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(0.72);
        opacity: 0.55;
    }
}

#main.list-theme .list-hero-title {
    margin: 0;
    font-size: 40px;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: 0.5px;
    color: #0b1322;
}

#main.list-theme .list-hero-title em {
    font-style: normal;
    background: linear-gradient(100deg, #2e6bff 0%, #7a5cff 46%, #37a4ff 100%);
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: listShift 9s ease-in-out infinite alternate;
}

@keyframes listShift {
    to {
        background-position: 100% 0;
    }
}

#main.list-theme .list-hero-desc {
    margin: 12px 0 0;
    color: rgba(16, 28, 54, 0.58);
    font-size: 15px;
    letter-spacing: 0.3px;
}

#main.list-theme .list-hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-bottom: 6px;
}

#main.list-theme .list-hero-tags span {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.62);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 10px 24px -20px rgba(28, 56, 120, 0.6);
    color: #3c4a63;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

#main.list-theme .list-hero-tags span::before {
    content: "";
    width: 6px;
    height: 6px;
    margin-right: 7px;
    border-radius: 2px;
    background: linear-gradient(135deg, #37a4ff, var(--list-violet));
}

/* ---------- 一级分类 ---------- */

#main.list-theme .category-nav {
    position: relative;
    z-index: 2;
    width: auto;
    margin: -68px 24px 0;
    padding: 22px 24px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    box-shadow: 0 30px 60px -42px rgba(28, 56, 120, 0.55), 0 2px 8px rgba(28, 56, 120, 0.05);
}

#main.list-theme .category-nav-list {
    gap: 14px;
}

#main.list-theme .category-nav-btn {
    width: 124px;
    height: 50px;
    gap: 9px;
    border: 1px solid var(--list-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(28, 56, 120, 0.04);
    color: #3a465c;
    font-size: 14px;
    font-weight: 600;
    transition: transform 0.22s ease, border-color 0.22s ease, color 0.22s ease, background-color 0.22s ease, box-shadow 0.22s ease;
}

#main.list-theme .category-nav-btn:hover {
    color: var(--list-blue);
    border-color: rgba(46, 107, 255, 0.32);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 14px 26px -18px rgba(46, 107, 255, 0.55);
    transform: translateY(-2px);
}

#main.list-theme .category-nav-btn.active {
    color: var(--list-blue);
    border-color: rgba(46, 107, 255, 0.38);
    border-radius: 14px;
    background: linear-gradient(180deg, #eff5ff 0%, #f6f2ff 100%);
    box-shadow: inset 0 0 0 1px rgba(46, 107, 255, 0.08), 0 14px 26px -20px rgba(46, 107, 255, 0.65);
}

#main.list-theme .category-nav-icon {
    width: 28px;
    height: 28px;
    border-radius: 9px;
    background-color: #f3f6ff;
    background-size: 18px 18px;
    background-repeat: no-repeat;
    background-position: center;
    transition: background-color 0.22s ease, transform 0.22s ease;
}

#main.list-theme .category-nav-btn:hover .category-nav-icon,
#main.list-theme .category-nav-btn.active .category-nav-icon {
    background-color: #e7efff;
    transform: scale(1.05);
}

/* ---------- 小类 / 细类筛选 ---------- */

#main.list-theme .filter-section {
    display: block;
    margin-top: 22px;
    margin-left: 24px;
    margin-right: 24px;
    padding: 20px 24px 18px;
    border-radius: 20px;
    border: 1px solid var(--list-line);
    background: #fff;
    box-shadow: 0 18px 40px -36px rgba(28, 56, 120, 0.45);
}

#main.list-theme .filter-section:not(:has(.is-visible)) {
    display: none;
}

#main.list-theme .filter-row-2,
#main.list-theme .filter-row-3,
#main.list-theme .filter-row-4 {
    align-items: flex-start;
    min-height: 34px;
}

#main.list-theme .filter-row-2 {
    margin-top: 0;
}

#main.list-theme .filter-row-3,
#main.list-theme .filter-row-4 {
    margin-top: 14px;
}

#main.list-theme .row-2-label,
#main.list-theme .row-3-label,
#main.list-theme .row-4-label {
    flex: 0 0 auto;
    margin-right: 16px;
    line-height: 34px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: rgba(12, 20, 36, 0.38);
}

#main.list-theme .filter-row-2 > ul,
#main.list-theme .filter-row-3 > ul,
#main.list-theme .filter-row-4 > ul {
    align-items: center;
    gap: 10px;
}

#main.list-theme .row-2-item,
#main.list-theme .row-3-item,
#main.list-theme .row-4-item {
    width: auto;
    min-width: 0;
    height: 34px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: #f4f6fa;
    color: var(--list-muted);
    font-size: 13px;
    font-weight: 500;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

#main.list-theme .row-2-item span:first-child,
#main.list-theme .row-3-item span:first-child,
#main.list-theme .row-4-item span:first-child {
    max-width: 220px;
}

#main.list-theme .row-2-item:hover,
#main.list-theme .row-3-item:hover,
#main.list-theme .row-4-item:hover {
    color: var(--list-blue);
    font-weight: 500;
    background: #eef4ff;
    border-color: rgba(46, 107, 255, 0.16);
    box-shadow: none;
}

#main.list-theme .row-2-item.active,
#main.list-theme .row-3-item.active,
#main.list-theme .row-4-item.active {
    color: #fff;
    font-weight: 600;
    background: linear-gradient(135deg, #2e6bff 0%, #7a5cff 100%);
    border-color: transparent;
    box-shadow: 0 10px 22px -12px rgba(46, 107, 255, 0.75);
}

/* ---------- 结果工具条 ---------- */

#main.list-theme .search-result {
    margin: 20px 24px 0;
    padding: 11px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    border-radius: 16px;
    border: 1px solid var(--list-line);
    background: #fff;
    box-shadow: 0 16px 40px -38px rgba(28, 56, 120, 0.5);
    font-size: 14px;
    color: var(--list-muted);
}

#main.list-theme .search-result > span {
    display: inline-flex;
    align-items: center;
    color: #283345;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.2px;
}

#main.list-theme .search-result > span::before {
    content: "";
    width: 4px;
    height: 16px;
    margin-right: 10px;
    border-radius: 999px;
    background: linear-gradient(180deg, #2e6bff, #7a5cff);
}

#main.list-theme .result-filter-list {
    display: flex;
    align-items: center;
    gap: 8px;
}

#main.list-theme .result-filter-item {
    width: auto;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: #f6f8fc;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

#main.list-theme .result-filter-item:hover,
#main.list-theme .result-filter-item.open {
    background: #fff;
    border-color: rgba(46, 107, 255, 0.18);
    box-shadow: 0 12px 24px -20px rgba(46, 107, 255, 0.6);
}

#main.list-theme .filter-label {
    margin-right: 0;
    color: rgba(12, 20, 36, 0.42);
    font-size: 12px;
}

#main.list-theme .filter-value {
    color: #1f2737;
    font-size: 13px;
    font-weight: 600;
}

#main.list-theme .filter-arrow {
    margin-left: 0;
    color: #8a93a6;
}

#main.list-theme .filter-dropdown {
    top: calc(100% + 10px);
    left: 0;
    min-width: 136px;
    padding: 6px;
    border-radius: 14px;
    border: 1px solid var(--list-line);
    box-shadow: 0 26px 50px -26px rgba(28, 56, 120, 0.5);
}

#main.list-theme .filter-option {
    padding: 9px 12px;
    border-radius: 9px;
    text-align: left;
    color: #4d576b;
    font-size: 13px;
}

#main.list-theme .filter-option:hover {
    background: #f2f6ff;
    color: var(--list-blue);
}

#main.list-theme .filter-option.active {
    background: #eef4ff;
    color: var(--list-blue);
    font-weight: 600;
}

/* ---------- 瀑布流卡片 ---------- */

#main.list-theme .waterfall {
    margin: 20px 24px 0;
}

#main.list-theme .waterfall:empty {
    min-height: 360px;
}

#main.list-theme .hwaterfall-item,
#main.list-theme .waterfall-item {
    border-radius: 16px;
    transition: opacity 0.18s ease, transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}

#main.list-theme .hwaterfall-item:hover,
#main.list-theme .waterfall-item:hover {
    transform: translateY(-4px);
    z-index: 2;
}

#main.list-theme .hwaterfall-image-container,
#main.list-theme .waterfall-image-container {
    border-radius: 16px;
    background: #f2f5fa;
    box-shadow: 0 16px 32px -26px rgba(28, 56, 120, 0.55);
    transition: box-shadow 0.3s ease;
}

#main.list-theme .hwaterfall-image-container::after,
#main.list-theme .waterfall-image-container::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 6;
    border-radius: 16px;
    box-shadow: inset 0 0 0 1px rgba(28, 56, 120, 0.07);
    pointer-events: none;
}

#main.list-theme .hwaterfall-image-container:hover,
#main.list-theme .waterfall-image-container:hover {
    box-shadow: 0 30px 50px -28px rgba(46, 107, 255, 0.5);
}

#main.list-theme .hwaterfall-item-img,
#main.list-theme .waterfall-item-img {
    border-radius: 16px;
    transition: transform 0.55s cubic-bezier(0.2, 0.7, 0.2, 1);
}

#main.list-theme .hwaterfall-image-container:hover .hwaterfall-item-img,
#main.list-theme .waterfall-image-container:hover .waterfall-item-img {
    transform: scale(1.035);
}

#main.list-theme .hwaterfall-item-content,
#main.list-theme .waterfall-item-content {
    padding: 26px 14px 12px;
    background: linear-gradient(180deg, rgba(8, 16, 32, 0) 0%, rgba(8, 16, 32, 0.2) 38%, rgba(8, 16, 32, 0.7) 100%);
    opacity: 1;
    visibility: visible;
}

/* 常显标题层的磨砂底：向上渐隐，避免与图片内的文字重叠 */
#main.list-theme .hwaterfall-item-content::before,
#main.list-theme .waterfall-item-content::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(8, 16, 32, 0.16);
    -webkit-backdrop-filter: blur(14px) saturate(1.15);
    backdrop-filter: blur(14px) saturate(1.15);
    -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.82) 44%, #000 100%);
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.82) 44%, #000 100%);
}

#main.list-theme .hwaterfall-item-tag,
#main.list-theme .waterfall-item-tag {
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    font-size: 11px;
}

#main.list-theme .hwaterfall-item-title,
#main.list-theme .waterfall-item-title {
    font-size: 13px;
    font-weight: 600;
}

#main.list-theme .waterfall-hover {
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(8, 16, 32, 0.5) 0%, rgba(8, 16, 32, 0.24) 100%);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

#main.list-theme .waterfall-favorites-float {
    border-radius: 12px;
    background: rgba(12, 20, 36, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

#main.list-theme .hwaterfall-skeleton-item {
    border-radius: 16px;
    background: linear-gradient(90deg, #eef3fb 0%, #f8fafd 42%, #eef3fb 84%);
    background-size: 240% 100%;
}

/* ---------- 加载更多 ---------- */

#main.list-theme .list-loadmore-loading {
    margin-top: 48px;
}

#main.list-theme .list-loadmore-loading-icon {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(46, 107, 255, 0.14);
    border-top-color: #2e6bff;
    border-right-color: #7a5cff;
}

#main.list-theme .loadmore-login {
    margin-top: -260px;
    height: 260px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.94) 40%, #fff 78%);
    box-shadow: none;
}

#main.list-theme .loadmore-login span {
    color: var(--list-blue) !important;
    font-weight: 700;
}

#main.list-theme .loadmore-login::after {
    content: "立即登录 →";
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: 22px;
    padding: 8px 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, #2e6bff, #7a5cff);
    box-shadow: 0 14px 28px -16px rgba(46, 107, 255, 0.7);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    transform: translate(-50%, 0);
}

/* ---------- 无障碍：减少动效 ---------- */

@media (prefers-reduced-motion: reduce) {
    #main.list-theme .list-hero,
    #main.list-theme .list-hero-orb,
    #main.list-theme .list-hero-eyebrow span,
    #main.list-theme .list-hero-title em,
    #main.list-theme .list-hero-inner {
        animation: none;
    }

    #main.list-theme .hwaterfall-item,
    #main.list-theme .waterfall-item,
    #main.list-theme .hwaterfall-item-img,
    #main.list-theme .waterfall-item-img {
        transition: none;
    }

    #main.list-theme .hwaterfall-item:hover,
    #main.list-theme .waterfall-item:hover {
        transform: none;
    }

    #main.list-theme .hwaterfall-image-container:hover .hwaterfall-item-img,
    #main.list-theme .waterfall-image-container:hover .waterfall-item-img {
        transform: none;
    }
}
