/* 发现页信息流（2026-10 改版）：今天给你家、流内功能卡、卡片理由与「＋」。 */
.discover-card { position: relative; }
.discover-card-add { position: absolute; right: 8px; top: 8px; z-index: 2; width: 30px; height: 30px; border: 0; border-radius: 10px; background: #5b2fd6; color: #fff; font-size: 19px; line-height: 30px; box-shadow: 0 4px 10px rgba(56, 26, 140, .28); cursor: pointer; }
.discover-card-add.is-saved { background: rgba(255, 255, 255, .92); color: #5b2fd6; box-shadow: 0 2px 8px rgba(0, 0, 0, .12); }
.discover-card-add:disabled { cursor: default; }
.discover-cover-illustration { position: absolute; left: 8px; bottom: 8px; padding: 2px 6px; border-radius: 6px; background: rgba(0, 0, 0, .42); color: #fff; font-size: 10px; font-style: normal; font-weight: 500; }
.discover-card-reason { display: flex; flex-wrap: wrap; gap: 4px; margin: 5px 0 2px; }
.discover-card-reason span { padding: 2px 6px; border-radius: 6px; font-size: 11px; line-height: 1.4; }
.discover-card-reason .is-reason { background: #fff1e6; color: #b5561a; }
.discover-card-reason .is-proof { background: #f3effc; color: #5b4a86; }
.discover-filter-scroll button.is-festival { padding: 0 12px; white-space: nowrap; }
.discover-filter-scroll button.is-festival:not(.active) { border-color: #f6d3b8; background: #fff1e6; color: #b85a1c; }

.family-picks { margin: 2px 0 12px; padding: 14px; border-radius: 16px; background: linear-gradient(135deg, #5b2fd6, #8f62ee); color: #fff; box-shadow: 0 10px 24px rgba(76, 38, 170, .22); }
.family-picks h3 { margin: 0; font-size: 16px; }
.family-picks > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.family-picks-tools { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.family-picks-shuffle { padding: 4px 10px; border: 1px solid rgba(255, 255, 255, .55); border-radius: 999px; background: transparent; color: #fff; font-size: 12px; cursor: pointer; }
.family-picks-hide { width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .18); color: #fff; font-size: 17px; line-height: 26px; cursor: pointer; }
.family-pick-cell { position: relative; display: flex; min-width: 0; }
.family-pick-cell .family-pick { width: 100%; }
.family-picks h3 .family-picks-count { margin-left: 2px; padding: 1px 8px; border: 1px solid rgba(255, 255, 255, .55); border-radius: 999px; background: rgba(255, 255, 255, .12); color: #fff; font: inherit; font-size: 14px; cursor: pointer; }
.family-picks-count-row { display: flex; gap: 6px; margin-top: 10px; }
.family-picks-count-row button { flex: 1; padding: 6px 0; border: 1px solid rgba(255, 255, 255, .5); border-radius: 10px; background: transparent; color: #fff; font-size: 13px; cursor: pointer; }
.family-picks-count-row button.is-active { background: #fff; color: #5b2fd6; font-weight: 700; }
.family-pick-cell.is-kept .family-pick { box-shadow: inset 0 0 0 2px #fff; background: rgba(255, 255, 255, .26); }
.family-pick-keep { position: absolute; top: 4px; left: 4px; padding: 2px 6px; border: 0; border-radius: 999px; background: rgba(0, 0, 0, .45); color: #fff; font-size: 10px; line-height: 14px; cursor: pointer; }
.family-pick-keep.is-kept { background: #fff; color: #e5487a; font-weight: 700; }
.family-picks.is-many .family-picks-row { row-gap: 8px; }
.family-picks-done { margin: 8px 0 0; font-size: 12px; opacity: .9; }
.family-pick-dismiss { position: absolute; top: 4px; right: 4px; padding: 2px 6px; border: 0; border-radius: 999px; background: rgba(0, 0, 0, .45); color: #fff; font-size: 10px; line-height: 14px; cursor: pointer; }
.family-picks p { margin: 4px 0 0; font-size: 12px; opacity: .88; }
.family-picks-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 11px; }
.family-pick { display: flex; flex-direction: column; align-items: stretch; gap: 3px; padding: 0 0 8px; overflow: hidden; border: 0; border-radius: 11px; background: rgba(255, 255, 255, .16); color: #fff; text-align: center; cursor: pointer; }
.family-pick img, .family-pick i { display: block; width: 100%; height: 64px; object-fit: cover; }
.family-pick i { display: grid; place-items: center; color: #6b4a33; font-size: 22px; font-style: normal; font-weight: 800; }
.family-pick b { padding: 0 4px; overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.family-pick small { padding: 0 4px; overflow: hidden; font-size: 11px; opacity: .88; text-overflow: ellipsis; white-space: nowrap; }
.family-picks-go { width: 100%; margin-top: 10px; padding: 9px; border: 0; border-radius: 10px; background: #fff; color: #5b2fd6; font-size: 14px; font-weight: 700; cursor: pointer; }

.discover-module { display: inline-block; width: 100%; margin: 0 0 9px; overflow: hidden; break-inside: avoid; border-radius: 14px; vertical-align: top; text-align: left; }
.discover-module > b { display: block; font-size: 14px; }
.discover-module--topic { padding: 12px; border: 0; background: linear-gradient(160deg, #ffe7d3, #ffd0c2); color: #7a3410; cursor: pointer; }
.discover-module--topic small { padding: 1px 6px; border-radius: 5px; background: #fff; color: #b85a1c; font-size: 10px; }
.discover-module--topic b { margin-top: 6px; font-size: 15px; }
.discover-module--topic span { display: block; margin-top: 3px; font-size: 12px; line-height: 1.5; }
.discover-module--topic div { display: flex; gap: 5px; margin-top: 8px; }
.discover-module--topic i { flex: 1; height: 46px; border-radius: 7px; background-size: cover; background-position: center; }
.discover-module--season { padding: 11px; background: #f1f7ec; color: #335a26; }
.discover-module--season div { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.discover-module--season button { padding: 4px 9px; border: 0; border-radius: 10px; background: #fff; color: #3e6a2f; font-size: 12px; cursor: pointer; }
.discover-module--hot { padding: 11px; background: #fff; box-shadow: 0 6px 18px rgba(59, 36, 22, .06); }
.discover-module--hot ol { margin: 8px 0 0; padding: 0; list-style: none; }
.discover-module--hot button { display: flex; gap: 8px; width: 100%; padding: 5px 0; border: 0; background: none; font-size: 13px; text-align: left; cursor: pointer; }
.discover-module--hot em { width: 18px; color: #e5733a; font-style: normal; font-weight: 800; }
.discover-module--post { background: #fff; box-shadow: 0 6px 18px rgba(59, 36, 22, .06); }
.discover-post-photo { position: relative; display: block; width: 100%; height: 150px; padding: 0; border: 0; background: #f3ece6; cursor: pointer; }
.discover-post-photo img, .discover-post-photo i { display: block; width: 100%; height: 100%; object-fit: cover; }
.discover-post-photo small { position: absolute; left: 8px; top: 8px; padding: 2px 6px; border-radius: 5px; background: rgba(255, 255, 255, .92); color: #7a3410; font-size: 10px; font-weight: 700; }
.discover-post-copy { padding: 8px 10px 10px; }
.discover-post-copy p { margin: 0; font-size: 13px; font-weight: 700; line-height: 1.4; }
.discover-post-copy div { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; color: #7a7085; font-size: 11.5px; }
.discover-post-copy button { border: 0; background: none; color: #5b2fd6; font-size: 12px; cursor: pointer; }
.discover-module--creators { padding: 11px; background: #fff; box-shadow: 0 6px 18px rgba(59, 36, 22, .06); }
.discover-creator-row { display: flex; align-items: center; gap: 6px; margin-top: 9px; }
.discover-creator-row > button:first-child { display: flex; flex: 1; align-items: center; gap: 7px; min-width: 0; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; }
.discover-creator-row i { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: #e3dbf9; color: #5b2fd6; font-style: normal; font-size: 12px; }
.discover-creator-row span { overflow: hidden; font-size: 12.5px; line-height: 1.3; text-overflow: ellipsis; }
.discover-creator-row small { display: block; color: #7a7085; font-size: 10.5px; }
.discover-creator-follow { flex: none; padding: 3px 9px; border: 1px solid #d9cffb; border-radius: 10px; background: #fff; color: #5b2fd6; font-size: 11px; font-weight: 700; cursor: pointer; }
.discover-module--import { padding: 13px; background: #2a2233; color: #fff; }
.discover-module--import b { font-size: 15px; }
.discover-module--import p { margin: 5px 0 0; font-size: 12px; line-height: 1.5; opacity: .8; }
.discover-module--import button { width: 100%; margin-top: 10px; padding: 8px; border: 0; border-radius: 9px; background: #ef7d32; color: #fff; font-size: 13px; font-weight: 700; cursor: pointer; }

/* 大家在搜：只占一行，多的左右滑（不触发切频道：横向可滚动区域起手的滑动会被忽略） */
.discover-hot-terms { display: flex; flex-wrap: nowrap; align-items: center; gap: 6px; padding: 8px 2px 2px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.discover-hot-terms::-webkit-scrollbar { display: none; }
.discover-hot-terms span { flex: 0 0 auto; color: #7a7085; font-size: 12px; }
.discover-hot-terms button { flex: 0 0 auto; padding: 4px 10px; border: 1px solid #eee6ee; border-radius: 14px; background: #fff; font-size: 12px; white-space: nowrap; cursor: pointer; }
.discover-suggestions-title { margin: 16px 2px 10px; font-size: 15px; }

/* 推荐流卡片「⋯」：喜欢 / 减少推荐 */
.discover-card-more { flex: 0 0 auto; width: 28px; height: 28px; margin-left: 2px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #8b8394; font-size: 18px; line-height: 28px; cursor: pointer; }
.discover-card-collection-count.is-mine { color: var(--purple, #6c4cf1); }
.discover-card-add.is-saved { cursor: pointer; }
.discover-card-sheet-backdrop { position: fixed; inset: 0; z-index: 80; display: flex; align-items: flex-end; justify-content: center; background: rgba(20, 16, 28, .38); }
.discover-card-sheet { width: min(480px, 100%); padding: 14px 14px calc(14px + env(safe-area-inset-bottom)); border-radius: 18px 18px 0 0; background: #fff; }
.discover-card-sheet b { display: block; margin: 2px 4px 10px; font-size: 15px; }
.discover-card-sheet button { display: block; width: 100%; margin-top: 8px; padding: 13px 14px; border: 0; border-radius: 12px; background: #f6f3fa; color: #2b2533; font-size: 15px; text-align: left; cursor: pointer; }
.discover-card-sheet button small { display: block; margin-top: 3px; color: #8b8394; font-size: 12px; }
.discover-card-sheet button.is-cancel { background: transparent; color: #6d6478; text-align: center; }

/* 10/02 晚：每道菜右上角只留「想吃」（点了留下，换一批不换） */
.family-pick-want { position: absolute; top: 4px; right: 4px; padding: 3px 9px; border: 0; border-radius: 999px; background: rgba(0, 0, 0, .45); color: #fff; font-size: 11px; line-height: 15px; cursor: pointer; }
.family-pick-want.is-kept { background: #fff; color: #5b2fd6; font-weight: 700; }

/* 10/02：先选口味 / 菜系 / 荤素 / 类型，再推荐 */
.family-picks-filters { display: flex; gap: 6px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; }
.family-picks-filters::-webkit-scrollbar { display: none; }
.family-picks-filter { flex: 0 0 auto; padding: 4px 10px; border: 1px solid rgba(255, 255, 255, .45); border-radius: 999px; background: transparent; color: #fff; font-size: 12px; white-space: nowrap; cursor: pointer; }
.family-picks-filter.is-on { background: #fff; color: #5b2fd6; font-weight: 700; border-color: #fff; }
.family-picks-filter.is-open { box-shadow: 0 0 0 2px rgba(255, 255, 255, .55); }
.family-picks-filter-options { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; padding: 8px; border-radius: 12px; background: rgba(255, 255, 255, .14); }
.family-picks-filter-options button { padding: 5px 12px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .2); color: #fff; font-size: 13px; cursor: pointer; }
.family-picks-filter-options button.is-active { background: #fff; color: #5b2fd6; font-weight: 700; }
