.hero-carousel {
    position: relative;
    margin-bottom: 2rem;
    padding: 1.5rem;
    border-radius: var(--radius);
    background: radial-gradient(circle at top left, rgba(255, 255, 255, .1), transparent 45%),
                linear-gradient(135deg, #1d222f, #10121b 65%);
    box-shadow: 0 30px 60px rgba(0, 0, 0, .5);
}

.hero-carousel .carousel-viewport {
    position: relative;
    overflow: hidden;
    border-radius: calc(var(--radius) - 6px);
    border: none;
    background: transparent;
    padding: 0;
}

.hero-carousel .carousel-stage {
    display: flex;
    gap: 1rem;
    height: clamp(320px, 42vw, 480px);
}

.hero-slot {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 100%;
    opacity: 1;
    transition: opacity .32s ease, transform .32s ease;
}

.hero-slot.slot-stack {
    gap: .75rem;
}

.hero-slot.slot-stack .hero-card,
.hero-slot.slot-single .hero-card {
    flex: 1;
}

.hero-slot.slot-entering {
    opacity: 0;
    transform: translateX(40px);
}

.hero-slot.slot-leaving-left {
    opacity: 0;
    transform: translateX(-40px);
}

.hero-slot.slot-leaving-right {
    opacity: 0;
    transform: translateX(40px);
}

.hero-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 0;
    overflow: hidden;
    background: rgba(0, 0, 0, .15);
    box-shadow: 0 28px 50px rgba(0, 0, 0, .25);
    transition: transform .3s ease, box-shadow .3s ease;
}

.hero-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 35px 60px rgba(0, 0, 0, .3);
}

.hero-card > a {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    position: relative;
}

.hero-card .hero-card-media {
    position: relative;
    flex: 1;
    min-height: 0;
}

.hero-card .hero-card-media img,
.hero-card .hero-card-media svg {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.hero-card .img-fallback .bg {
    fill: rgba(255, 255, 255, .1);
}

.hero-card .img-fallback .shine {
    fill: rgba(255, 255, 255, .25);
}

.hero-card .hero-card-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1rem 1.4rem;
    color: #fff;
    overflow: hidden;
    pointer-events: none;
}

.hero-card .hero-card-caption::before {
    content: '';
    position: absolute;
    inset: -36px;
    border-radius: 0;
    clip-path: inset(36px 36px 36px 36px);
    background: rgba(10, 10, 10, .62);
    backdrop-filter: blur(18px) saturate(130%);
    -webkit-backdrop-filter: blur(18px) saturate(130%);
    z-index: 0;
}

.hero-card .hero-card-caption .hero-card-title {
    position: relative;
    z-index: 1;
}

.hero-card-title {
    margin: 0;
    font-size: clamp(1rem, 1.4vw, 1.2rem);
    font-weight: 400;
    letter-spacing: .02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero-slot.slot-portrait .hero-card,
.hero-slot.slot-square .hero-card,
.hero-slot.slot-landscape.slot-single .hero-card {
    flex: 1;
}

.hero-slot.slot-stack .hero-card {
    min-height: 0;
}

.hero-carousel .carousel-source {
    display: none;
}

.hero-carousel .carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, .4);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .3s ease, transform .3s ease;
}

.hero-carousel .carousel-btn:hover {
    background: rgba(0, 0, 0, .65);
    transform: translateY(-50%) scale(1.05);
}

.hero-carousel .carousel-btn:disabled {
    cursor: default;
    opacity: .5;
}

.hero-carousel .carousel-btn.prev {
    left: 1rem;
}

.hero-carousel .carousel-btn.next {
    right: 1rem;
}

.hero-carousel .carousel-dots {
    display: none !important;
}

#homeWaterfall {
    column-count: 4;
}

@media (max-width: 768px) {
    .hero-carousel.hide-mobile {
        display: none;
    }
}

.search-hero-home .search-hero-select {
    background: linear-gradient(135deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .05));
    border: 1px solid rgba(255, 255, 255, .25);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.15), 0 10px 35px rgba(0,0,0,.35);
    padding: .5rem 1.35rem;
    gap: .4rem;
    color: rgba(255,255,255,.9);
    min-width: 170px;
    width: auto;
}

.search-hero-home .search-hero-select .select-value {
    display: inline-flex;
    align-items: center;
    letter-spacing: .05em;
    font-weight: 600;
    color: #fff;
}

.search-hero-home .search-hero-select i {
    color: rgba(255,255,255,.85);
    margin-left: auto;
}

.search-hero-home .search-hero-inner {
    overflow: visible;
}

.search-hero-home .search-hero-select.is-open i {
    transform: rotate(180deg);
}

