/* ===== 美团优选 · 频道公共组件样式 =====
   左图右文高密度团购清单，参考美团列表信息架构；
   美团黄竖标 + 虚线栏目标头 + 等宽朱红价格做编辑式区分。
   供 hotel.html / scenicList.html / shopping.html 复用（food.html 自带同款内联样式）。 */
.promo-feed {
    --mt-card: #ffffff;
    --mt-ink: #22241c;
    --mt-sub: #8c8574;
    --mt-red: #ef4b23;
    --mt-yellow: #ffd100;
    --mt-gold: #a8781c;
    background: #faf8f3;
    padding: 14px 12px 8px;
    min-height: 100%;
    box-sizing: border-box;
}
.mt-head { display: flex; align-items: center; padding: 2px 2px 9px; }
.mt-head-mark { width: 4px; height: 14px; margin-right: 8px; background: var(--mt-red); }
.mt-head-title {
    font-family: "Songti SC","STSong","Noto Serif CJK SC","SimSun",Georgia,serif;
    font-size: 15px; font-weight: 700; letter-spacing: .04em; color: var(--mt-ink);
}
.mt-head-count { margin-left: auto; font-size: 10px; letter-spacing: .08em; color: var(--mt-sub); }
.mt-head-rule {
    height: 1px; margin-bottom: 11px;
    background: repeating-linear-gradient(90deg, rgba(168,120,40,.45) 0 5px, transparent 5px 9px);
}
.mt-row {
    position: relative; display: flex; box-sizing: border-box; width: 100%;
    margin-bottom: 10px; padding: 11px;
    background: var(--mt-card); border: 1px solid #f0ece3; border-radius: 8px;
    box-shadow: 0 3px 12px rgba(90,70,30,.055); color: var(--mt-ink);
    -webkit-tap-highlight-color: transparent;
    animation: mt-in .46s cubic-bezier(.2,.8,.2,1) both;
    animation-delay: calc(var(--i, 0) * .07s);
}
@keyframes mt-in {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .mt-row { animation: none; } }
.mt-row:active { background: #fffaf0; }
.mt-row:before {
    content: ""; position: absolute; left: 0; top: 14px; bottom: 14px;
    width: 2px; background: var(--mt-yellow); border-radius: 0 2px 2px 0;
}
.mt-cover {
    position: relative; flex: 0 0 104px; width: 104px; height: 104px;
    margin-right: 11px; border-radius: 5px; overflow: hidden; background: #f2efe8;
}
.mt-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mt-cover-badge {
    position: absolute; right: 0; top: 0; padding: 2px 5px;
    background: var(--mt-yellow); color: #3a2c00;
    font-size: 9px; font-weight: 700; letter-spacing: .06em; border-radius: 0 0 0 4px;
}
.mt-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mt-title {
    font-size: 14.5px; font-weight: 700; line-height: 1.36; color: var(--mt-ink);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; margin-bottom: 5px;
}
.mt-rank { display: flex; align-items: center; min-width: 0; margin-bottom: 5px; }
.mt-rank i {
    flex: 0 0 auto; font-style: normal; font-size: 9px; line-height: 1;
    padding: 2px 3px; margin-right: 5px; background: #fff4cf; color: #8a6110;
    border: 1px solid #f0d98a; border-radius: 2px;
}
.mt-rank span {
    font-size: 10.5px; color: var(--mt-gold);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mt-tags { display: flex; flex-wrap: wrap; margin-bottom: 6px; }
.mt-tags span {
    font-size: 9.5px; line-height: 1; padding: 3px 4px; margin: 0 4px 4px 0;
    color: #9a6a1c; border: 1px solid #ecd9ae; border-radius: 2px;
}
.mt-buy { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; }
.mt-price {
    font-family: "DIN Alternate","Bahnschrift","Courier New",monospace;
    font-size: 21px; font-weight: 700; line-height: 1; white-space: nowrap; color: var(--mt-red);
}
.mt-price i { font-size: 12px; font-style: normal; margin-right: 1px; }
.mt-price s {
    font-size: 10.5px; font-weight: 400; margin-left: 6px;
    color: var(--mt-sub); text-decoration: line-through;
}
.mt-price-none { font-size: 12px; color: var(--mt-gold); }
.mt-cta {
    flex: 0 0 auto; display: inline-flex; align-items: center; padding: 6px 10px;
    border-radius: 3px; background: var(--mt-red); color: #fff;
    font-size: 11px; font-weight: 600; letter-spacing: .03em;
    box-shadow: 0 2px 6px rgba(239,75,35,.22);
}
.mt-cta i { font-style: normal; font-size: 14px; margin-left: 3px; transition: transform .25s ease; }
.mt-row:active .mt-cta i { transform: translateX(2px); }
.mt-foot { text-align: center; padding: 8px 0 4px; font-size: 10px; letter-spacing: .06em; color: var(--mt-sub); }
.mt-empty { text-align: center; padding: 70px 0; font-size: 13px; color: var(--mt-sub); }

/* 新增页签在三种不同 tab 结构里的通用强调色 */
.promo-tab-active { color: #e8a317 !important; }
.promo-tab-active > p { color: #e8a317 !important; }

/* ===== 美团优选 · 渠道入口券带 =====
   它不是第 N 个分类筛选，而是与「站内自营」并列的另一条购买渠道，
   所以从分类栏里抽出来独立成带：暖黄券面 + 朱红印章 + 底部刻度虚线，
   延续票根卡 / 栏目标头的票据语言，与白底页面形成明确层级。 */
.promo-entry {
    --pe-ink: #3a2a08;
    --pe-sub: #8a6a22;
    --pe-red: #d6411a;
    --pe-line: #e0be6a;
    position: relative;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    flex: 0 0 auto;
    width: calc(100% - 24px);
    margin: 10px 12px 8px;
    padding: 10px 11px;
    border: 1px solid var(--pe-line);
    border-radius: 7px;
    background: linear-gradient(110deg, #fff6dc 0%, #ffe9ad 66%, #ffd76e 100%);
    box-shadow: 0 5px 16px rgba(150,100,20,.18), inset 0 1px 0 rgba(255,255,255,.7);
    color: var(--pe-ink);
    overflow: hidden;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    animation: pe-appear .55s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes pe-appear {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: none; }
}
/* 柔光扫过：只做一次高光时刻，不常驻晃动 */
.promo-entry::before {
    content: "";
    position: absolute;
    top: 0; bottom: 0; left: 0;
    width: 42%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent);
    transform: translateX(-170%) skewX(-18deg);
    animation: pe-sheen 4.2s ease-in-out infinite;
    pointer-events: none;
}
@keyframes pe-sheen {
    0%, 58% { transform: translateX(-170%) skewX(-18deg); }
    100%    { transform: translateX(340%) skewX(-18deg); }
}
/* 底部票据刻度虚线 */
.promo-entry::after {
    content: "";
    position: absolute;
    left: 10px; right: 10px; bottom: 0;
    height: 1px;
    background: repeating-linear-gradient(90deg, rgba(168,120,40,.42) 0 5px, transparent 5px 9px);
    pointer-events: none;
}
.pe-seal {
    flex: 0 0 42px;
    width: 42px; height: 42px;
    margin-right: 11px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--pe-red);
    color: #fff6dc;
    font-family: "Songti SC","STSong","Noto Serif CJK SC","SimSun",Georgia,serif;
    font-size: 19px;
    font-weight: 700;
    line-height: 1;
    box-shadow: inset 0 0 0 2px rgba(255,246,220,.5), 0 3px 7px rgba(160,50,10,.26);
    animation: pe-pulse 2.8s ease-in-out infinite;
}
@keyframes pe-pulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.05); }
}
.pe-body { flex: 1; min-width: 0; }
.pe-title {
    display: flex;
    align-items: baseline;
    font-family: "Songti SC","STSong","Noto Serif CJK SC","SimSun",Georgia,serif;
    font-size: 16.5px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: .04em;
    color: var(--pe-ink);
    white-space: nowrap;
}
.pe-count {
    margin-left: 7px;
    padding: 1px 6px;
    border-radius: 8px;
    background: var(--pe-red);
    color: #fff;
    font-family: "DIN Alternate","Bahnschrift","Courier New",monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0;
    white-space: nowrap;
}
.pe-sub {
    display: block;
    margin-top: 3px;
    font-size: 10.5px;
    letter-spacing: .05em;
    color: var(--pe-sub);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pe-cta {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    margin-left: 9px;
    padding: 7px 11px;
    border-radius: 4px;
    background: var(--pe-red);
    color: #fff;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .03em;
    box-shadow: 0 3px 8px rgba(214,65,26,.26);
    white-space: nowrap;
}
.pe-cta i {
    font-style: normal;
    font-size: 15px;
    line-height: 1;
    margin-left: 3px;
    transition: transform .25s ease;
}
.promo-entry:active .pe-cta i { transform: translateX(3px); }

/* 已进入推广频道：券带降饱和，文案与 CTA 变成「返回站内」 */
.promo-entry.is-active {
    background: linear-gradient(110deg, #fff9ec 0%, #ffefcb 100%);
    border-color: #e6cd92;
    box-shadow: 0 3px 10px rgba(150,100,20,.1), inset 0 1px 0 rgba(255,255,255,.7);
}
.promo-entry.is-active::before,
.promo-entry.is-active .pe-seal { animation: none; }
.promo-entry.is-active .pe-seal { background: #8a6a22; box-shadow: inset 0 0 0 2px rgba(255,246,220,.35); }
.promo-entry.is-active .pe-cta { background: #3a2a08; box-shadow: none; }

@media (prefers-reduced-motion: reduce) {
    .promo-entry, .promo-entry::before, .pe-seal { animation: none; }
    .promo-entry::before { opacity: 0; }
}

/* 页签次级入口：在不入侵三种 tab 结构的前提下做品牌化 */
[data-promo-entry] { position: relative; color: #b8790d !important; font-weight: 700; }
[data-promo-entry] > p { color: #b8790d !important; font-weight: 700; }
