  :root {
    color-scheme: dark;
    --bg: #111317;
    --card: #1B1F26;
    --gold: #F2B84B;
    --fg: #F5F7FA;
    --muted: rgba(245, 247, 250, 0.68);
    --line: rgba(245, 247, 250, 0.12);
    --line-strong: rgba(245, 247, 250, 0.22);
    --sign: #111317;
    --price-bg: #F2B84B;
    --price-fg: #111317;
    --shadow: 0 4px 16px rgba(17, 19, 23, 0.45);
  }
  * { box-sizing: border-box; }


  /* 更好的焦點樣式 */
  *:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
  }
  html { scroll-behavior: smooth; }
  button, input, select, textarea { font-family: inherit; }
  body {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    font-family: "Noto Sans TC", "PingFang HK", -apple-system, BlinkMacSystemFont, "Microsoft JhengHei", sans-serif;
    font-weight: 400;
    line-height: 1.5;
  }

  /* 頂部窄招牌：深色夜市配色（#111317 底、黑底白弧線紙飛機標誌、金黃 #F2B84B 食邊度） */
  .top-sign-wrap {
    background: var(--sign);
    color: var(--fg);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(17, 19, 23, 0.3);
  }
  .top-sign {
    max-width: 560px;
    margin: 0 auto;
    padding: 11px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }
  .brand-left {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    min-width: 0;
  }
  .brand-mark {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border-radius: 10px;
    display: block;
    object-fit: cover;
  }
  .brand-name {
    display: flex;
    align-items: baseline;
    gap: 5px;
    line-height: 1;
    flex-wrap: nowrap;
  }
  .brand-fly {
    font-size: 20px;
    font-weight: 900;
    color: var(--fg);
    letter-spacing: 0.03em;
    white-space: nowrap;
  }
  .brand-eat {
    font-size: 11px;
    font-weight: 400;
    color: var(--muted);
    letter-spacing: 0.04em;
    white-space: nowrap;
  }
  .brand-sub {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--muted);
    letter-spacing: 0.04em;
    white-space: nowrap;
  }
  .install-btn {
    background: var(--gold);
    color: var(--bg);
    border: none;
    border-radius: 10px;
    padding: 8px 12px;
    min-height: 38px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(242, 184, 75, 0.3);
    transition: background 0.15s, box-shadow 0.15s, transform 0.1s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  .install-btn:hover {
    background: #e6a840;
    box-shadow: 0 4px 12px rgba(242, 184, 75, 0.4);
  }
  .install-btn:active {
    transform: scale(0.98);
  }
  .install-btn.installed {
    background: var(--card);
    color: var(--muted);
    box-shadow: none;
    cursor: default;
  }
  .install-btn.installed:hover {
    background: var(--card);
    box-shadow: none;
  }
  @media (max-width: 480px) {
    .topbar-in {
      padding: 9px 12px;
      gap: 6px;
    }
    .brand-left {
      gap: 7px;
    }
    .brand-mark {
      width: 32px;
      height: 32px;
      flex: 0 0 32px;
    }
    .brand-name {
      gap: 4px;
    }
    .brand-fly {
      font-size: 16.5px;
      letter-spacing: 0.01em;
    }
    .brand-eat {
      font-size: 10px;
      letter-spacing: 0.02em;
    }
    .brand-sub {
      font-size: 10.5px;
    }
    .install-btn {
      padding: 6px 10px;
      min-height: 38px;
      font-size: 11.5px;
    }
  }
  .ios-install-guide {
    position: fixed;
    inset: 0;
    background: rgba(17, 19, 23, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 16px;
  }
  .ios-guide-content {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 20px;
    max-width: 320px;
    width: 100%;
    box-shadow: var(--shadow);
  }
  .ios-guide-content h3 {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 900;
    color: var(--fg);
    text-align: center;
  }
  .ios-guide-content p {
    margin: 0 0 12px;
    font-size: 14px;
    color: var(--muted);
    text-align: center;
  }
  .ios-guide-content ol {
    margin: 0 0 16px;
    padding-left: 20px;
    font-size: 14px;
    line-height: 2;
    color: var(--fg);
  }
  .ios-guide-content li {
    margin-bottom: 8px;
  }
  .ios-guide-close {
    width: 100%;
    background: var(--gold);
    color: var(--bg);
    border: none;
    border-radius: 10px;
    padding: 10px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
  }
  .ios-guide-close:hover {
    background: #e6a840;
  }

  .container {
    max-width: 560px;
    margin: 0 auto;
    padding: 14px 14px 44px;
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  /* 頁頂全港連鎖食肆走馬燈（招牌下、四塊大相上，只用深色夜市四色與微圓角） */
  .chain-marquee {
    background: var(--card);
    border: 1.5px solid rgba(242, 184, 75, 0.72);
    border-radius: 12px;
    padding: 6px 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
  }
  .cm-badge {
    background: var(--gold);
    color: var(--bg);
    border-radius: 8px;
    padding: 5px 10px;
    font-size: 12.5px;
    font-weight: 900;
    line-height: 1.15;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .cm-viewport {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    position: relative;
  }
  .cm-viewport::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 24px;
    background: linear-gradient(to left, var(--card) 15%, rgba(27, 31, 38, 0));
    pointer-events: none;
  }
  .cm-track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: chainMarqueeScroll 28s linear infinite;
    will-change: transform;
  }
  .cm-group {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-right: 8px;
  }
  .chain-marquee:hover .cm-track,
  .chain-marquee:focus-within .cm-track,
  .chain-marquee.is-paused .cm-track {
    animation-play-state: paused;
  }
  @keyframes chainMarqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
  }
  .cm-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--bg);
    border: 1px solid rgba(242, 184, 75, 0.55);
    border-radius: 8px;
    padding: 5px 10px;
    text-decoration: none;
    white-space: nowrap;
    font-size: 12.5px;
    line-height: 1.2;
    transition: border-color 0.15s;
  }
  .cm-item:hover,
  .cm-item:focus-visible {
    border-color: var(--gold);
  }
  .cm-name {
    color: var(--gold);
    font-weight: 900;
  }
  .cm-sep {
    color: rgba(245, 247, 250, 0.35);
    font-weight: 400;
  }
  .cm-act {
    color: var(--fg);
    font-weight: 700;
  }
  @media (max-width: 480px) {
    .float-top { right: 12px; left: auto; bottom: 72px; }
  }

  @media (prefers-reduced-motion: reduce) {
    .cm-viewport {
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
    }
    .cm-track {
      animation: none;
    }
    .cm-dup {
      display: none;
    }
  }

  /* 區塊小標題 */
  .sec-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: -4px;
  }
  .sec-title {
    font-size: 16px;
    font-weight: 900;
    color: var(--fg);
    margin: 0;
  }
  .sec-sub {
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
  }
  .sec-btn {
    background: var(--card);
    color: var(--fg);
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    padding: 6px 11px;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
  }

  /* 第一眼：五塊大真相分類卡 */
  .hero-stack {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .cat-hero {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 112px;
    padding: 0;
    border-radius: 16px;
    overflow: hidden;
    background: var(--card);
    border: 1.5px solid var(--line);
    box-shadow: var(--shadow);
    cursor: pointer;
    text-align: left;
    display: block;
    transition: border-color 0.15s, box-shadow 0.15s;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
  }
  .cat-hero.selected {
    border: 2.5px solid var(--gold);
    box-shadow: 0 4px 16px rgba(242, 184, 75, 0.18);
  }
  .cat-hero:active {
    transform: scale(0.98);
    transition: transform 0.1s;
  }
  .cat-hero:hover {
    border-color: var(--gold);
    box-shadow: 0 4px 16px rgba(242, 184, 75, 0.18);
  }
  .cat-hero picture, .d-photo picture, .wp-photo picture {
    display: block;
    width: 100%;
    height: 100%;
  }
  .cat-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    border-radius: 16px;
    display: block;
    pointer-events: none;
  }
  .cat-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(17, 19, 23, 0.80) 0%, rgba(17, 19, 23, 0.40) 55%, rgba(17, 19, 23, 0.56) 100%);
    pointer-events: none;
  }
  .cat-hero-flight {
    background: radial-gradient(circle at 78% 35%, rgba(242, 184, 75, 0.20) 0%, rgba(28, 39, 60, 0.92) 48%, #151b26 100%);
  }
  .cat-hero-flight-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    pointer-events: none;
    opacity: 0.72;
  }
  .cat-hero-inner {
    position: absolute;
    inset: 0;
    z-index: 1;
    padding: 12px 14px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    pointer-events: none;
  }
  .cat-hero-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
  }
  .cat-hero-title {
    font-size: 21px;
    font-weight: 900;
    color: var(--fg);
    line-height: 1.1;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 4px rgba(17, 19, 23, 0.6);
  }
  .cat-hero-line {
    font-size: 12.5px;
    font-weight: 700;
    color: rgba(245, 247, 250, 0.88);
    text-shadow: 0 1px 3px rgba(17, 19, 23, 0.6);
  }
  @media (max-width: 480px) {
    .cat-hero-line {
      font-size: 11.5px;
      line-height: 1.35;
    }
  }
  .cat-hero-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
  }
  .cat-hero-price {
    display: inline-block;
    background: var(--price-bg);
    color: var(--price-fg);
    font-size: 20px;
    font-weight: 900;
    line-height: 1.15;
    padding: 4px 10px;
    border-radius: 8px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(17, 19, 23, 0.4);
  }
  .cat-hero-arrow {
    font-size: 11px;
    font-weight: 800;
    color: var(--fg);
    background: rgba(17, 19, 23, 0.82);
    padding: 2px 7px;
    border-radius: 8px;
    white-space: nowrap;
  }
  .cat-hero.selected .cat-hero-arrow {
    background: var(--gold);
    color: var(--bg);
  }
  .section-divider {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--line);
  }
  .c-input, .c-select {
    width: 100%;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid var(--line-strong);
    background: var(--bg);
    color: var(--fg);
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
  }
  /* 卡內預填「幫我計」細掣及展開小面板 */
  .d-left-btns {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
  }
  .btn-calc-mini {
    background: var(--bg);
    color: var(--fg);
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    padding: 6px 10px;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12.5px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
  }
  .btn-calc-mini.open {
    background: var(--gold);
    color: var(--bg);
    border-color: var(--gold);
  }
  .inline-calc {
    margin-top: 10px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .ic-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
  }
  .ic-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
  }
  .ic-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
  }
  .stepper {
    display: inline-flex;
    align-items: center;
    background: var(--card);
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    overflow: hidden;
  }
  .stepper button {
    background: transparent;
    border: 0;
    color: var(--fg);
    padding: 4px 10px;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
  }
  .stepper span.mid {
    padding: 4px 8px;
    font-size: 12.5px;
    font-weight: 800;
    color: var(--fg);
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
    background: var(--bg);
    white-space: nowrap;
  }
  .ic-opt-row {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
  }
  .ic-opt {
    background: var(--card);
    color: var(--fg);
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    padding: 4px 8px;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
  }
  .ic-opt.active {
    background: var(--gold);
    color: var(--bg);
    border-color: var(--gold);
  }
  .ic-res {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
  }
  .ic-res-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  .ic-res-sub {
    font-size: 12px;
    color: var(--fg);
    font-weight: 800;
  }
  .ic-res-detail {
    font-size: 11.5px;
    color: var(--muted);
    font-weight: 500;
  }
  .ic-price {
    display: inline-block;
    font-size: 20px;
    font-weight: 900;
    color: var(--price-fg);
    background: var(--price-bg);
    padding: 3px 9px;
    border-radius: 8px;
    line-height: 1.15;
    white-space: nowrap;
  }
  .ic-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 11px;
    color: var(--muted);
  }
  .ic-copy {
    background: var(--card);
    color: var(--fg);
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    padding: 5px 10px;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
  }
  .wa-btn {
    background: var(--card);
    color: var(--fg);
    border: 1px solid var(--line-strong);
    padding: 7px 12px;
    min-height: 38px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .cta-btn {
    background: var(--gold);
    color: var(--bg);
    text-decoration: none;
    border: 1px solid var(--gold);
    padding: 8px 14px;
    min-height: 40px;
    border-radius: 8px;
    font-weight: 900;
    font-size: 13px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
  }
  .cta-btn:hover { opacity: 0.9; }

  /* 搜尋與分類摺疊面板（預設收埋，按右上掣打開） */
  .find-panel {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px 14px;
    box-shadow: var(--shadow);
  }
  #dealSearchBar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
  }
  #dealSearchBar label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--fg);
    cursor: pointer;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 6px 10px;
  }
  .filter-bar {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
  }
  /* Sticky filter bar for main category tabs */
  #filterBar {
    position: sticky;
    top: 60px;
    z-index: 50;
    background: var(--bg);
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
    margin: 0 -14px 12px;
    padding-left: 14px;
    padding-right: 14px;
  }
  #dealsSectionHead {
    scroll-margin-top: 72px;
  }
  @media (max-width: 480px) {
    #filterBar {
      top: 56px;
    }
  }
  .f-tab {
    background: var(--bg);
    color: var(--fg);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 6px 11px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
  }
  .f-tab.active {
    background: var(--gold);
    color: var(--bg);
    border-color: var(--gold);
  }

  .sort-bar {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
  }
  @media (max-width: 640px) {
    .cat-hero {
      height: 86px;
    }
    .cat-hero-inner {
      padding: 10px 12px;
    }
    .cat-hero-title {
      font-size: 19px;
    }
    .cat-hero-price {
      font-size: 18px;
      padding: 3px 9px;
    }
    #quickCatBar, .sort-bar {
      flex-wrap: nowrap;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: none;
      padding-bottom: 2px;
    }
    #quickCatBar::-webkit-scrollbar, .sort-bar::-webkit-scrollbar {
      display: none;
    }
    #quickCatBar .f-tab, .sort-bar .f-tab {
      flex-shrink: 0;
      white-space: nowrap;
    }
  }
  @media (min-width: 820px) {
    .top-sign, .container {
      max-width: 960px;
    }
    .hero-stack {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 10px;
    }
    .hero-stack .cat-hero {
      height: 126px;
      min-height: 126px;
    }
    .hero-stack .cat-hero::after {
      background: linear-gradient(180deg, rgba(17, 19, 23, 0.72) 0%, rgba(17, 19, 23, 0.44) 48%, rgba(17, 19, 23, 0.80) 100%);
    }
    .hero-stack .cat-hero-inner {
      flex-direction: column;
      align-items: stretch;
      justify-content: space-between;
      gap: 8px;
      padding: 13px 14px;
    }
    .hero-stack .cat-hero-text {
      width: 100%;
      min-width: 0;
      gap: 4px;
    }
    .hero-stack .cat-hero-title {
      font-size: 20px;
      line-height: 1.2;
      white-space: nowrap;
    }
    .hero-stack .cat-hero-line {
      font-size: 12px;
      line-height: 1.35;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .hero-stack .cat-hero-right {
      width: 100%;
      flex-direction: row;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
    }
    .hero-stack .cat-hero-price {
      font-size: 17px;
      padding: 4px 10px;
    }
  }
  /* 無相卡主題漸層視覺條（零假圖／零破圖） */
  .d-banner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 10px 10px 0;
    padding: 14px 14px;
    border-radius: 12px;
    background: radial-gradient(circle at 86% 30%, rgba(242, 184, 75, 0.18) 0%, rgba(28, 37, 54, 0.92) 55%, #161b24 100%);
    border: 1px solid var(--line);
    overflow: hidden;
  }
  .d-banner-tag {
    font-size: 12.5px;
    font-weight: 800;
    color: var(--fg);
    background: rgba(17, 19, 23, 0.72);
    border: 1px solid rgba(242, 184, 75, 0.38);
    border-radius: 8px;
    padding: 4px 9px;
    white-space: nowrap;
    max-width: 58%;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  /* PK 對比浮動列與對比彈窗 */
  .compare-dock {
    position: fixed;
    left: 14px;
    right: 84px;
    bottom: 16px;
    z-index: 95;
    max-width: 680px;
    margin: 0 auto;
    background: var(--card);
    border: 1.5px solid var(--gold);
    border-radius: 14px;
    padding: 9px 12px;
    box-shadow: 0 8px 24px rgba(17, 19, 23, 0.72);
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
  }
  @media (min-width: 820px) {
    .compare-dock {
      right: 14px;
    }
  }
  .compare-dock-info {
    font-size: 12.5px;
    font-weight: 800;
    color: var(--fg);
    min-width: 0;
    flex: 1 1 180px;
  }
  .compare-dock-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
  }
  .compare-modal {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(17, 19, 23, 0.84);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 14px;
  }
  .compare-box {
    width: 100%;
    max-width: 720px;
    max-height: 86vh;
    overflow-y: auto;
    background: var(--card);
    border: 1.5px solid var(--gold);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
  }
  .compare-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
  }
  .compare-grid {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    color: var(--fg);
  }
  .compare-grid th, .compare-grid td {
    border: 1px solid var(--line);
    padding: 9px 10px;
    vertical-align: top;
    text-align: left;
  }
  .compare-grid th {
    background: var(--bg);
    color: var(--gold);
    font-weight: 900;
    width: 24%;
  }
  @media (max-width: 600px) {
    .compare-modal {
      padding: 10px;
    }
    .compare-box {
      width: 100%;
      max-width: 100%;
      box-sizing: border-box;
      padding: 14px 12px;
      overflow-x: hidden;
    }
    .compare-grid,
    .compare-grid tbody {
      display: block;
      width: 100%;
    }
    .compare-grid tr {
      display: flex;
      flex-wrap: wrap;
      border: 1px solid var(--line);
      border-radius: 12px;
      overflow: hidden;
      margin-bottom: 10px;
      background: var(--bg);
    }
    .compare-grid th {
      display: block;
      width: 100%;
      box-sizing: border-box;
      padding: 6px 10px;
      font-size: 12px;
      border: 0;
      border-bottom: 1px solid var(--line);
      background: rgba(242, 184, 75, 0.12);
      color: var(--gold);
    }
    .compare-grid td {
      display: block;
      width: 50%;
      flex: 0 0 50%;
      min-width: 0;
      box-sizing: border-box;
      padding: 8px 9px;
      font-size: 12.5px;
      border: 0;
      word-break: break-word;
      overflow-wrap: anywhere;
      background: var(--card);
    }
    .compare-grid td:last-child {
      border-left: 1px solid var(--line);
    }
    .compare-grid td code {
      word-break: break-all;
      font-size: 11.5px;
    }
    .compare-grid td .cta-btn {
      width: 100%;
      min-height: 38px;
      padding: 6px 8px;
      font-size: 12px;
      white-space: normal;
      line-height: 1.25;
      box-sizing: border-box;
    }
  }
  .wa-btn.active {
    background: var(--gold);
    color: var(--bg);
    border-color: var(--gold);
  }
  /* 第二眼：大相著數深色卡（3秒睇齊：大相＋金黃底大價錢＋白字短題） */
  .deals-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .deal-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow);
    scroll-margin-top: 72px;
    min-width: 0;
    width: 100%;
  }
  @media (min-width: 820px) {
    .deals-list {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 14px;
      align-items: start;
    }
    .deals-list .deal-card.is-empty {
      grid-column: 1 / -1;
    }
  }
  .d-photo {
    position: relative;
    display: block;
    width: calc(100% - 20px);
    margin: 10px 10px 0;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 12px;
    background: var(--card);
    text-decoration: none;
  }
  .d-photo.is-wide {
    aspect-ratio: 2.15 / 1;
  }
  .d-photo::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 46%;
    background: linear-gradient(to top, rgba(17, 19, 23, 0.62), transparent);
    pointer-events: none;
  }
  .d-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    border-radius: 12px;
    display: block;
  }
  .d-price-val {
    font-size: 24px;
    font-weight: 900;
    color: var(--price-fg);
    background: var(--price-bg);
    line-height: 1.15;
    display: inline-block;
    padding: 4px 11px;
    border-radius: 8px;
    white-space: nowrap;
  }
  .d-photo .d-price-val {
    position: absolute;
    left: 12px;
    bottom: 12px;
    z-index: 1;
    box-shadow: 0 2px 8px rgba(17, 19, 23, 0.45);
  }
  .d-nophoto-price {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 6px;
  }
  .d-nophoto-price .d-price-val {
    font-size: 22px;
  }
  .badge-unverified {
    display: inline-block;
    background: var(--bg);
    color: var(--gold);
    border: 1px solid var(--gold);
    border-radius: 8px;
    padding: 3px 9px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
  }
  .d-card-body {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  .d-title {
    font-size: 17px;
    font-weight: 900;
    margin: 0;
    line-height: 1.32;
    color: var(--fg);
  }
  .d-one {
    margin: 0;
    font-size: 13px;
    color: var(--muted);
    font-weight: 500;
  }
  .d-card-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 8px;
  }
  .d-more {
    flex: 0 1 auto;
  }
  .d-more[open] {
    flex: 1 0 100%;
  }
  .d-more > summary {
    cursor: pointer;
    list-style: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--bg);
    color: var(--fg);
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    padding: 7px 12px;
    font-weight: 700;
    font-size: 12.5px;
    user-select: none;
  }
  .d-more > summary::-webkit-details-marker { display: none; }
  .d-more > summary::after { content: " ▾"; font-size: 11px; color: var(--muted); }
  .d-more[open] > summary::after { content: " ▴"; }
  .d-more-body {
    margin-top: 10px;
    padding: 12px;
    background: var(--bg);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 9px;
  }
  .d-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
  }
  .badge-hot {
    background: var(--card);
    color: var(--gold);
    font-size: 12px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 8px;
    border: 1px solid var(--line);
  }
  .badge-cat {
    background: var(--card);
    color: var(--fg);
    font-size: 12px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 8px;
    border: 1px solid var(--line);
  }
  .d-bullets {
    margin: 0;
    padding-left: 18px;
    font-size: 13.5px;
    line-height: 1.58;
  }
  .d-bullets li { margin-bottom: 4px; }
  .d-trap {
    background: var(--card);
    color: var(--fg);
    padding: 8px 10px;
    border-left: 3px solid var(--gold);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
  }
  .d-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--line);
  }
  .code-pill {
    background: var(--card);
    border: 1.5px dashed var(--gold);
    border-radius: 8px;
    padding: 6px 11px;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    color: var(--gold);
    white-space: nowrap;
  }
  .bm-expiry-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(242, 184, 75, 0.12);
    border: 1px solid rgba(242, 184, 75, 0.55);
    border-radius: 12px;
    padding: 10px 14px;
    margin: 6px 0;
    font-size: 13px;
    font-weight: 700;
    color: var(--gold);
    line-height: 1.45;
  }
  @media (max-width: 480px) {
    .d-card-foot {
      gap: 6px;
    }
    .d-left-btns {
      gap: 5px;
      width: 100%;
    }
    .d-left-btns .wa-btn,
    .d-left-btns .btn-calc-mini,
    .d-left-btns .btn-cal-mini,
    .d-left-btns .code-pill,
    .d-left-btns .d-more > summary {
      padding: 5px 8px;
      font-size: 11.5px;
      min-height: 38px;
    }
    .d-card-foot .cta-btn {
      width: 100%;
      text-align: center;
      justify-content: center;
    }
  }
  .show-all-btn {
    width: 100%;
    background: var(--card);
    color: var(--fg);
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 13.5px;
    font-weight: 800;
    cursor: pointer;
  }

  /* 頁底摺疊工具列（出發前清單、長假期提示） */
  .drawer-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px 14px;
    box-shadow: var(--shadow);
  }
  .drawer-summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-weight: 800;
    font-size: 14px;
    color: var(--fg);
    user-select: none;
  }
  .drawer-summary::-webkit-details-marker { display: none; }
  .drawer-summary::after {
    content: "展開 ▾";
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
    flex-shrink: 0;
  }
  details.drawer-card[open] > .drawer-summary {
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
  }
  details.drawer-card[open] > .drawer-summary::after {
    content: "收起 ▴";
  }
  .drawer-sub {
    font-size: 12.5px;
    color: var(--muted);
    margin: 0 0 10px;
  }
  .holiday-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 8px;
  }
  .footer-note {
    font-size: 11.5px;
    color: var(--muted);
    border-top: 1px solid var(--line);
    padding: 10px 2px 0;
    line-height: 1.5;
  }

  /* 新功能：今個週末去邊（深色夜市配色＋全圓角，唔寫幾多則） */
  .wp-card {
    background: var(--card);
    border: 1.5px solid rgba(242, 184, 75, 0.58);
    border-radius: 16px;
    padding: 14px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .wp-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
  }
  .wp-title {
    margin: 0;
    font-size: 16.5px;
    font-weight: 900;
    color: var(--fg);
    line-height: 1.25;
  }
  .wp-sub {
    margin: 3px 0 0;
    font-size: 12px;
    color: var(--muted);
    font-weight: 600;
  }
  .wp-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  .wp-lbl {
    font-size: 12px;
    font-weight: 800;
    color: var(--gold);
  }
  .wp-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
  }
  .wp-pill {
    background: var(--bg);
    color: var(--fg);
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
  }
  .wp-pill.active {
    background: var(--gold);
    color: var(--bg);
    border-color: var(--gold);
    font-weight: 900;
  }
  .wp-date-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg);
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
  }
  .wp-date-input {
    background: transparent;
    border: 0;
    color: var(--fg);
    font-size: 12.5px;
    font-weight: 700;
    border-radius: 8px;
    outline: none;
    cursor: pointer;
  }
  .wp-results {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 4px;
    border-top: 1px solid var(--line);
  }
  .wp-item {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  .wp-photo {
    position: relative;
    display: block;
    width: calc(100% - 16px);
    margin: 8px 8px 0;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 12px;
    background: var(--card);
    text-decoration: none;
  }
  .wp-photo::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 46%;
    background: linear-gradient(to top, rgba(17, 19, 23, 0.65), transparent);
    pointer-events: none;
  }
  .wp-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    border-radius: 12px;
    display: block;
  }
  .wp-photo .d-price-val {
    position: absolute;
    left: 10px;
    bottom: 10px;
    z-index: 1;
    font-size: 20px;
    padding: 4px 10px;
    box-shadow: 0 2px 8px rgba(17, 19, 23, 0.45);
  }
  .wp-item-body {
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  .wp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
  }
  .wp-type-badge {
    background: var(--card);
    color: var(--gold);
    border: 1px solid rgba(242, 184, 75, 0.55);
    border-radius: 8px;
    padding: 2px 8px;
    font-size: 11.5px;
    font-weight: 800;
    white-space: nowrap;
  }
  .wp-sc-badge {
    background: var(--card);
    color: var(--fg);
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    padding: 2px 8px;
    font-size: 11.5px;
    font-weight: 700;
  }
  .wp-item-title {
    margin: 0;
    font-size: 15.5px;
    font-weight: 900;
    color: var(--fg);
    line-height: 1.3;
  }
  .wp-item-note {
    margin: 0;
    font-size: 12.5px;
    color: var(--muted);
    font-weight: 500;
  }
  .wp-item-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-top: 2px;
  }
  .wp-empty {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px 12px;
    text-align: center;
    font-size: 13px;
    color: var(--muted);
    font-weight: 700;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  /* 新功能：快閃開搶頂部提醒列及「開搶提我」圓角掣 */
  .d-flash-bar {
    margin: 10px 10px 0;
    padding: 8px 10px;
    background: var(--bg);
    border: 1px solid rgba(242, 184, 75, 0.65);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
  }
  .d-flash-time {
    font-size: 12.5px;
    font-weight: 800;
    color: var(--gold);
    line-height: 1.3;
  }
  .d-flash-btns {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
  }
  .btn-cal-mini {
    background: rgba(242, 184, 75, 0.12);
    color: var(--gold);
    border: 1px solid rgba(242, 184, 75, 0.65);
    border-radius: 10px;
    padding: 6px 12px;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
  }
  .btn-cal-mini:hover {
    background: rgba(242, 184, 75, 0.22);
    border-color: var(--gold);
  }
  .btn-cal-mini.done {
    background: var(--gold);
    color: var(--bg);
    border-color: var(--gold);
  }

  @media (max-width: 480px) {
    .d-more[open] ~ .cta-btn { width: 100%; }
  }

  /* 廣告位（圓角框，深色夜市配色） */
  .ad-slot {
    background: var(--card);
    border: 1.5px solid rgba(242, 184, 75, 0.35);
    border-radius: 16px;
    padding: 12px 14px;
    box-shadow: var(--shadow);
    text-align: center;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .ad-slot.inset {
    margin: 0 -2px;
  }
  .ad-label {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }
  .ad-placeholder {
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
  }
  .ad-slot ins {
    display: block;
    width: 100%;
    min-height: 90px;
  }

  /* 信用卡揀卡功能 */
  .card-selector {
    background: var(--card);
    border: 1.5px solid rgba(242, 184, 75, 0.58);
    border-radius: 16px;
    padding: 14px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .cs-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }
  .cs-title {
    margin: 0;
    font-size: 16.5px;
    font-weight: 900;
    color: var(--fg);
    line-height: 1.25;
  }
  .cs-sub {
    margin: 3px 0 0;
    font-size: 12px;
    color: var(--muted);
    font-weight: 600;
  }
  .cs-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
  }
  .cs-pill {
    background: var(--bg);
    color: var(--fg);
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    padding: 8px 14px;
    font-size: 13.5px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
  }
  .cs-pill.active {
    background: var(--gold);
    color: var(--bg);
    border-color: var(--gold);
    font-weight: 900;
  }
  .cs-pill.unverified {
    position: relative;
  }
  .cs-pill.unverified::after {
    content: " 未核實";
    font-size: 11px;
    font-weight: 700;
    color: var(--gold);
    margin-left: 4px;
  }
  .cs-clear {
    background: transparent;
    color: var(--muted);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 4px 10px;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
  }
  .cs-clear:hover {
    color: var(--fg);
    border-color: var(--line-strong);
  }
  /* 圖片載入淡入效果 */
  img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease-out;
  }
  img[loading="lazy"].loaded {
    opacity: 1;
  }

  /* 手機版 Sticky CTA：只在展開詳情時留底距，未展開唔留黑洞 */
  @media (max-width: 480px) {
    .deal-card:has(details[open] .d-foot) {
      position: relative;
      padding-bottom: 60px;
    }
    .deal-card details[open] .d-foot {
      position: sticky;
      bottom: 0;
      background: var(--card);
      border-top: 1px solid var(--line);
      padding: 12px 14px;
      margin: 0 -14px -14px;
      padding-left: 14px;
      padding-right: 14px;
      z-index: 10;
      box-shadow: 0 -4px 12px rgba(17,19,23,0.3);
    }
  }

  .cs-hint {
    font-size: 11.5px;
    color: var(--muted);
    font-weight: 600;
  }

  /* UX 2026-11-26：觸控掣加大（最少 40px 高，圓角不變） */
  .f-tab, .cs-pill, .wp-pill, .sec-btn, .cs-clear {
    min-height: 40px;
  }

  /* UX 2026-11-26：浮動「↑ 頂」掣（右下避開細屏卡底最左掣，隱藏時 visibility:hidden） */
  .float-top {
    position: fixed;
    right: 14px;
    left: auto;
    bottom: 18px;
    z-index: 90;
    min-height: 40px;
    padding: 8px 14px;
    border: 1.5px solid var(--gold);
    border-radius: 12px;
    background: var(--card);
    color: var(--gold);
    font-size: 13px;
    font-weight: 800;
    box-shadow: var(--shadow);
    cursor: pointer;
    touch-action: manipulation;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
  }
  .float-top.show {
    opacity: 1;
    visibility: visible;
  }

  /* 二層細類／三層細標籤列與生活快篩膠囊（全圓角，單列可橫掃，緊湊間距） */
  .sub-cat-bar,
  .sub-tag-bar,
  .quick-tag-bar {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
    margin: 4px 0;
  }
  .sub-cat-bar .f-tab,
  .sub-tag-bar .f-tab,
  .quick-tag-bar .f-tab {
    border-radius: 999px;
    min-height: 40px;
    padding: 5px 11px;
    font-size: 12.5px;
  }
  @media (max-width: 640px) {
    .sub-cat-bar,
    .sub-tag-bar,
    .quick-tag-bar {
      flex-wrap: nowrap;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: none;
      padding-bottom: 2px;
    }
    .sub-cat-bar::-webkit-scrollbar,
    .sub-tag-bar::-webkit-scrollbar,
    .quick-tag-bar::-webkit-scrollbar {
      display: none;
    }
    .sub-cat-bar .f-tab,
    .sub-tag-bar .f-tab,
    .quick-tag-bar .f-tab {
      flex-shrink: 0;
      white-space: nowrap;
    }
  }

  /* 卡面左上角短徽章（2-6 字，全圓角，零則數） */
  .d-card-top-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    margin-bottom: 4px;
  }
  .badge-short {
    display: inline-block;
    background: rgba(242, 184, 75, 0.14);
    color: var(--gold);
    border: 1px solid rgba(242, 184, 75, 0.5);
    border-radius: 999px;
    padding: 3px 9px;
    font-size: 11.5px;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
  }

  .sec-head-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
  }
  .trap-summary-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
  }
  .trap-item {
    background: var(--bg);
    border: 1px solid var(--line);
    border-left: 3px solid var(--gold);
    border-radius: 10px;
    padding: 9px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  .trap-head {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
  }
  .trap-title {
    font-size: 13.5px;
    font-weight: 800;
    color: var(--fg);
  }
  .trap-txt {
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--muted);
    font-weight: 500;
  }

  /* UX 2026-11-26：減少動態（補埋捲動同過渡；走馬燈舊版已有） */
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
      transition-duration: 0.01ms !important;
      animation-duration: 0.01ms !important;
    }
  }
