@charset "utf-8";
/* [2026-09-05] 作品篩選列（方案 × 行業）共用樣式：works.php 列表頁與 works_detail.php 內頁都載入 */
.works-filter {
    border: 1px solid #ECEAE9;
    border-radius: 12px;
    background: #fff;
    padding: 6px 20px;
    margin-bottom: 22px;
}
.wf-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 12px 0;
}
.wf-row + .wf-row {
    border-top: 1px dashed #ECEAE9;
}
.wf-label {
    flex: none;
    width: 60px;
    padding-top: 7px;
    font-size: 12px;
    color: #9a9a9a;
    letter-spacing: 1px;
}
.wf-chips {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
}
.wf-chips .wf-rest {
    display: none;
    flex-wrap: wrap;
    gap: 8px;
}
.wf-chips.open .wf-rest {
    display: contents;
}
.chip {
    display: inline-block;
    padding: 6px 13px;
    border: 1px solid #E3E0DF;
    border-radius: 999px;
    background: #fff;
    color: #666;
    font-size: 14px;
    line-height: 1.4;
    letter-spacing: 0.3px;
    white-space: nowrap;
    transition: all .25s ease;
}
.chip .cnt {
    display: inline-block;
    margin-left: 5px;
    font-size: 11px;
    line-height: 1;
    color: #aaa;
    vertical-align: 1px;
}
a.chip:hover,
.chip.active {
    color: #fff;
    background: #C60033;
    border-color: #C60033;
}
a.chip:hover .cnt,
.chip.active .cnt {
    color: rgba(255,255,255,0.8);
}
.chip.empty,
a.chip.empty:hover {
    color: #c4c4c4;
    border-color: #efedec;
    background: #fafafa;
    cursor: default;
}
.chip.empty .cnt {
    color: #d5d5d5;
}
.wf-more {
    display: inline-block;
    padding: 6px 6px;
    font-size: 13px;
    color: #C60033;
    white-space: nowrap;
}
.wf-more:hover {
    text-decoration: underline;
}
.wf-search {
    flex: none;
    position: relative;
    width: 220px;
}
.wf-search .form-control {
    width: 100%;
    height: 34px;
    line-height: 34px;
    border: 1px solid #E3E0DF;
    border-radius: 999px;
    background: #F7F7F7;
    font-size: 13px;
    color: #666;
    padding: 0 36px 0 14px;
}
.wf-search .form-control:focus {
    outline: none;
    border-color: #C60033;
    background: #fff;
}
.wf-search-btn {
    position: absolute;
    right: 10px;
    top: 7px;
    width: 20px;
    height: 20px;
    border: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
}
.wf-search-btn:before {
    content: "\e901";
    font-family: 'icon-font' !important;
    font-style: normal;
    font-weight: normal;
    font-size: 18px;
    line-height: 20px;
    color: #888;
}
.works-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 18px;
}
.ws-title {
    margin: 0;
    font-size: 20px;
    font-weight: 500;
    color: #1F1F1F;
}
.ws-title em {
    font-style: normal;
    font-size: 13px;
    font-weight: 400;
    color: #888;
    margin-left: 10px;
}
.ws-clear {
    font-size: 13px;
    color: #888;
    border: 1px solid #ddd;
    border-radius: 999px;
    padding: 4px 12px;
    white-space: nowrap;
}
.ws-clear:hover {
    color: #C60033;
    border-color: #C60033;
}
@media(max-width:800px){
    .wf-row {
        flex-wrap: wrap;
        gap: 10px;
    }
    .wf-label {
        width: 100%;
        padding-top: 0;
    }
    .wf-search {
        width: 100%;
    }
    .wf-search .form-control {
        height: 38px;
        line-height: 38px;
    }
    .works-filter {
        padding: 4px 0 4px 14px;
    }
    /* 手機：每列膠囊單行橫向捲動，行業全部展開、不用「其他」按鈕，讓作品盡早進入首屏 */
    .wf-chips {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 2px 14px 6px 0;
        gap: 6px;
    }
    .wf-chips::-webkit-scrollbar { display: none; }
    .wf-chips .wf-rest { display: contents; }
    .wf-more { display: none; }
    .chip { font-size: 13px; padding: 5px 11px; }
    .wf-label { width: auto; padding-top: 6px; }
    .wf-row { flex-wrap: nowrap; align-items: center; padding: 8px 0; }
    .wf-row.wf-row-plan { flex-wrap: wrap; }
    .wf-row.wf-row-plan .wf-chips { flex: 1 1 0; min-width: 0; order: 2; }
    .wf-row.wf-row-plan .wf-label { order: 1; }
    .wf-row.wf-row-plan .wf-search { flex: 1 1 100%; order: 3; width: calc(100% - 14px); margin-top: 2px; }
    .ws-title {
        font-size: 17px;
    }
}

/* 內頁「探索更多作品」區塊 */
.works-explore {
    padding: 50px 0 10px;
}
.works-explore .container {
    max-width: 1310px;
}
.we-title {
    margin: 0 0 16px;
    font-size: 22px;
    font-weight: 500;
    color: #1F1F1F;
    letter-spacing: 1px;
}
.works-explore .works-filter {
    margin-bottom: 14px;
}
.ws-more {
    font-size: 14px;
    color: #C60033;
    white-space: nowrap;
}
.ws-more:hover {
    text-decoration: underline;
}

/* 內頁篩選列放在截圖區上方（header 下方）的版本 */
.works-explore-top {
    padding: 22px 0 10px;   /* .wrapper 已留 header 高度 */
    background: #fff;
    border-bottom: 1px solid #ECEAE9;
    margin-bottom: 16px;
}
.works-explore-top .we-title {
    font-size: 16px;
    margin-bottom: 10px;
}
.works-explore-top .works-summary {
    margin-bottom: 4px;
}
@media(max-width:1000px){
    .works-explore-top {
        padding-top: 14px;
    }
}
