﻿/* ============================================
   /portal/assets/css/portal_filter_pc.css
   PC 端筛选抽屉（克隆手机端，但宽度固定）
   ============================================ */

/* ⭐ PC 端抽屉外壳 */
.pc-filter-wrapper {
    position: fixed;
    top: var(--portal-nav-total); /* 先保留，JS 会覆盖 */
    left: 0;                      /* ⭐ 改成 left:0，JS 会动态设置 */
    width: 420px;
    height: 0;
    max-height: 70vh;
    overflow: hidden;
    background: #fff;
    z-index: 2600;
    display: flex;
    flex-direction: column;
    transition: height .25s ease-out;
    pointer-events: none;
}

/* ⭐ 打开状态 */
body.pc-filter-open .pc-filter-wrapper {
    height: 70vh;
    pointer-events: auto;
}

/* ⭐ PC 端遮罩 */
.pc-filter-overlay {
    display: none;
    position: fixed;
    top: var(--portal-nav-total); /* JS 会覆盖 */
    left: 0;                      /* JS 会覆盖 */
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.45);
    z-index: 2500;
}

body.pc-filter-open .pc-filter-overlay {
    display: block;
}

/* ⭐ PC 端筛选内容（克隆手机端） */
.pc-filter-mega {
    flex: 1 1 auto;
    display: flex;
    min-height: 0;
}

/* 左侧 */
.pc-filter-left {
    flex: 0 0 100px;
    width: 100px;
    max-width: 100px;
    background: #f7f7f7;
    border-right: 1px solid #eee;
    overflow-y: auto;
    padding-bottom: 120px;
}

.pc-filter-left-item {
    padding: 12px 10px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
    border-left: 3px solid transparent;
    display: flex;
    align-items: center;
    min-height: 40px;
}

.pc-filter-left-item.active {
    background: #fff;
    color: #ff4444;
    border-left-color: #ff4444;
    font-weight: 500;
}

/* 右侧 */
.pc-filter-right {
    flex: 1 1 auto;
    min-width: 0;
	min-height: 0; /* ⭐ 关键：允许 flex 正确压缩高度 */
    overflow-y: auto;

    padding: 10px 12px 140px; /* ← 原来 120px，改成 140px */

    box-sizing: border-box;
}

.pc-filter-group {
    margin-bottom: 18px;
}

.pc-filter-group-title {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 8px;
}

.pc-filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pc-filter-options span {
    padding: 6px 10px;
    font-size: 12px;
    background: #f5f5f5;
    border-radius: 14px;
    border: 1px solid #f0f0f0;
    cursor: pointer;
}

.pc-filter-options span.selected {
    color: #ff4444;
    background: #ffecec;
    border-color: #ff4444;
}

/* 价格输入 */
.pc-filter-price-input {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
}

.pc-filter-price-input input {
    width: 80px;
    height: 32px;
    padding: 0 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* 底部按钮 */
.pc-filter-bottom {
    flex: 0 0 60px;          /* ⭐ 固定高度，参与 flex 布局 */
    height: 60px;
    padding: 8px 12px;

    background: #fff;
    display: flex;
    gap: 10px;

    border-top: 1px solid #eee;
    box-shadow: 0 -2px 6px rgba(0,0,0,0.06);
}

.pc-filter-reset {
    flex: 0 0 90px;
    height: 36px;
    border-radius: 18px;
    border: 1px solid #ddd;
    background: #fff;
}

.pc-filter-confirm {
    flex: 1 1 auto;
    height: 36px;
    border-radius: 18px;
    border: none;
    background: #ff4444;
    color: #fff;
    font-weight: 500;
}

/* ============================================
   ⭐ PC 端筛选按钮箭头（新增）
   ============================================ */

/* 筛选按钮本身：让文字和箭头横向排列 */
#pc-filter-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px; /* 文字与箭头间距 */
}

/* 默认箭头（朝下） */
.pc-filter-arrow {
    display: inline-block;
    width: 0;
    height: 0;

    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #666; /* 默认朝下 */

    transition: transform .25s ease;
}

/* 抽屉打开时箭头朝上 */
body.pc-filter-open .pc-filter-arrow {
    transform: rotate(180deg);
}

/* ============================================
   ⭐ PC 筛选面板顶部标题栏（新增）
   ============================================ */
.pc-filter-header {
    flex: 0 0 48px;
    height: 48px;

    display: flex;
    align-items: center;
    padding: 0 14px;

    font-size: 18px;      /* ←⭐ 字体大小 */
    font-weight: 600;     /* ←⭐ 字体粗细 */
    color: #333;          /* ←⭐ 字体颜色 */
	letter-spacing: 1px;   /* ⭐ 字符间距 */
	
    border-bottom: 1px solid #eee;
    background: #fff;
    z-index: 1;
}

/* ============================================
/* ⭐ 强制 PC 端筛选右侧内容区域始终显示滚动条 */
/*.pc-filter-right {
    overflow-y: scroll !important;
}用了上面这段就不要用这段，不能同时存在，2选1
============================================ */