.search-hero-home .search-hero-cate {
    position: relative;
    display: inline-flex;
}

.search-hero-home .cate-menu {
    position: absolute;
    top: calc(100% + .4rem);
    left: 0;
    right: unset;
    width: auto;
    min-width: 240px;
    background: rgba(8, 12, 22, .97);
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 25px 80px rgba(0,0,0,.55);
    padding: .4rem;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
    z-index: 60;
}

.search-hero-home .cate-menu.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.search-hero-home .cate-menu .cate-list {
    max-height: 121px;
    overflow-y: auto;
    padding-right: .2rem;
}

.search-hero-home .cate-menu .cate-list::-webkit-scrollbar {
    width: 4px;
}

.search-hero-home .cate-menu .cate-list::-webkit-scrollbar-track {
    background: rgba(255,255,255,.08);
    border-radius: 999px;
}

.search-hero-home .cate-menu .cate-list::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,.6);
    border-radius: 999px;
}

.search-hero-home .cate-item {
    width: 100%;
    border: none;
    background: transparent;
    color: rgba(255,255,255,.9);
    font-size: .9rem;
    text-align: left;
    padding: .45rem .75rem;
    border-radius: 12px;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}

.search-hero-home .cate-item:hover {
    background: rgba(255,255,255,.08);
}

.search-hero-home .cate-item.active {
    background: linear-gradient(120deg,#ff9773,#ff6b6b);
    color: #fff;
}

.water-card .cover {
    position: relative;
    display: block;
}

.water-card .cover .cover-badge {
    position: absolute;
    top: .75rem;
    right: .75rem;
    padding: .35rem .75rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, .6);
    color: #fff;
    font-size: .75rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    z-index: 2;
    pointer-events: none;
}

.water-card .cover .badge-size {
    letter-spacing: normal;
}

@media (max-width: 1200px) {
    .hero-carousel .carousel-viewport {
        padding: 1rem;
    }
    .hero-carousel .carousel-stage {
        gap: .75rem;
        height: clamp(300px, 48vw, 420px);
    }
}

@media (max-width: 1024px) {
    .hero-carousel .carousel-stage {
        flex-direction: column;
        height: auto;
    }
    .hero-slot {
        height: auto;
    }
    #homeWaterfall {
        column-count: 2;
    }
}

@media (max-width: 768px) {
    .hero-carousel .carousel-viewport {
        padding: .75rem;
    }
    .hero-slot {
        gap: .75rem;
    }
    #homeWaterfall {
        column-count: 2;
    }
}

/* 移动端优化首页搜索块 */
@media (max-width: 768px) {
    .search-hero.hide-mobile {
        display: none;
    }
    .search-hero-inner {
        padding: 1.4rem 1.1rem;
    }
    .search-hero-inner h1 {
        font-size: 1.6rem;
    }
    .search-hero-sub {
        font-size: .95rem;
    }
    .search-hero-form {
        flex-direction: column;
        gap: .6rem;
        border-radius: 18px;
        padding: .6rem;
        align-items: stretch;
    }
    .search-hero-form > * {
        width: 100%;
    }
    .search-hero-cate,
    .search-hero-input,
    .search-hero-btn {
        width: 100%;
    }
    .search-hero-select {
        width: 100%;
    }
    .search-hero-size {
        border-radius: 14px;
    }
    .search-hero-size summary {
        padding: .85rem 1rem;
    }
    .search-hero-size .size-presets {
        padding: 0 1rem 1rem;
    }
    .search-hero-size .size-presets .preset-buttons {
        gap: .3rem;
    }
    .search-hero-size .size-presets .preset-btn {
        padding: .25rem .75rem;
        font-size: .8rem;
    }
    .search-hero-size .size-grid {
        grid-template-columns: 1fr;
        padding: .85rem 1rem 1rem;
    }
    .search-hero-size .size-row input {
        width: 100%;
    }
}

.channel-showcase {
    margin: 2.5rem 0;
}

.channel-showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.channel-showcase-card {
    position: relative;
    border-radius: 24px;
    padding: 1.5rem;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, .08), transparent 50%),
                linear-gradient(160deg, #1a1f2b, #10131a 70%);
    box-shadow: 0 30px 60px rgba(0, 0, 0, .5);
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow: hidden;
    z-index: 0;
}

.channel-showcase-card.anim-diagonal-shimmer::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 45%, rgba(255,255,255,.25), transparent 55%);
    transform: translateX(-110%);
    opacity: .6;
    animation: channelShimmer 6s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

.channel-card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: .2rem .7rem;
    border-radius: 999px;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .2em;
    background: rgba(255, 255, 255, .15);
}

