/* 承制接单 —— 页面局部样式（列表筛选栏 / 下拉框 / 视图切换） */

/* ---------- 筛选栏 ---------- */
.prod-filter {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin: 16px 0 22px;
    padding: 14px 16px;
    background: rgba(26, 37, 64, 0.45);
    border: 1px solid rgba(255, 211, 112, 0.1);
    border-radius: 10px;
}

.prod-search {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1 1 280px;
    min-width: 220px;
}

.prod-search .prod-search-icon {
    position: absolute;
    left: 12px;
    font-size: 14px;
    color: #64748b;
    pointer-events: none;
    line-height: 1;
}

.prod-input {
    width: 100%;
    height: 40px;
    box-sizing: border-box;
    padding: 0 14px 0 34px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #e2e8f0;
    font-size: 14px;
    outline: none;
    transition: border-color .2s, background .2s;
}
.prod-input::placeholder { color: #64748b; }
.prod-input:hover { border-color: rgba(255, 211, 112, 0.28); }
.prod-input:focus {
    border-color: rgba(255, 211, 112, 0.55);
    background: rgba(255, 255, 255, 0.07);
}

/* ---------- 自定义下拉（原生 select 已隐藏） ---------- */
.prod-select {
    position: relative;
    flex: 0 0 auto;
    width: 158px;
}

.prod-select .prod-select-native {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
    /* 关键：避免 Windows/Chrome 原生蓝色高亮选项 */
    color: transparent;
    background: transparent;
    border: 0;
    appearance: none;
    -webkit-appearance: none;
}
.prod-select .prod-select-native:focus { outline: none; }

.prod-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    height: 40px;
    box-sizing: border-box;
    padding: 0 12px 0 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #e2e8f0;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    transition: border-color .2s, background .2s;
}
.prod-select-trigger span {
    overflow: hidden;
    text-overflow: ellipsis;
}
.prod-select-trigger svg {
    flex: 0 0 auto;
    color: #94a3b8;
    transition: transform .2s, color .2s;
}
.prod-select:hover .prod-select-trigger {
    border-color: rgba(255, 211, 112, 0.28);
    background: rgba(255, 255, 255, 0.07);
}
.prod-select:hover .prod-select-trigger svg { color: #ffd370; }
.prod-select.is-open .prod-select-trigger {
    border-color: rgba(255, 211, 112, 0.55);
    background: rgba(255, 255, 255, 0.07);
}
.prod-select.is-open .prod-select-trigger svg {
    color: #ffd370;
    transform: rotate(180deg);
}

/* 原生下拉展开的选项面板（Windows 下仍需给 option 设底色） */
.prod-select-native option {
    background: #16203a;
    color: #e2e8f0;
}
.prod-select-native option:checked {
    background: #24355c;
    color: #ffd370;
}

/* ---------- 按钮 / 重置 ---------- */
.prod-btn {
    height: 40px;
    padding: 0 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(90deg, #ffd370, #ffb74d);
    color: #1a1a2e;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
}
.prod-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(255, 211, 112, 0.28);
}
.prod-reset {
    height: 40px;
    padding: 0 4px;
    display: inline-flex;
    align-items: center;
    color: #8899aa;
    font-size: 13px;
    text-decoration: none;
    transition: color .2s;
}
.prod-reset:hover { color: #ffd370; }

/* ---------- 已选条件 ---------- */
.prod-active-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: -10px 0 18px;
    font-size: 13px;
    color: #8899aa;
}
.prod-active-filters .chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(255, 211, 112, 0.1);
    border: 1px solid rgba(255, 211, 112, 0.25);
    border-radius: 20px;
    color: #ffd370;
    text-decoration: none;
    font-size: 12px;
    transition: background .2s;
}
.prod-active-filters .chip:hover { background: rgba(255, 211, 112, 0.18); }
.prod-active-filters .chip i {
    font-style: normal;
    opacity: .7;
    font-size: 13px;
    line-height: 1;
}

/* ---------- 结果提示 ---------- */
.prod-result-tip {
    margin: 0 0 16px;
    font-size: 13px;
    color: #8899aa;
}
.prod-result-tip b { color: #ffd370; font-weight: 600; }

/* ---------- 卡片简介 ---------- */
.prod-card-desc {
    color: #8899aa;
    font-size: 13px;
    line-height: 1.5;
    margin: 0 0 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* ---------- 卡片作品缩略图（点击由 media-viewer 弹层播放） ---------- */
.prod-thumbs {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
    overflow: hidden;
}
.prod-thumb {
    width: 52px;
    height: 36px;
    border-radius: 4px;
    flex-shrink: 0;
}
.prod-thumb .mv-play::before {
    border-width: 6px 0 6px 10px;
}
.prod-thumb-more {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    color: #8899aa;
    font-size: 12px;
    cursor: default;
}

/* ---------- 窄屏 ---------- */
@media (max-width: 640px) {
    .prod-filter { padding: 12px; }
    .prod-search { flex: 1 1 100%; }
    .prod-select { width: 100%; }
    .prod-btn, .prod-reset { flex: 1 1 auto; }
    .prod-btn { padding: 0 12px; }
}
