﻿/* ===========================
   主标题与副标题
=========================== */
.main-title {
    font-size: 1.4rem;
    color: #d8dee9;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.main-subtitle {
    font-size: 0.7rem;
    color: #7b7f85;
    display: block;
    margin: 0 auto;
    text-align: center;
}

/* ===========================
    通用下拉框与筛选区域
=========================== */
.drop-box {
    justify-content: flex-end;
    margin-top: 0 !important;
    margin-bottom: 0.6rem !important;
}

.drop-down h3 {
    margin-bottom: 0.5rem;
}

.actresses-wrap .xqbj-component-list-markers .views.hide {
    display: block !important;
}

.actresses-wrap .xqbj-component-list-markers {
    background: initial;
    border-radius: 0.3rem;
    margin-bottom: 1rem;
}

/* ===========================
    筛选行布局
=========================== */
.actresses-wrap .filters-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    margin: 1rem 0 1.6rem;
    width: 100%;
}

/* ===========================
    Select 组（左侧）
=========================== */
.actresses-wrap .filters-row .select-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    flex: 1 1 0%;
    min-width: 0;
    max-width: 100%;
}

/* 固定每个 select 的宽度 */
.actresses-wrap .filters-row .select-list select {
    min-width: 9.3rem;
    max-width: 12.3rem;
    height: 1.7rem;
}

/* ===========================
    自定义下拉框（通用）
=========================== */

.actresses-wrap .filters-row .select-list .custom-dropdown {
    --filter-dropdown-item-height: 2rem;
}

.actresses-wrap .filters-row .custom-dropdown {
    position: relative;
    display: flex;
    align-items: center;
    padding-top: 0 !important;
}

/* 隐藏原生 select */
.actresses-wrap .filters-row .custom-dropdown .native-select {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
}

/* 触发按钮样式 */
.actresses-wrap .filters-row .custom-dropdown .dropdown-trigger {
    width: 9.3rem;
    height: 1.7rem;
    line-height: 1.7rem;
    border-radius: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: #d8dee9;
    padding: 0 1rem;
    text-align: left;
    font-size: 0.7rem;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    box-sizing: border-box;
    position: relative;
}

/* 下拉菜单 */
.actresses-wrap .filters-row .custom-dropdown .dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 0;
    min-width: 100%;
    background: #2a2d36;
    border-radius: 0.4rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    padding: 0.6rem 0;
    z-index: 50;
}

/* 筛选下拉：最多显示 7 项，超出滚动 */
.actresses-wrap .filters-row .select-list .custom-dropdown .dropdown-menu {
    max-height: calc(var(--filter-dropdown-item-height) * 7);
    padding-top: 0;
    padding-bottom: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.28) transparent;
}

.actresses-wrap .filters-row .select-list .custom-dropdown .dropdown-menu::-webkit-scrollbar {
    width: 0.25rem;
}

.actresses-wrap .filters-row .select-list .custom-dropdown .dropdown-menu::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.28);
    border-radius: 0.2rem;
}