.channel-card-main {
    margin: -1.5rem -1.5rem 0;
}

.channel-card-main a {
    display: block;
    position: relative;
    border-radius: 0;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.channel-card-main img,
.channel-card-main svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 0;
}

.channel-card-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1rem;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .85) 100%);
    color: #fff;
    overflow: hidden;
    z-index: 2;
}

.channel-card-overlay .cate {
    font-size: .8rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .7);
}

.channel-card-overlay h3 {
    margin: .2rem 0 0;
    font-size: 1.4rem;
}

.channel-card-main.anim-diagonal-shimmer::before,
.channel-card-thumb::before {
    animation-delay: var(--channel-shimmer-delay, 0s);
}

@keyframes channelShimmer {
    0% { transform: translateX(-120%); }
    50% { transform: translateX(110%); }
    100% { transform: translateX(-120%); }
}

.channel-card-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    margin: 0 -1.5rem -1.5rem;
    padding: 0;
}

.channel-card-thumb {
    position: relative;
    display: block;
    border-radius: 0;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: rgba(255, 255, 255, .05);
    transition: transform .2s ease, box-shadow .2s ease;
}

.channel-card-thumb:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, .35);
}

.channel-card-thumb img,
.channel-card-thumb svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.channel-card-thumb .thumb-title {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: .25rem .4rem;
    font-size: .75rem;
    color: #fff;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.85) 100%);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    z-index: 2;
}

@media (max-width: 768px) {
    .channel-showcase {
        margin: 1.5rem 0;
    }
    .channel-showcase.hide-mobile {
        display: none;
    }
    .channel-showcase-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .channel-showcase-card {
        padding: 1rem;
        border-radius: 18px;
    }
    .channel-card-main a {
        aspect-ratio: 4 / 3;
    }
    .channel-card-list {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
    .channel-card-thumb {
        aspect-ratio: 1 / 1;
    }
    .channel-card-overlay h3 {
        font-size: 1.1rem;
    }
}

.channel-card-intro {
    margin: 0;
    color: rgba(255, 255, 255, .7);
    font-size: .95rem;
    min-height: 2.4rem;
}

.channel-card-actions {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
}

.channel-card-actions .btn {
    padding: .55rem 1.2rem;
    border-radius: 999px;
    font-size: .85rem;
}

.channel-card-actions .btn.ghost {
    border-color: rgba(255, 255, 255, .2);
}

.channel-card-actions .btn.primary {
    box-shadow: 0 12px 25px rgba(255, 107, 107, .35);
}

.search-hero {
    margin: 1rem 0 2rem;
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(35, 41, 57, .95), rgba(10, 12, 18, .95));
    position: relative;
    overflow: hidden;
    box-shadow: 0 45px 80px rgba(0, 0, 0, .45);
}

.search-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255,255,255,.18), transparent 55%);
    border-radius: inherit;
    z-index: 0;
    pointer-events: none;
}

.search-hero-inner.gradient-scan::before {
    content: "";
    position: absolute;
    inset: -40%;
    border-radius: inherit;
    background: radial-gradient(circle at 30% 30%, rgba(56, 189, 248, .45), transparent 60%);
    animation: searchGradientSweep 12s ease-in-out infinite;
    opacity: .4;
    mix-blend-mode: screen;
    z-index: -1;
    pointer-events: none;
}

@keyframes searchGradientSweep {
    0% { transform: translate(-15%, -15%) scale(1); }
    50% { transform: translate(22%, 18%) scale(1.1); }
    100% { transform: translate(-15%, -15%) scale(1); }
}

.search-hero-inner {
    position: relative;
    padding: 2.4rem 3.5rem;
    color: #fff;
    z-index: 1;
}

.search-hero-inner h1 {
    margin: .4rem 0 1.3rem;
    font-size: clamp(2rem, 4vw, 3.2rem);
}

.search-hero-sub {
    margin: 0;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, .75);
}

.search-hero-form {
    margin: 1.5rem 0;
    display: flex;
    align-items: stretch;
    background: rgba(255, 255, 255, .15);
    border-radius: 999px;
    padding: .3rem;
    gap: .5rem;
}

.search-hero-select {
    display: flex;
    align-items: center;
    gap: .3rem;
    padding: .5rem 1.2rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, .2);
    color: rgba(255,255,255,.85);
    font-size: .95rem;
    position: relative;
    min-width: 160px;
}

.search-hero-select .select-title {
    font-size: .85rem;
    color: rgba(255,255,255,.65);
}

.search-hero-select .select-value {
    font-weight: 600;
    color: #fff;
}

.search-hero-select i {
    margin-left: auto;
}

