body.home-page,
body.list-page,
body.home-page #app,
body.list-page #app { background: #f7f9fc; }
body.home-page.is-booting,
body.list-page.is-booting { overflow: hidden; }
body.home-page.is-booting #app,
body.list-page.is-booting #app { display: grid; min-height: 100dvh; padding: 0; place-items: center; }
body.home-page.is-booting .boot-loading,
body.list-page.is-booting .boot-loading { min-height: 0; padding: 24px; }
body.home-page #app { padding: 0 0 calc(92px + var(--bottom-safe-space)); }
.home-page-shell { min-height: 100dvh; color: #111827; background: #f2f4f7; }
.home-fixed-header { position: fixed; z-index: 42; top: 0; left: 50%; width: min(100%, 480px); padding-top: env(safe-area-inset-top); border-bottom: 1px solid #edf0f4; background: rgba(255,255,255,.97); transform: translateX(-50%); }
.home-nav-row { position: relative; display: grid; height: 54px; grid-template-columns: 74px minmax(0,1fr) 74px; align-items: center; padding: 0 8px; }
.home-site-logo { display: grid; width: 100%; min-width: 0; height: 38px; padding: 0; place-items: center; }
.home-site-logo img { display: block; width: 132px; max-width: 100%; height: 32px; object-fit: contain; }
.home-site-logo span { overflow: hidden; color: #172033; font-size: 20px; font-weight: 900; letter-spacing: .06em; text-overflow: ellipsis; white-space: nowrap; }
.home-service-entry { display: grid; width: 42px; height: 46px; align-content: center; justify-items: center; gap: 1px; padding: 0; }
.home-service-entry img,
.home-service-entry svg { width: 24px; height: 24px; object-fit: contain; }
.home-service-entry img.is-configured { border-radius: 50%; object-fit: cover; }
.home-service-entry span { color: #111827; font-size: 10px; line-height: 14px; }
.home-service-placeholder { width: 42px; }
.home-message-entry { display: grid; width: 36px; height: 36px; justify-self: end; padding: 0; place-items: center; }
.home-message-entry i { color: #111827; font-size: 21px; }
.home-search-row { padding: 0 12px 10px; }
.home-search-shell { display: grid; height: 43px; grid-template-columns: 32px minmax(0,1fr) 76px; align-items: center; padding-left: 13px; border: 1px solid #e1e6ed; border-radius: 23px; color: #6c7688; background: #fff; box-shadow: 0 6px 17px rgba(69,86,112,.06); }
.home-search-shell > i { font-size: 18px; }
.home-search-shell input { width: 100%; min-width: 0; height: 40px; padding: 0 6px; border: 0; outline: 0; color: #111827; background: transparent; font-size: 16px; }
.home-search-shell input::placeholder { color: #8993a5; }
.home-search-shell button { display: flex; width: 72px; height: 35px; align-items: center; justify-content: center; gap: 4px; margin-right: 3px; padding: 0; border-radius: 18px; color: #0d1117; background: #ffd21a; font-size: 14px; font-weight: 700; }
.home-search-shell button i { font-size: 15px; }
.home-content { padding-top: calc(107px + env(safe-area-inset-top)); }
.home-page-shell.is-search-hidden .home-content { padding-top: calc(54px + env(safe-area-inset-top)); }
.home-strip-advertising { overflow: hidden; margin: 0 12px 4px; }
.home-strip-advertising > div { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.home-strip-advertising > div::-webkit-scrollbar { display: none; }
.home-strip-ad { position: relative; min-width: 100%; height: 92px; overflow: hidden; padding: 0; border: 0; border-radius: 10px; background: #eef4ff; scroll-snap-align: start; }
.home-strip-ad:disabled { opacity: 1; }
.home-strip-ad img { width: 100%; height: 100%; object-fit: cover; }
.home-strip-ad span { position: absolute; right: 12px; bottom: 10px; left: 12px; display: grid; color: #fff; text-align: left; text-shadow: 0 1px 5px rgba(15,23,42,.55); }
.home-entry-grid { display: grid; grid-template-columns: repeat(var(--navigation-columns,5), minmax(0,1fr)); min-height: 164px; align-content: start; padding: 8px 10px 3px; background: linear-gradient(180deg,#fff 0%,rgba(255,255,255,.96) 58%,rgba(255,255,255,.68) 78%,rgba(255,255,255,0) 100%); }
.home-entry-grid .category-entry { display: grid; min-width: 0; min-height: 76px; align-content: start; justify-items: center; gap: 4px; padding: 3px 1px; }
.home-entry-grid .category-entry-icon { position: relative; display: grid; width: 46px; height: 46px; place-items: center; }
.home-entry-grid .category-entry-icon > img { display: block; width: 44px; height: 44px; object-fit: contain; }
.home-entry-grid .category-entry-icon > i { display: grid; width: 42px; height: 42px; border-radius: 50%; color: #fff; background: var(--primary); font-size: 21px; place-items: center; }
.home-entry-grid .category-entry-badge { position: absolute; z-index: 1; top: -2px; left: 32px; overflow: hidden; max-width: 42px; padding: 0 4px; border-radius: 999px; color: #fff; font-size: 9px; font-style: normal; font-weight: 700; line-height: 14px; text-overflow: ellipsis; white-space: nowrap; }
.home-entry-grid .category-entry small { overflow: hidden; max-width: 100%; color: #111827; font-size: 12px; font-weight: 500; line-height: 18px; text-overflow: ellipsis; white-space: nowrap; }
.merchant-home-section { width: calc(100% - 24px); margin: 0 12px; padding: 4px 0; overflow: hidden; background: transparent; }
.merchant-home-head { display: flex; min-height: 30px; align-items: center; justify-content: space-between; gap: 9px; margin-bottom: 2px; }
.merchant-home-heading { display: flex; min-width: 0; align-items: center; gap: 6px; }
.merchant-home-heading > svg { width: 19px; height: 19px; flex: none; fill: #b97700; }
.merchant-home-heading strong { flex: none; color: #111827; font-size: 17px; font-weight: 700; line-height: 23px; }
.merchant-home-heading small { overflow: hidden; min-width: 0; color: #9aa2af; font-size: 11px; line-height: 19px; text-overflow: ellipsis; white-space: nowrap; }
.merchant-home-head > button { display: flex; min-width: 47px; height: 22px; align-items: center; justify-content: center; gap: 1px; padding: 0 6px; border-radius: 11px; color: #fff; background: #bd7f0f; font-size: 11px; font-weight: 600; }
.merchant-home-head > button svg { width: 9px; height: 9px; fill: #fff; }
.merchant-home-scroll { width: 100%; overflow: hidden; }
.merchant-home-track { display: flex; width: 100%; gap: 8px; overflow-x: auto; padding: 0 calc(100% - 94px) 5px 0; scroll-snap-type: x mandatory; scrollbar-width: none; }
.merchant-home-track::-webkit-scrollbar { display: none; }
.merchant-home-card { display: grid; width: 94px; min-width: 94px; flex: 0 0 94px; overflow: hidden; padding: 0; border-radius: 9px; background: #fff; box-shadow: 0 3px 9px rgba(36,51,73,.09); scroll-snap-align: start; }
.merchant-home-media { position: relative; display: block; width: 94px; height: 87px; overflow: hidden; background: #edf2ff; }
.merchant-home-media img,
.merchant-home-media .merchant-cover-placeholder { width: 100%; height: 100%; object-fit: cover; }
.merchant-home-media .merchant-cover-placeholder { display: grid; color: #64748b; place-items: center; }
.merchant-home-coupon { position: absolute; z-index: 1; top: 5px; right: 5px; display: flex; width: 21px; min-width: 21px; max-width: 21px; height: 21px; min-height: 21px; max-height: 21px; box-sizing: border-box; align-items: center; justify-content: center; overflow: hidden; padding: 0; border-radius: 4px; color: #fff; background: rgba(253,55,39,.8); }
.merchant-home-coupon > span { display: block; width: 100%; overflow: visible; color: #fff; font-size: 12px; font-weight: 400; line-height: 21px; text-align: center; text-overflow: clip; white-space: nowrap; }
.merchant-home-copy { display: flex; min-width: 0; height: 30px; align-items: center; padding: 0 7px; }
.merchant-home-copy strong { display: block; overflow: hidden; min-width: 0; color: #202631; font-size: 13px; font-weight: 600; line-height: 19px; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.merchant-home-empty { width: calc(100vw - 24px); margin: 0; padding: 22px; color: #94a3b8; text-align: center; }
.feed-section { width: 100%; margin: 2px 0 0; padding: 0 12px 22px; background: transparent; }
body.home-page .feed-section { margin-bottom: calc(-92px - var(--bottom-safe-space)); padding-bottom: calc(114px + var(--bottom-safe-space)); }
.home-feed-tabs { display: grid; width: calc(100% + 24px); height: 38px; grid-template-columns: 94px minmax(0,1fr); align-items: center; gap: 0; overflow: hidden; margin: 0 -12px; padding: 0 12px; background: transparent; }
.home-feed-latest { display: flex; width: 94px; height: 32px; align-items: center; justify-content: center; gap: 4px; padding: 0; border-radius: 17px; color: #fff; background: #4388ff; font-size: 12px; font-weight: 700; }
.home-feed-latest i { font-size: 14px; }
.home-feed-category-scroll { display: flex; gap: 7px; overflow-x: auto; padding-left: 10px; scrollbar-width: none; }
.home-feed-category-scroll::-webkit-scrollbar { display: none; }
.home-feed-category-scroll button { flex: none; height: 32px; padding: 0 12px; border-radius: 17px; color: #354052; background: #fff; font-size: 12px; white-space: nowrap; }
.home-post-feed { display: grid; gap: 9px; background: transparent; }
.home-feed-masonry { grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; padding-top: 4px; }
.home-masonry-column { display: grid; min-width: 0; align-content: start; gap: 9px; }
.home-post-card { position: relative; overflow: hidden; border: 1px solid; border-color: #d5dbe3; border-radius: 9px; background: #fff; }
.home-post-card-masonry { display: block; border: 0; box-shadow: none; }
.home-post-card-masonry .home-post-media { display: block; width: 100%; overflow: hidden; aspect-ratio: var(--masonry-thumbnail-ratio, 3 / 4); background: #e5e9ee; }
.home-post-card-masonry .home-post-media.is-height-capped { max-height: 284px; }
.home-post-card-masonry .home-post-media.is-height-capped .home-post-cover { object-position: center; }
.home-post-card-masonry .home-post-cover { width: 100%; height: 100%; margin: 0; border-radius: 0; object-fit: cover; }
.home-post-card-masonry .home-post-placeholder-media { display: grid; color: #94a3b8; place-items: center; }
.home-post-card-masonry .home-pinned-badge { position: absolute; z-index: 2; top: 5px; right: 5px; padding: 1px 5px; border-radius: 5px; color: #fff; background: var(--pin-tag-color,#f97316); font-size: 9px; }
.home-post-card-masonry .home-post-body { padding: 5px 6px 7px; }
.home-post-card-masonry.has-image .home-post-body { padding: 5px 6px; }
.home-post-card-masonry h3 { display: -webkit-box; overflow: hidden; max-height: 40px; margin: 0; color: #111827; font-size: 14px; font-weight: 550; line-height: 20px; text-overflow: clip; word-break: break-all; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.home-post-card-masonry h3.is-title-truncated { text-overflow: ellipsis; }
.home-type-tag { display: inline-flex; margin-right: 4px; padding: 0 4px; border-radius: 3px; color: var(--home-tag-text,#fff); background: var(--home-tag-background,var(--primary)); font-size: 10px; font-weight: 650; line-height: 17px; vertical-align: 1px; }
.home-masonry-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; }
.home-selected-tag { display: inline-flex; overflow: hidden; max-width: 100%; padding: 0 4px; border: 0; border-radius: 3px; color: #64748b; background: #f1f5f9; font-size: 10px; line-height: 17px; text-overflow: ellipsis; white-space: nowrap; }
.home-masonry-bottom { display: flex; min-height: 25px; align-items: center; justify-content: space-between; gap: 7px; margin-top: 3px; }
.home-masonry-owner { display: flex; min-width: 0; align-items: center; gap: 5px; color: #334155; font-size: 11px; }
.home-masonry-owner > span:last-child { overflow: hidden; min-width: 0; text-overflow: ellipsis; white-space: nowrap; }
.home-publisher-avatar { display: grid; width: 18px; height: 18px; flex: none; border-radius: 50%; object-fit: cover; place-items: center; }
.home-detail-button { display: flex; min-width: 38px; height: 20px; align-items: center; justify-content: center; margin-left: auto; padding: 0 7px; border-radius: 10px; color: var(--home-detail-color,#fff); background: var(--home-detail-background,var(--primary)); font-size: 10px; font-weight: 700; }
.home-detail-button.is-phone::before { width: 11px; height: 11px; margin-right: 2px; background: url("/assets/icons/phone-fill.svg") center / contain no-repeat; content: ""; }
.home-post-price { overflow: hidden; color: #f04438; font-size: 14px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.home-post-card-list { display: grid; min-height: 82px; grid-template-columns: 98px minmax(0,1fr); }
.home-post-card-list.no-image { grid-template-columns: minmax(0,1fr); }
.home-post-card-list .home-post-media { position: relative; display: block; min-width: 0; }
.home-post-card-list .home-post-cover { width: 86px; height: 70px; margin: 6px; border-radius: 6px; object-fit: cover; }
.home-post-card-list .home-post-body { min-width: 0; padding: 7px 8px 6px 0; }
.home-post-card-list.no-image .home-post-body { padding-left: 9px; }
.home-post-title-line { display: flex; min-width: 0; align-items: center; gap: 5px; }
.home-post-card-list h3 { overflow: hidden; min-width: 0; margin: 0; color: #111827; font-size: 14px; font-weight: 650; line-height: 19px; text-overflow: ellipsis; white-space: nowrap; }
.home-post-summary { overflow: hidden; margin: 2px 0 3px; color: #64748b; font-size: 12px; line-height: 17px; text-overflow: ellipsis; white-space: nowrap; }
.home-post-meta { display: flex; min-width: 0; align-items: center; justify-content: space-between; color: #94a3b8; font-size: 10px; }
.home-post-taxonomy { display: flex; min-width: 0; gap: 4px; overflow: hidden; }
.home-post-taxonomy em { overflow: hidden; max-width: 64px; padding: 0 4px; border: 1px solid #d8e2ee; border-radius: 4px; color: #64748b; font-style: normal; line-height: 17px; text-overflow: ellipsis; white-space: nowrap; }
.home-feed-status { display: flex; min-height: 42px; align-items: center; justify-content: center; gap: 7px; color: #94a3b8; font-size: 11px; }
.home-feed-spinner { width: 14px; height: 14px; border: 2px solid #dbeafe; border-top-color: var(--primary); border-radius: 50%; animation: home-feed-spin .7s linear infinite; }
@keyframes home-feed-spin { to { transform: rotate(360deg); } }
body.list-page .top { min-height: 58px; grid-template-columns: 96px minmax(0,1fr) 96px; padding-inline: 10px; border-bottom: 1px solid #e8edf4; backdrop-filter: none; background: #fff; }
body.list-page .top-title strong { color: #111827; font-size: 16px; font-weight: 650; }
body.list-page #backBtn { display: flex; width: 87px; height: 32px; align-items: center; justify-content: center; justify-self: start; padding: 0 11px; border: 1px solid rgba(15,23,42,.12); border-radius: 17px; background: rgba(255,255,255,.82); box-shadow: 0 1px 4px rgba(15,23,42,.06); }
body.list-page #backBtn img,
body.list-page #backBtn > i { width: 20px; height: 20px; flex: none; font-size: 20px; line-height: 20px; }
body.list-page #backBtn .back-label { display: flex; height: 20px; align-items: center; margin-left: 6px; padding-left: 8px; border-left: 1px solid rgba(15,23,42,.18); font-size: 14px; font-weight: 400; white-space: nowrap; }
body.list-page #profileBtn { visibility: hidden; }
body.list-page #app { min-height: calc(100dvh - 58px); padding: 10px 12px calc(108px + var(--bottom-safe-space)); }
.category-page-shell { display: flex; flex-direction: column; gap: 8px; }
.category-top-banner { display: block; width: 100%; max-height: 180px; border-radius: 10px; background: transparent; object-fit: contain; aspect-ratio: 2.53; }
.category-child-list { display: flex; width: 100%; gap: 8px; overflow-x: auto; padding: 1px 0 2px; scrollbar-width: none; }
.category-child-list::-webkit-scrollbar { display: none; }
.category-child-list button { min-height: 36px; flex: none; padding: 0 16px; border: 1px solid transparent; border-radius: 18px; color: #111; background: #fff; font-size: 12px; }
.category-child-list button.active { border-color: var(--primary); color: #111; background: var(--primary); font-weight: 700; }
.category-information-feed { padding-top: 0; }
.search-page-shell { min-height: calc(100dvh - 68px); }
.search-control { position: sticky; z-index: 20; top: 58px; display: grid; width: calc(100% + 24px); height: 72px; grid-template-columns: 32px minmax(0,1fr) 25px 70px; align-items: center; margin: -10px -12px 0; padding: 9px 15px 9px 25px; color: #6c7688; background: rgba(247,249,252,.97); }
.search-control::before { position: absolute; inset: 9px 13px; z-index: -1; border: 1px solid #e1e6ed; border-radius: 22px; background: #fff; box-shadow: 0 6px 17px rgba(69,86,112,.06); content: ""; }
.search-control > i { font-size: 17px; }
.search-control input { width: 100%; min-width: 0; height: 41px; padding: 0 4px; border: 0; outline: 0; color: #111827; background: transparent; font-size: 16px; }
.search-clear { display: grid; width: 25px; height: 40px; padding: 0; color: #8b95a6; place-items: center; }
.search-clear-placeholder { width: 25px; }
.search-submit { width: 66px; height: 35px; padding: 0; border-radius: 18px; color: #0d1117; background: #ffd21a; font-size: 14px; font-weight: 700; }
.search-history-card { margin-top: 5px; padding: 12px 11px; border-radius: 11px; background: #fff; box-shadow: 0 7px 18px rgba(44,62,88,.055); }
.search-history-card header { display: flex; min-height: 22px; align-items: center; justify-content: space-between; }
.search-history-card header strong { display: flex; align-items: center; gap: 6px; color: #111827; font-size: 16px; }
.search-history-card header strong i { width: 3px; height: 15px; border-radius: 2px; background: #ffd21a; }
.search-history-card header button { display: flex; align-items: center; gap: 4px; color: #818b9e; font-size: 12px; }
.search-history-card > div { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 10px; }
.search-history-card > div button { overflow: hidden; max-width: 110px; padding: 5px 8px; border-radius: 16px; color: #354052; background: #f3f5f8; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.search-result-heading { display: flex; min-height: 34px; align-items: center; justify-content: space-between; }
.search-result-heading > span { display: flex; min-width: 0; align-items: center; gap: 5px; }
.search-result-heading strong { flex: none; color: #111827; font-size: 14px; }
.search-result-heading em { overflow: hidden; color: #64748b; font-size: 12px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.search-result-heading small { color: #111827; font-size: 12px; }
.search-state { display: flex; min-height: 440px; align-items: center; justify-content: center; flex-direction: column; color: #111827; text-align: center; }
.search-state img { width: 124px; margin-bottom: 9px; }
.search-state strong { font-size: 17px; }
.search-state span { margin-top: 4px; color: #687386; font-size: 13px; }
@media (max-width: 350px) {
  .home-nav-row { grid-template-columns: 64px minmax(0,1fr) 64px; }
  .home-site-logo span { font-size: 18px; }
  .home-search-shell { grid-template-columns: 27px minmax(0,1fr) 65px; }
  .home-search-shell button { width: 61px; }
  .home-entry-grid { min-height: 136px; padding-inline: 8px; }
  .home-entry-grid .category-entry { min-height: 62px; }
  .home-entry-grid .category-entry-icon { width: 38px; height: 38px; }
  .home-entry-grid .category-entry-icon > img { width: 36px; height: 36px; }
  .home-entry-grid .category-entry small { font-size: 10px; }
  .merchant-home-section { width: calc(100% - 20px); margin-inline: 10px; }
  .merchant-home-card { width: 77px; min-width: 77px; flex-basis: 77px; }
  .merchant-home-track { padding-right: calc(100% - 77px); }
  .merchant-home-media { width: 77px; height: 71px; }
  .merchant-home-coupon { top: 4px; right: 4px; width: 18px; min-width: 18px; max-width: 18px; height: 18px; min-height: 18px; max-height: 18px; border-radius: 4px; }
  .merchant-home-coupon > span { font-size: 10px; line-height: 18px; }
  .merchant-home-copy { height: 25px; padding-inline: 6px; }
  .merchant-home-copy strong { font-size: 11px; line-height: 16px; }
  .merchant-home-head { min-height: 26px; }
  .merchant-home-heading { gap: 5px; }
  .merchant-home-heading > svg { width: 16px; height: 16px; }
  .merchant-home-heading strong { font-size: 14px; line-height: 20px; }
  .merchant-home-heading small { font-size: 9px; }
  .merchant-home-head > button { min-width: 40px; height: 20px; padding-inline: 5px; font-size: 9px; }
  .feed-section { padding-inline: 10px; }
  .home-feed-tabs { width: calc(100% + 20px); grid-template-columns: 77px minmax(0,1fr); margin-inline: -10px; padding-inline: 10px; }
  .home-feed-latest { width: 77px; font-size: 10px; }
  .home-feed-category-scroll { padding-left: 8px; }
  .home-feed-category-scroll button { padding-inline: 10px; font-size: 10px; }
  body.list-page #app { padding-inline: 10px; }
  .search-control { width: calc(100% + 20px); grid-template-columns: 27px minmax(0,1fr) 23px 58px; margin-inline: -10px; padding-inline: 18px 13px; }
  .search-submit { width: 55px; font-size: 13px; }
}