/* 下拉项 */
.actresses-wrap .filters-row .custom-dropdown .dropdown-item {
    padding: 0.5rem 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.actresses-wrap .filters-row .select-list .custom-dropdown .dropdown-item {
    min-height: var(--filter-dropdown-item-height);
    box-sizing: border-box;
    display: flex;
    align-items: center;
}

/* 打开状态显示菜单 */
.actresses-wrap .filters-row .custom-dropdown.open .dropdown-menu {
    display: block;
}

.actresses-wrap .filters-row .custom-dropdown .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

/* 激活状态 */
.actresses-wrap .filters-row .custom-dropdown .dropdown-item.active {
    color: #ff4a7c;
    font-weight: 600;
}

/* 右侧箭头 */
.actresses-wrap .filters-row .custom-dropdown .dropdown-trigger::after {
    content: "";
    position: absolute;
    right: 0.75rem;
    top: 50%;
    width: 0.45rem;
    height: 0.45rem;
    border-right: 2px solid #7d7f86;
    border-bottom: 2px solid #7d7f86;
    transform: translateY(-50%) rotate(45deg);
    transition: transform 0.2s ease;
}

.actresses-wrap .filters-row .custom-dropdown.open .dropdown-trigger::after {
    transform: translateY(-50%) rotate(-135deg);
}

/* ===========================
    右侧操作区域
=========================== */
.actresses-wrap .filters-row .drop-box {
    margin-left: auto;
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

/* 内联宽度限制 */
.actresses-wrap .filters-row .drop-box .xqbj-component-dropdown-menu {
    display: inline-flex;
    white-space: nowrap;
}

/* ===========================
    筛选按钮
=========================== */
.actresses-wrap .filters-row .filters-action-btn {
    width: 80px;
    height: 34px;
    padding: 7px 26px;
    border-radius: 17px;
    font-size: 0.7rem;
    background-image: linear-gradient(113deg, #742fff, #ff4a7c 77%);
    border: none;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
/* desktop */
@media (min-width: 960px) {
    .actresses-wrap .filters-row {
        gap: 0.75rem;
    }
}

@media (max-width: 750px) {
    /* 顶部移动端行：副标题在左，排序在右 */
    .drop-box.is-mobile { display: flex !important; align-items: center; justify-content: space-between; gap: .75rem; }
    .drop-box.is-mobile .main-subtitle { display: block !important; text-align: left; margin: 0; }
    .drop-box.is-mobile .xqbj-component-dropdown-menu { margin-left: auto; }

    .actresses-wrap { position: static; padding-top: 0; }

    .actresses-wrap .filters-row .custom-dropdown .dropdown-trigger {
        border-radius: 8px;
        background-color: rgba(255, 255, 255, 0.07);
        font-size: .8rem;
    }
    .actresses-wrap .filters-row .select-list .custom-dropdown { width: 160px; --filter-dropdown-item-height: 2.4rem; }
    .actresses-wrap .filters-row .select-list .custom-dropdown .dropdown-trigger {
        width: 8rem;
        height: 3rem;
        padding: 0 0.75rem;
    }
}

/* 移动端适配 */
@media (max-width: 750px){
    .actresses-wrap .filters-row{
        display:flex;
        flex-wrap:wrap;
        justify-content:space-between;
        align-items:center;
        gap:2vw;
        margin:1rem 0;
        width:100%;
    }
    .actresses-wrap .filters-row .select-list{
        display:flex;
        flex-wrap:wrap;
        gap:2vw;
        width:100%;
    }
    .actresses-wrap .filters-row .select-list .custom-dropdown{
        flex:0 0 calc(25% - 1.5vw);
        box-sizing:border-box;
    }
    .actresses-wrap .filters-row .select-list .custom-dropdown .dropdown-trigger{
        width:100%;
        height:8vw;
        font-size:2.3vw;
        border-radius:1.2vw;
        padding:0 1.5vw;
        background-color:rgba(255,255,255,0.07);
        border:1px solid rgba(255,255,255,0.2);
        color:#d8dee9;
        display:flex;
        align-items:center;
        justify-content:space-between;
    }
    .actresses-wrap .filters-row .custom-dropdown .dropdown-trigger::after{
        right:1.6vw;
        top:50%;
        width:1.4vw;
        height:1.4vw;
        border-right:2px solid #7d7f86;
        border-bottom:2px solid #7d7f86;
        transform:translateY(-50%) rotate(45deg);
    }
  }
  @media (max-width: 480px){
    /* 自动降为2列 */
    .actresses-wrap .filters-row .select-list .custom-dropdown{
        flex:0 0 calc(50% - 1.5vw);
    }
    .actresses-wrap .filters-row .select-list .custom-dropdown .dropdown-trigger{
        font-size:3.6vw;
        height:10vw;
    }
}