.search-hero-cate {
    position: relative;
}

.search-hero-cate select {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    border: none;
    cursor: pointer;
    appearance: none;
    background: transparent;
    z-index: 2;
}

.search-hero-cate select option {
    color: #111;
}

.search-hero-input {
    flex: 1;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 1rem;
    padding: .4rem 0;
}

.search-hero-input::placeholder {
    color: rgba(255,255,255,.6);
}

.search-hero-input:focus {
    outline: none;
}

.search-hero-btn {
    border: none;
    border-radius: 999px;
    padding: .6rem 1.5rem;
    background: #ff4d4f;
    color: #fff;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: .4rem;
    cursor: pointer;
    transition: background .2s ease;
}

.search-hero-btn:hover {
    background: #ff3032;
}

.search-hero-size {
    margin-top: 1rem;
    background: rgba(0, 0, 0, .25);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,.15);
    overflow: hidden;
}

.search-hero-size summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
    padding: 1rem 1.3rem;
    color: rgba(255,255,255,.85);
}

.search-hero-size summary::-webkit-details-marker {
    display: none;
}

.search-hero-size summary div {
    display: flex;
    flex-direction: column;
    gap: .2rem;
}

.search-hero-size summary small {
    font-size: .8rem;
    color: rgba(255,255,255,.55);
}

.search-hero-size summary i {
    transition: transform .2s ease;
}

.search-hero-size[open] summary {
    border-bottom: 1px solid rgba(255,255,255,.12);
}

.search-hero-size[open] summary i {
    transform: rotate(180deg);
}

.search-hero-size .size-presets {
    padding: 0 1.3rem 1rem;
}

.search-hero-size .size-presets .preset-gap {
    height: .25rem;
}

.search-hero-size .size-presets .preset-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}

.search-hero-size .size-presets .preset-btn {
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.45);
    background: rgba(255,255,255,.06);
    color: #fff;
    padding: .25rem .85rem;
    font-size: .85rem;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease;
}

.search-hero-size .size-presets .preset-btn.is-active,
.search-hero-size .size-presets .preset-btn:hover {
    background: #ff4d4f;
    border-color: #ff4d4f;
}

.search-hero-size .size-grid {
    padding: 1rem 1.3rem 1.2rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .8rem;
}

.search-hero-size .size-card {
    padding: .65rem .9rem;
    border-radius: 16px;
    background: rgba(255,255,255,.06);
}

.search-hero-size .size-card h4 {
    margin: 0 0 .4rem;
    font-size: .9rem;
    color: rgba(255,255,255,.8);
}

.search-hero-size .size-row {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.search-hero-size .size-row input {
    width: 110px;
    padding: .45rem .75rem;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.35);
    background: rgba(255,255,255,.08);
    color: #fff;
}

.search-hero-size .size-row input::placeholder {
    color: rgba(255,255,255,.45);
}

.search-hero-size .size-sep {
    color: rgba(255,255,255,.5);
}

.search-hero-tags {
    display: flex;
    align-items: center;
    gap: .6rem;
    flex-wrap: wrap;
    color: rgba(255,255,255,.6);
}

.search-hero-tags a {
    padding: .25rem .9rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.25);
    color: #fff;
    font-size: .9rem;
    transition: background .2s ease, color .2s ease;
}

.search-hero-tags a:hover {
    background: rgba(255,255,255,.2);
}

.category-filter-hero {
    border: none;
    padding: 1.5rem 2rem;
    border-radius: var(--radius);
    background: radial-gradient(circle at top left, rgba(255, 255, 255, .08), transparent 55%),
                linear-gradient(135deg, #20242f, #12141c 70%);
    box-shadow: 0 25px 55px rgba(0, 0, 0, .45);
}

.category-filter-hero .filter-title {
    font-size: 1rem;
    letter-spacing: .12em;
    color: rgba(255, 255, 255, .7);
    margin-bottom: 1rem;
}

.category-filter-hero .filter-tags {
    gap: .75rem;
}

.category-filter-hero .filter-tags .tag {
    border: 1px solid rgba(255, 255, 255, .15);
    padding: .45rem 1.2rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .04);
    color: var(--color-text);
    font-weight: 500;
    transition: background .25s ease, transform .25s ease;
}

.category-filter-hero .filter-tags .tag:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, .3);
}

.category-filter-hero .filter-tags .tag.active {
    border: none;
    background: linear-gradient(120deg, #ff9773, #ff6b6b);
    box-shadow: 0 8px 22px rgba(255, 107, 107, .35);
}
.search-hero-home .cate-menu {
    width: 100%;
    min-width: 100%;
}