.skip-link:focus { top: 12px; }

  /* 網站頂部分頁導航列（唔洗一頁過：首頁精選 / 本地搵食 / 北上著數 / 出埠旅行 / 工具攻略） */
  .page-nav {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 7px 9px;
    box-shadow: var(--shadow);
  }
  .page-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 40px;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    background: var(--bg);
    color: var(--fg);
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
  }
  .page-tab:hover {
    border-color: var(--gold);
    color: var(--gold);
  }
  .page-tab.active {
    background: var(--gold);
    color: var(--bg);
    border-color: var(--gold);
    font-weight: 900;
  }
  @media (max-width: 640px) {
    .page-nav {
      flex-wrap: nowrap;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: none;
      padding: 6px 8px;
      gap: 6px;
    }
    .page-nav::-webkit-scrollbar { display: none; }
    .page-tab {
      padding: 6px 12px;
      font-size: 12.5px;
    }
  }

  /* 專頁精簡橫幅 */
  .subpage-hero {
    background: radial-gradient(circle at 86% 24%, rgba(242, 184, 75, 0.16) 0%, rgba(27, 31, 38, 0.96) 58%, #151922 100%);
    border: 1.5px solid rgba(242, 184, 75, 0.45);
    border-radius: 16px;
    padding: 15px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: var(--shadow);
  }
  .subpage-hero-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
  }
  .subpage-title {
    margin: 0;
    font-size: 20px;
    font-weight: 900;
    color: var(--fg);
    line-height: 1.25;
  }
  .subpage-desc {
    margin: 4px 0 0;
    font-size: 13px;
    color: var(--muted);
    font-weight: 600;
    line-height: 1.5;
  }
  .subpage-anchors {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }
  .anchor-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--bg);
    border: 1px solid var(--line-strong);
    color: var(--fg);
    text-decoration: none;
    font-size: 12.5px;
    font-weight: 800;
    white-space: nowrap;
  }
  .anchor-pill:hover {
    border-color: var(--gold);
    color: var(--gold);
  }

  /* 卡片清單分頁器（每頁 12 張，全圓角，絕唔寫則數） */
  .pager-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 10px 12px;
    box-shadow: var(--shadow);
  }
  .pager-btn,
  .pager-num {
    min-height: 40px;
    min-width: 40px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    background: var(--bg);
    color: var(--fg);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
  }
  .pager-btn:hover:not(:disabled),
  .pager-num:hover {
    border-color: var(--gold);
    color: var(--gold);
  }
  .pager-btn:disabled {
    opacity: 0.42;
    cursor: not-allowed;
  }
  .pager-num.active,
  .pager-toggle.active {
    background: var(--gold);
    color: var(--bg);
    border-color: var(--gold);
    font-weight: 900;
  }
  .pager-info {
    font-size: 12.5px;
    font-weight: 800;
    color: var(--muted);
    padding: 0 4px;
    white-space: nowrap;
  }
  .pager-toggle {
    border-color: rgba(242, 184, 75, 0.5);
    color: var(--gold);
  }
  @media (max-width: 480px) {
    .pager-bar { gap: 6px; padding: 9px 10px; }
    .pager-btn, .pager-num { min-width: 38px; padding: 6px 10px; font-size: 12.5px; }
  }

  /* 專頁底部互相跳轉導航卡 */
  .cross-nav-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: var(--shadow);
  }
  .cross-nav-title {
    margin: 0;
    font-size: 15px;
    font-weight: 900;
    color: var(--fg);
  }
  .cross-nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .cross-nav-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 7px 14px;
    border-radius: 10px;
    background: var(--bg);
    border: 1px solid var(--line-strong);
    color: var(--fg);
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
  }
  .cross-nav-links a:hover {
    border-color: var(--gold);
    color: var(--gold);
  }

  /* 本月慳錢榜（深色夜市＋全圓角，唔寫則數） */
  .sec-head {
    flex-wrap: wrap;
  }
  .lb-entry-pill {
    border-color: rgba(242, 184, 75, 0.65);
    color: var(--gold);
    min-height: 40px;
  }
  .lb-card {
    background: var(--card);
    border: 1.5px solid rgba(242, 184, 75, 0.58);
    border-radius: 16px;
    padding: 14px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .lb-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
  }
  .lb-title {
    margin: 0;
    font-size: 17px;
    font-weight: 900;
    color: var(--fg);
    line-height: 1.25;
  }
  .lb-sub {
    margin: 3px 0 0;
    font-size: 12px;
    color: var(--muted);
    font-weight: 600;
    line-height: 1.45;
  }
  .lb-cat-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
  }
  .lb-cat-bar .f-tab {
    border-radius: 999px;
    min-height: 40px;
    padding: 6px 12px;
    font-size: 12.5px;
  }
  .lb-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .lb-item {
    background: var(--bg);
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    padding: 13px;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .lb-item-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
  }
  .lb-save-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
  }
  .lb-save-big {
    display: inline-flex;
    align-items: center;
    background: var(--gold);
    color: var(--bg);
    border-radius: 999px;
    padding: 5px 13px;
    font-size: 19px;
    font-weight: 900;
    line-height: 1.15;
    white-space: nowrap;
  }
  .lb-unit-pill {
    display: inline-flex;
    align-items: center;
    background: rgba(242, 184, 75, 0.14);
    color: var(--gold);
    border: 1px solid rgba(242, 184, 75, 0.5);
    border-radius: 999px;
    padding: 3px 9px;
    font-size: 11.5px;
    font-weight: 800;
    white-space: nowrap;
  }
  .lb-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
  }
  .lb-deadline-pill {
    display: inline-flex;
    align-items: center;
    background: var(--card);
    color: var(--muted);
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    padding: 3px 9px;
    font-size: 11.5px;
    font-weight: 700;
    white-space: nowrap;
  }
  .lb-item-title {
    margin: 0;
    font-size: 15px;
    font-weight: 900;
    color: var(--fg);
    line-height: 1.35;
  }
  .lb-prices {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 7px 10px;
    font-size: 13px;
    line-height: 1.4;
  }
  .lb-orig {
    color: var(--muted);
    text-decoration: line-through;
    font-weight: 600;
  }
  .lb-arrow {
    color: var(--gold);
    font-weight: 900;
  }
  .lb-pay {
    color: var(--fg);
    font-weight: 700;
  }
  .lb-pay strong {
    color: var(--gold);
    font-weight: 900;
  }
  .lb-note {
    margin: 0;
    font-size: 12.5px;
    color: var(--muted);
    line-height: 1.5;
    font-weight: 500;
  }
  .lb-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    padding-top: 2px;
  }
  .lb-cta {
    border-radius: 999px;
    min-height: 40px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .lb-empty {
    background: var(--bg);
    border: 1px dashed var(--line-strong);
    border-radius: 14px;
    padding: 14px;
    font-size: 13px;
    color: var(--muted);
    font-weight: 600;
    line-height: 1.55;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .lb-empty-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
  }
  @media (max-width: 640px) {
    .lb-cat-bar {
      flex-wrap: nowrap;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: none;
      padding-bottom: 2px;
    }
    .lb-cat-bar::-webkit-scrollbar {
      display: none;
    }
    .lb-cat-bar .f-tab {
      flex-shrink: 0;
      white-space: nowrap;
    }
    .lb-save-big {
      font-size: 17px;
      padding: 5px 11px;
    }
  }

  /* 已核實優惠碼精選（深色夜市＋全圓角，唔寫則數） */
  .pc-entry-pill {
    border-color: rgba(242, 184, 75, 0.55);
    color: var(--fg);
    min-height: 40px;
  }
  .pc-card {
    background: var(--card);
    border: 1.5px solid rgba(242, 184, 75, 0.52);
    border-radius: 16px;
    padding: 14px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .pc-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
  }
  .pc-title {
    margin: 0;
    font-size: 17px;
    font-weight: 900;
    color: var(--fg);
    line-height: 1.25;
  }
  .pc-sub {
    margin: 3px 0 0;
    font-size: 12px;
    color: var(--muted);
    font-weight: 600;
    line-height: 1.45;
  }
  .pc-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .pc-item {
    background: var(--bg);
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    padding: 13px;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .pc-item-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
  }
  .pc-code-pill {
    display: inline-flex;
    align-items: center;
    background: var(--gold);
    color: var(--bg);
    border-radius: 999px;
    padding: 5px 13px;
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 0.04em;
    line-height: 1.2;
    white-space: nowrap;
  }
  .pc-item-title {
    margin: 0;
    font-size: 15px;
    font-weight: 900;
    color: var(--fg);
    line-height: 1.35;
  }
  .pc-discount {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 7px 10px;
    font-size: 13.5px;
    font-weight: 800;
    color: var(--gold);
    line-height: 1.45;
  }
  .pc-alert {
    background: rgba(242, 184, 75, 0.12);
    border: 1px solid rgba(242, 184, 75, 0.55);
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--fg);
    line-height: 1.5;
  }
  .pc-terms {
    margin: 0;
    font-size: 12.5px;
    color: var(--muted);
    line-height: 1.5;
    font-weight: 500;
  }
  .pc-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    padding-top: 2px;
  }
  .pc-copy-btn {
    background: var(--card);
    color: var(--gold);
    border: 1px solid rgba(242, 184, 75, 0.65);
    border-radius: 999px;
    min-height: 40px;
    padding: 8px 15px;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
  }
  .pc-copy-btn:hover {
    background: rgba(242, 184, 75, 0.2);
    border-color: var(--gold);
  }
  .pc-cta {
    border-radius: 999px;
    min-height: 40px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .pc-foot-note {
    margin: 2px 0 0;
    font-size: 12.5px;
    color: var(--muted);
    font-weight: 600;
    line-height: 1.45;
  }
