/*
 * 富易付专题页统一响应式层
 * 适用于：油站、棋牌茶室、美业、儿童场馆。
 * 本文件必须在各专题自身 CSS 与 topic-common.css 之后加载。
 */

:root {
    --topic-gutter: clamp(16px, 3.2vw, 48px);
    --topic-shell-max: 1440px;
    --topic-section-space: clamp(56px, 7vw, 108px);
    --topic-card-gap: clamp(10px, 1.45vw, 22px);
    --topic-header-height: 0px;
}

/* 2026-08-13 餐饮专题：移动端 Safari 场景卡片最终覆盖 */
@media screen and (max-width: 820px) {
    html body .dining-scenes .dining-scenes__grid > article {
        position: relative !important;
        min-height: 0 !important;
        height: auto !important;
        aspect-ratio: 4 / 5 !important;
        overflow: hidden !important;
    }

    html body .dining-scenes .dining-scenes__grid > article > img {
        position: absolute !important;
        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center center !important;
        z-index: 0 !important;
    }

    html body .dining-scenes .dining-scenes__grid > article::after {
        content: "" !important;
        position: absolute !important;
        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        display: block !important;
        background: rgba(1, 14, 13, 0.46) !important;
        z-index: 1 !important;
        pointer-events: none !important;
    }

    html body .dining-scenes .dining-scenes__grid > article > .dining-scenes__content {
        position: absolute !important;
        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        margin: 0 !important;
        padding: 18px 12px !important;
        box-sizing: border-box !important;
        display: -webkit-box !important;
        display: -webkit-flex !important;
        display: flex !important;
        -webkit-box-orient: vertical !important;
        -webkit-box-direction: normal !important;
        -webkit-flex-direction: column !important;
        flex-direction: column !important;
        -webkit-box-align: center !important;
        -webkit-align-items: center !important;
        align-items: center !important;
        -webkit-box-pack: center !important;
        -webkit-justify-content: center !important;
        justify-content: center !important;
        text-align: center !important;
        transform: none !important;
        z-index: 2 !important;
    }

    html body .dining-scenes .dining-scenes__content > h3,
    html body .dining-scenes .dining-scenes__content > p {
        position: static !important;
        width: 100% !important;
        max-width: 100% !important;
        text-align: center !important;
        transform: none !important;
    }

    html body .dining-scenes .dining-scenes__content > h3 {
        margin: 0 0 8px !important;
        color: #fff !important;
        font-size: clamp(16px, 4vw, 20px) !important;
        font-weight: 800 !important;
        line-height: 1.25 !important;
    }

    html body .dining-scenes .dining-scenes__content > p {
        margin: 0 auto !important;
        color: rgba(255, 255, 255, 0.9) !important;
        font-size: 12px !important;
        line-height: 1.55 !important;
    }
}

@supports not (aspect-ratio: 4 / 5) {
    @media screen and (max-width: 820px) {
        html body .dining-scenes .dining-scenes__grid > article {
            height: 280px !important;
        }
    }
}

/* 2026-08-13：餐饮专题移动端 / Safari 场景卡片最终居中修正 */
@media screen and (max-width: 820px) {
    html body .dining-scenes .dining-scenes__grid > article {
        position: relative !important;
        min-height: 0 !important;
        height: auto !important;
        aspect-ratio: 4 / 5 !important;
        overflow: hidden !important;
    }

    html body .dining-scenes .dining-scenes__grid > article::after {
        background: rgba(1, 14, 13, .5) !important;
    }

    html body .dining-scenes .dining-scenes__grid > article > .dining-scenes__content {
        position: absolute !important;
        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        z-index: 3 !important;
        width: 100% !important;
        height: 100% !important;
        margin: 0 !important;
        padding: 14px 10px !important;
        box-sizing: border-box !important;
        display: -webkit-flex !important;
        display: flex !important;
        -webkit-flex-direction: column !important;
        flex-direction: column !important;
        -webkit-align-items: center !important;
        align-items: center !important;
        -webkit-justify-content: center !important;
        justify-content: center !important;
        text-align: center !important;
        -webkit-transform: none !important;
        transform: none !important;
    }

    html body .dining-scenes .dining-scenes__grid > article > .dining-scenes__content h3,
    html body .dining-scenes .dining-scenes__grid > article > .dining-scenes__content p {
        position: static !important;
        width: 100% !important;
        max-width: 100% !important;
        text-align: center !important;
        -webkit-transform: none !important;
        transform: none !important;
    }

    html body .dining-scenes .dining-scenes__grid > article > .dining-scenes__content h3 {
        margin: 0 0 7px !important;
        font-size: clamp(16px, 4vw, 20px) !important;
        line-height: 1.28 !important;
        font-weight: 800 !important;
    }

    html body .dining-scenes .dining-scenes__grid > article > .dining-scenes__content p {
        margin: 0 auto !important;
        font-size: 12px !important;
        line-height: 1.5 !important;
    }
}

@supports not (aspect-ratio: 4 / 5) {
    @media screen and (max-width: 820px) {
        html body .dining-scenes .dining-scenes__grid > article {
            height: 280px !important;
        }
    }
}

/* 2026-08-12: Safari 专题导航与场景卡片统一 */
.topic-local-nav {
  -webkit-overflow-scrolling: touch !important;
  overscroll-behavior-x: contain;
}

.topic-local-nav__inner {
  display: -webkit-box !important;
  display: -ms-flexbox !important;
  display: flex !important;
  -webkit-box-align: stretch !important;
  -ms-flex-align: stretch !important;
  align-items: stretch !important;
  -webkit-box-pack: center !important;
  -ms-flex-pack: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  width: auto !important;
  min-width: 100% !important;
  max-width: none !important;
  margin: 0 auto !important;
  padding-right: 16px !important;
  padding-left: 16px !important;
  gap: 0 !important;
}

.topic-local-nav a {
  display: -webkit-box !important;
  display: -ms-flexbox !important;
  display: flex !important;
  -webkit-box-align: center !important;
  -ms-flex-align: center !important;
  align-items: center !important;
  -webkit-box-pack: center !important;
  -ms-flex-pack: center !important;
  justify-content: center !important;
  -webkit-box-flex: 0 !important;
  -ms-flex: 0 0 auto !important;
  flex: 0 0 auto !important;
  box-sizing: border-box !important;
  min-width: auto !important;
  margin: 0 !important;
  padding: 20px 15px !important;
  white-space: nowrap !important;
}

.topic-local-nav a + a {
  margin-left: 8px !important;
}

.gas-scenes__grid--cover article,
.chess-scenes__grid article,
.beauty-scenes__grid article,
.kids-scenes__grid--cover article,
.dining-scenes__grid article {
  position: relative !important;
  z-index: 0 !important;
  overflow: hidden !important;
  isolation: isolate;
}

.gas-scenes__grid--cover article::after,
.chess-scenes__grid article::after,
.beauty-scenes__grid article::after,
.kids-scenes__grid--cover article::after,
.dining-scenes__grid article::after {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  z-index: 1 !important;
  pointer-events: none !important;
  background: -webkit-linear-gradient(top, rgba(2, 20, 18, 0.74), rgba(2, 16, 14, 0.92)) !important;
  background: linear-gradient(180deg, rgba(2, 20, 18, 0.74), rgba(2, 16, 14, 0.92)) !important;
}

.gas-scenes__grid--cover article > img,
.chess-scenes__grid article > img,
.beauty-scenes__grid article > img,
.kids-scenes__grid--cover article > img,
.dining-scenes__grid article > img {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  z-index: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  object-fit: cover !important;
  object-position: center !important;
}

.gas-scenes__content,
.chess-scenes__content,
.beauty-scenes__content,
.kids-scenes__grid--cover article > div,
.dining-scenes__content {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  z-index: 2 !important;
  box-sizing: border-box !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: clamp(18px, 3vw, 42px) !important;
  display: -webkit-box !important;
  display: -ms-flexbox !important;
  display: flex !important;
  -webkit-box-orient: vertical !important;
  -webkit-box-direction: normal !important;
  -ms-flex-direction: column !important;
  flex-direction: column !important;
  -webkit-box-pack: center !important;
  -ms-flex-pack: center !important;
  justify-content: center !important;
  -webkit-box-align: center !important;
  -ms-flex-align: center !important;
  align-items: center !important;
  -webkit-transform: none !important;
  transform: none !important;
  text-align: center !important;
  opacity: 1 !important;
  visibility: visible !important;
  color: #fff !important;
}

.gas-scenes__content h3,
.chess-scenes__content h3,
.beauty-scenes__content h3,
.kids-scenes__grid--cover article > div h3,
.dining-scenes__content h3 {
  width: 100% !important;
  margin: 0 !important;
  color: #fff !important;
  font-weight: 800 !important;
  text-align: center !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.58) !important;
}

.gas-scenes__content p,
.chess-scenes__content p,
.beauty-scenes__content p,
.kids-scenes__grid--cover article > div p,
.dining-scenes__content p {
  width: 100% !important;
  margin: 12px 0 0 !important;
  color: rgba(255, 255, 255, 0.9) !important;
  text-align: center !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.62) !important;
}

@media (max-width: 820px) {
  .topic-local-nav__inner {
    -webkit-box-pack: start !important;
    -ms-flex-pack: start !important;
    justify-content: flex-start !important;
    width: -webkit-max-content !important;
    width: max-content !important;
    min-width: -webkit-max-content !important;
    min-width: max-content !important;
  }

  .topic-local-nav a {
    padding: 17px 13px !important;
  }

  .topic-local-nav a + a {
    margin-left: 4px !important;
  }

  .gas-scenes__content,
  .chess-scenes__content,
  .beauty-scenes__content,
  .kids-scenes__grid--cover article > div,
  .dining-scenes__content {
    padding: 14px !important;
  }

  .gas-scenes__content h3,
  .chess-scenes__content h3,
  .beauty-scenes__content h3,
  .kids-scenes__grid--cover article > div h3,
  .dining-scenes__content h3 {
    font-size: 17px !important;
    line-height: 1.35 !important;
  }

  .gas-scenes__content p,
  .chess-scenes__content p,
  .beauty-scenes__content p,
  .kids-scenes__grid--cover article > div p,
  .dining-scenes__content p {
    margin-top: 8px !important;
    font-size: 12px !important;
    line-height: 1.55 !important;
  }
}

:is(.gas-page, .chess-page, .beauty-page, .kids-page, .dining-page) {
    /* Safari requires every sticky ancestor to keep overflow visible. */
    overflow: visible !important;
}

:is(.gas-shell, .chess-shell, .beauty-shell, .kids-shell) {
    width: min(calc(100% - (var(--topic-gutter) * 2)), var(--topic-shell-max));
    margin-inline: auto;
}

:is(.gas-section, .chess-section, .beauty-section, .kids-section) {
    padding-block: var(--topic-section-space);
    scroll-margin-top: calc(var(--topic-header-height) + 76px);
}

:is(.gas-section__head, .chess-section__head, .beauty-section__head, .kids-section__head) {
    margin-bottom: clamp(30px, 4vw, 54px);
}

:is(.gas-section__head, .chess-section__head, .beauty-section__head, .kids-section__head) h2 {
    font-size: clamp(30px, 4.15vw, 60px);
    line-height: 1.16;
    text-wrap: balance;
}

:is(.gas-section__head, .chess-section__head, .beauty-section__head, .kids-section__head) p {
    font-size: clamp(14px, 1.25vw, 17px);
    line-height: 1.78;
    text-wrap: pretty;
}

/* 首屏随视口平滑缩放，避免手机首屏过高。 */
:is(.gas-hero, .chess-hero, .beauty-hero, .kids-hero) {
    min-height: clamp(540px, 72svh, 760px);
}

:is(.gas-hero__inner, .chess-hero__inner, .beauty-hero__inner, .kids-hero__inner) {
    padding-block: clamp(52px, 8vh, 94px);
}

:is(.gas-hero h1, .chess-hero h1, .beauty-hero h1, .kids-hero h1) {
    font-size: clamp(40px, 5.1vw, 76px);
    line-height: 1.1;
    text-wrap: balance;
}

:is(.gas-hero__copy > p, .chess-hero__copy > p, .beauty-hero__copy > p, .kids-hero__copy > p) {
    font-size: clamp(15px, 1.35vw, 18px);
    line-height: 1.75;
}

/* 专题锚点导航：桌面居中，窄屏可横向滑动，当前区域显示绿线。 */
:is(.gas-local-nav, .chess-local-nav, .beauty-local-nav, .kids-local-nav) {
    top: var(--topic-header-height);
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
}

:is(.gas-local-nav, .chess-local-nav, .beauty-local-nav, .kids-local-nav) > :is(.gas-shell, .chess-shell, .beauty-shell, .kids-shell) {
    scrollbar-width: none;
}

:is(.gas-local-nav, .chess-local-nav, .beauty-local-nav, .kids-local-nav) a {
    flex: 0 0 auto;
    scroll-snap-align: center;
}

:is(.gas-local-nav, .chess-local-nav, .beauty-local-nav, .kids-local-nav) a::after {
    transform-origin: center;
}

/* 图片永远填满自身媒体框，避免后台原图比例不一致产生留白。 */
:is(.gas-page, .chess-page, .beauty-page, .kids-page) :is(article, figure, a)[class*="cover"] > img,
:is(.gas-page, .chess-page, .beauty-page, .kids-page) :is([class*="scenes__grid"], [class*="news__grid"]) article > img,
:is(.gas-page, .chess-page, .beauty-page, .kids-page) :is([class*="news__cover"], [class*="scene__media"]) img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 卡片交互仅在支持鼠标悬停的设备启用。 */
@media (hover: hover) and (pointer: fine) {
    :is(.gas-page, .chess-page, .beauty-page, .kids-page) article {
        transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
    }

    :is(.gas-page, .chess-page, .beauty-page, .kids-page) article:hover {
        transform: translateY(-4px);
    }
}

/* JS 成功启动后才启用进入动效，禁用 JS 时内容始终可见。 */
.topic-motion-ready .topic-reveal {
    opacity: 0;
    transform: translate3d(0, 24px, 0);
    transition:
        opacity .62s cubic-bezier(.2, .7, .25, 1),
        transform .62s cubic-bezier(.2, .7, .25, 1);
    transition-delay: var(--topic-reveal-delay, 0ms);
    will-change: opacity, transform;
}

.topic-motion-ready .topic-reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (max-width: 1100px) {
    :root {
        --topic-shell-max: 960px;
        --topic-section-space: clamp(58px, 7vw, 84px);
    }

    :is(.gas-hero__copy, .chess-hero__copy, .beauty-hero__copy, .kids-hero__copy) {
        width: min(720px, 72%);
    }
}

@media (max-width: 820px) {
    :root {
        --topic-gutter: clamp(16px, 4vw, 28px);
        --topic-section-space: clamp(48px, 8vw, 68px);
    }

    :is(.gas-hero, .chess-hero, .beauty-hero, .kids-hero) {
        min-height: clamp(500px, 66svh, 620px);
    }

    :is(.gas-hero__copy, .chess-hero__copy, .beauty-hero__copy, .kids-hero__copy) {
        width: min(650px, 86%);
    }

    :is(.gas-local-nav, .chess-local-nav, .beauty-local-nav, .kids-local-nav) {
        scroll-snap-type: x proximity;
    }

    :is(.gas-local-nav, .chess-local-nav, .beauty-local-nav, .kids-local-nav) > :is(.gas-shell, .chess-shell, .beauty-shell, .kids-shell) {
        width: max-content;
        min-width: 100%;
        justify-content: flex-start;
        padding-inline: max(6px, calc((100vw - min(100vw, var(--topic-shell-max))) / 2));
    }

    :is(.gas-local-nav, .chess-local-nav, .beauty-local-nav, .kids-local-nav) a {
        min-height: 54px;
        padding: 17px 15px;
        font-size: 13px;
    }

    :is(.gas-section__head, .chess-section__head, .beauty-section__head, .kids-section__head) {
        margin-bottom: 30px;
    }

    :is(.gas-section__head, .chess-section__head, .beauty-section__head, .kids-section__head) h2 {
        font-size: clamp(30px, 7vw, 44px);
    }
}

@media (max-width: 560px) {
    :root {
        --topic-gutter: 16px;
        --topic-section-space: 48px;
        --topic-card-gap: 10px;
    }

    :is(.gas-hero, .chess-hero, .beauty-hero, .kids-hero) {
        min-height: min(560px, 64svh);
    }

    :is(.gas-hero__inner, .chess-hero__inner, .beauty-hero__inner, .kids-hero__inner) {
        padding-block: 42px;
    }

    :is(.gas-hero__copy, .chess-hero__copy, .beauty-hero__copy, .kids-hero__copy) {
        width: 100%;
    }

    :is(.gas-hero h1, .chess-hero h1, .beauty-hero h1, .kids-hero h1) {
        font-size: clamp(34px, 10.4vw, 48px);
        letter-spacing: -.035em;
    }

    :is(.gas-hero__actions, .chess-hero__actions, .beauty-hero__actions, .kids-hero__actions) {
        gap: 10px;
        margin-top: 24px;
    }

    :is(.gas-hero__signals, .chess-hero__signals, .beauty-hero__signals, .kids-hero__signals) {
        gap: 10px 14px;
        margin-top: 22px;
    }

    :is(.gas-local-nav, .chess-local-nav, .beauty-local-nav, .kids-local-nav) a {
        min-height: 50px;
        padding: 15px 13px;
        font-size: 12px;
    }

    :is(.gas-section__head, .chess-section__head, .beauty-section__head, .kids-section__head) h2 {
        font-size: clamp(28px, 8.5vw, 38px);
        line-height: 1.2;
    }

    :is(.gas-section__head, .chess-section__head, .beauty-section__head, .kids-section__head) p {
        margin-top: 14px;
        font-size: 14px;
        line-height: 1.7;
    }

    :is(.gas-cta, .chess-cta, .beauty-cta, .kids-cta) {
        padding-block: 54px;
    }
}

@media (max-width: 370px) {
    :root { --topic-gutter: 12px; }

    :is(.gas-local-nav, .chess-local-nav, .beauty-local-nav, .kids-local-nav) a {
        padding-inline: 11px;
        font-size: 11px;
    }

    :is(.gas-hero h1, .chess-hero h1, .beauty-hero h1, .kids-hero h1) {
        font-size: 32px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .topic-motion-ready .topic-reveal,
    .topic-motion-ready .topic-reveal.is-visible {
        opacity: 1;
        transform: none;
        transition: none;
    }

    :is(.gas-page, .chess-page, .beauty-page, .kids-page) *,
    :is(.gas-page, .chess-page, .beauty-page, .kids-page) *::before,
    :is(.gas-page, .chess-page, .beauty-page, .kids-page) *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

/* Shared topic hero/banner and local navigation
 * Topic-specific styles keep ownership of the background, gradient and colors;
 * this layer only standardizes geometry, rhythm and Safari-safe sticky behavior.
 */
.topic-hero {
    --topic-hero-pad-top: clamp(72px, 8vw, 112px);
    --topic-hero-pad-bottom: clamp(72px, 8vw, 112px);
    position: relative !important;
    isolation: isolate;
    display: flex !important;
    align-items: center !important;
    min-height: 620px !important;
    min-height: clamp(540px, 72vh, 760px) !important;
    min-height: clamp(540px, 72svh, 760px) !important;
    overflow: hidden !important;
    color: #fff;
}

.topic-hero__media,
.topic-hero__shade {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
}

.topic-hero__media {
    z-index: 0 !important;
    object-fit: cover !important;
    object-position: center !important;
}

.topic-hero__shade {
    z-index: 1 !important;
    pointer-events: none;
}

.topic-hero__inner {
    position: relative !important;
    z-index: 2 !important;
    display: flex !important;
    align-items: center !important;
    box-sizing: border-box;
    width: min(calc(100% - (var(--topic-gutter) * 2)), var(--topic-shell-max)) !important;
    max-width: var(--topic-shell-max) !important;
    min-height: inherit !important;
    margin: 0 auto !important;
    padding: var(--topic-hero-pad-top) 0 var(--topic-hero-pad-bottom) !important;
}

.topic-hero__copy {
    width: min(780px, 68%) !important;
    max-width: 780px !important;
    text-align: left !important;
}

.topic-hero__eyebrow {
    display: flex !important;
    align-items: center;
    gap: 14px;
}

.topic-hero h1 {
    margin: 20px 0 0 !important;
    font-size: clamp(44px, 4.4vw, 68px) !important;
    line-height: 1.12 !important;
    text-wrap: balance;
}

.topic-hero__copy > p {
    margin: 22px 0 0 !important;
    font-size: clamp(16px, 1.35vw, 19px) !important;
    line-height: 1.75 !important;
}

.topic-hero__actions {
    display: flex !important;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 30px !important;
}

.topic-hero__button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 56px;
    padding: 14px 28px !important;
    border-radius: 999px;
    text-align: center;
}

.topic-hero__signals {
    display: flex !important;
    flex-wrap: wrap;
    gap: 12px 24px;
    margin: 28px 0 0 !important;
    padding: 0 !important;
    list-style: none;
}

.topic-local-nav {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: var(--topic-header-height, 0px) !important;
    z-index: 85 !important;
    box-sizing: border-box;
    width: 100% !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    background: #fff !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
}

.topic-local-nav::-webkit-scrollbar,
.topic-local-nav__inner::-webkit-scrollbar {
    display: none;
}

.topic-local-nav__inner {
    display: flex !important;
    align-items: stretch !important;
    justify-content: center !important;
    box-sizing: border-box;
    width: max-content !important;
    min-width: 100% !important;
    max-width: none !important;
    margin: 0 auto !important;
    padding: 0 max(var(--topic-gutter), 16px) !important;
}

.topic-local-nav a {
    flex: 0 0 auto;
    white-space: nowrap;
}

@media (max-width: 1100px) {
    .topic-hero__copy {
        width: min(780px, 74%) !important;
    }
}

@media (max-width: 820px) {
    .topic-hero {
        --topic-hero-pad-top: clamp(42px, 6vw, 54px);
        --topic-hero-pad-bottom: clamp(38px, 5.5vw, 50px);
        min-height: 0 !important;
    }

    .topic-hero__inner {
        min-height: 0 !important;
        padding: var(--topic-hero-pad-top) 0 var(--topic-hero-pad-bottom) !important;
    }

    .topic-hero__copy {
        width: 100% !important;
        max-width: 650px !important;
    }

    .topic-hero h1 {
        font-size: clamp(38px, 7.4vw, 52px) !important;
    }

    .topic-local-nav__inner {
        justify-content: flex-start !important;
        min-width: max-content !important;
        padding-right: 16px !important;
        padding-left: 16px !important;
    }

    .topic-local-nav a {
        box-sizing: border-box;
        min-height: 54px;
        padding: 17px 14px !important;
        font-size: 13px !important;
    }
}

@media (max-width: 560px) {
    .topic-hero {
        --topic-hero-pad-top: 32px;
        --topic-hero-pad-bottom: 34px;
    }

    .topic-hero__inner {
        min-height: 0 !important;
        padding: var(--topic-hero-pad-top) 0 var(--topic-hero-pad-bottom) !important;
    }

    .topic-hero h1 {
        margin-top: 16px !important;
        font-size: clamp(32px, 10vw, 42px) !important;
    }

    .topic-hero__copy > p {
        margin-top: 16px !important;
        font-size: 14px !important;
        line-height: 1.68 !important;
    }

    .topic-hero__actions {
        gap: 10px;
        margin-top: 22px !important;
    }

    .topic-hero__button {
        flex: 1 1 calc(50% - 5px);
        min-height: 48px;
        padding: 11px 16px !important;
    }

    .topic-hero__signals {
        gap: 8px 14px;
        margin-top: 16px !important;
        font-size: 12px;
    }

    .topic-local-nav a {
        min-height: 50px;
        padding: 15px 12px !important;
        font-size: 12px !important;
    }
}

@media (max-width: 390px) {
    .topic-hero__button {
        flex-basis: 100%;
    }
}

/* Shared topic-insights cards
 * Keep the article image ratio and card rhythm identical across every topic.
 * The padding-top ratio fallback is intentionally used instead of aspect-ratio
 * so the layout also works in older Safari releases.
 */
.topic-insights {
    --topic-insights-accent: #079a68;
    position: relative;
    width: 100%;
    padding: 108px 0;
    overflow: hidden;
    background: #f2f8f5;
}

.topic-insights > .topic-insights__shell {
    box-sizing: border-box;
    width: 100% !important;
    max-width: 1440px !important;
    margin: 0 auto !important;
    padding-right: clamp(18px, 4vw, 64px) !important;
    padding-left: clamp(18px, 4vw, 64px) !important;
}

.topic-insights .topic-insights__head {
    display: flex !important;
    flex-direction: column;
    align-items: center !important;
    justify-content: center !important;
    gap: 0;
    max-width: 920px;
    width: 100%;
    margin: 0 auto 52px !important;
    text-align: center !important;
}

.topic-insights .topic-insights__heading {
    width: 100%;
    text-align: center !important;
}

.topic-insights .topic-insights__heading > * {
    margin-inline: auto;
}

.topic-insights .topic-insights__head > span,
.topic-insights .topic-insights__heading > span {
    display: block;
    color: var(--topic-insights-accent) !important;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: .14em;
}

.topic-insights .topic-insights__head > h2,
.topic-insights .topic-insights__heading > h2 {
    max-width: 920px;
    margin: 18px auto 0 !important;
    color: #17251f !important;
    font-size: clamp(38px, 3.2vw, 52px) !important;
    font-weight: 650 !important;
    line-height: 1.16 !important;
    letter-spacing: -.035em;
}

.topic-insights .topic-insights__head > p,
.topic-insights .topic-insights__heading > p {
    max-width: 920px;
    margin: 18px auto 0 !important;
    color: #66766f !important;
    font-size: 19px !important;
    line-height: 1.75 !important;
}

.topic-insights .topic-insights__all {
    position: static !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    align-self: center;
    width: auto;
    margin: 20px auto 0 !important;
    color: var(--topic-insights-accent) !important;
}

.topic-insights .topic-insights__grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 20px !important;
    align-items: stretch;
    width: 100%;
}

.topic-insights .topic-insights__grid > .topic-insights__card {
    display: flex !important;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    margin: 0 !important;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(12, 71, 53, .12);
    border-radius: 22px !important;
    box-shadow: none !important;
}

.topic-insights .topic-insights__cover {
    position: relative !important;
    display: block !important;
    flex: 0 0 auto;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    padding-top: 0;
    aspect-ratio: 8 / 5;
    overflow: hidden;
    border-radius: 0 !important;
    background: #e8f0ec;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.topic-insights .topic-insights__cover img {
    position: static !important;
    display: block;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 8 / 5;
    margin: 0 !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 0 !important;
    visibility: visible !important;
    opacity: 1 !important;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.topic-insights .topic-insights__body {
    display: flex !important;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
    padding: 26px !important;
    text-align: left !important;
}

.topic-insights .topic-insights__meta {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 !important;
    color: #899791;
    font-size: 13px;
    line-height: 1.4;
    text-align: left !important;
}

.topic-insights .topic-insights__meta time {
    display: block !important;
    flex: 0 0 auto;
}

.topic-insights .topic-insights__meta span:first-child {
    color: var(--topic-insights-accent) !important;
    font-weight: 700;
}

.topic-insights .topic-insights__title {
    display: -webkit-box;
    min-height: 3em;
    margin: 14px 0 0 !important;
    overflow: hidden;
    color: #17251f;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.5;
    text-align: left !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.topic-insights .topic-insights__title a {
    color: inherit !important;
    font: inherit;
}

.topic-insights .topic-insights__summary {
    display: -webkit-box !important;
    min-height: 5.25em;
    margin: 14px 0 0 !important;
    overflow: hidden;
    color: #66766f;
    font-size: 15px;
    line-height: 1.75;
    text-align: left !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.topic-insights .topic-insights__more {
    display: inline-flex !important;
    align-items: center;
    align-self: flex-start;
    margin: auto 0 0 !important;
    padding-top: 18px;
    color: var(--topic-insights-accent) !important;
    font-weight: 700;
    text-align: left !important;
}

@media (max-width: 768px) {
    .topic-insights {
        padding: 62px 0;
    }

    .topic-insights > .topic-insights__shell {
        padding-right: 16px !important;
        padding-left: 16px !important;
    }

    .topic-insights .topic-insights__head {
        margin-bottom: 26px !important;
    }

    .topic-insights .topic-insights__head > span,
    .topic-insights .topic-insights__heading > span {
        font-size: 12px;
    }

    .topic-insights .topic-insights__head > h2,
    .topic-insights .topic-insights__heading > h2 {
        margin-top: 12px !important;
        font-size: clamp(29px, 8vw, 34px) !important;
        line-height: 1.18 !important;
    }

    .topic-insights .topic-insights__head > p,
    .topic-insights .topic-insights__heading > p {
        margin-top: 12px !important;
        font-size: 15px !important;
        line-height: 1.65 !important;
    }

    .topic-insights .topic-insights__all {
        margin-top: 14px !important;
    }

    .topic-insights .topic-insights__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }

    .topic-insights .topic-insights__grid > .topic-insights__card {
        border-radius: 16px !important;
    }

    .topic-insights .topic-insights__body {
        padding: 14px 12px 16px !important;
    }

    .topic-insights .topic-insights__meta {
        gap: 6px;
        font-size: 10px;
    }

    .topic-insights .topic-insights__meta time {
        display: block !important;
    }

    .topic-insights .topic-insights__title {
        min-height: 3em;
        margin-top: 10px !important;
        font-size: 15px;
        line-height: 1.5;
    }

    .topic-insights .topic-insights__summary {
        display: -webkit-box !important;
        min-height: 4.8em;
        margin-top: 9px !important;
        font-size: 12px;
        line-height: 1.6;
    }

    .topic-insights .topic-insights__more {
        padding-top: 12px;
        font-size: 13px;
    }
}

@media (max-width: 390px) {
    .topic-insights > .topic-insights__shell {
        padding-right: 12px !important;
        padding-left: 12px !important;
    }

    .topic-insights .topic-insights__grid {
        gap: 9px !important;
    }

    .topic-insights .topic-insights__body {
        padding: 12px 10px 14px !important;
    }

    .topic-insights .topic-insights__title {
        font-size: 14px;
    }

    .topic-insights .topic-insights__summary {
        font-size: 11px;
    }
}

/* 2026-08-12: Safari 专题导航与场景卡片最终覆盖 */
.topic-local-nav {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: var(--topic-header-height, 0px) !important;
    z-index: 90 !important;
    box-sizing: border-box !important;
    width: 100% !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
}

.topic-local-nav__inner {
    display: -webkit-box !important;
    display: -ms-flexbox !important;
    display: flex !important;
    -webkit-box-align: stretch !important;
    -ms-flex-align: stretch !important;
    align-items: stretch !important;
    -webkit-box-pack: center !important;
    -ms-flex-pack: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: none !important;
    margin: 0 auto !important;
    padding: 0 16px !important;
}

.topic-local-nav a {
    display: -webkit-box !important;
    display: -ms-flexbox !important;
    display: flex !important;
    -webkit-box-align: center !important;
    -ms-flex-align: center !important;
    align-items: center !important;
    -webkit-box-pack: center !important;
    -ms-flex-pack: center !important;
    justify-content: center !important;
    -webkit-box-flex: 0 !important;
    -ms-flex: 0 0 auto !important;
    flex: 0 0 auto !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 20px 14px !important;
    white-space: nowrap !important;
}

.topic-local-nav a + a {
    margin-left: 8px !important;
}

.gas-scenes__grid--cover article,
.chess-scenes__grid article,
.beauty-scenes__grid article,
.kids-scenes__grid--cover article,
.dining-scenes__grid article {
    position: relative !important;
    z-index: 0 !important;
    overflow: hidden !important;
    background-position: center !important;
    background-size: cover !important;
}

.gas-scenes__grid--cover article::after,
.chess-scenes__grid article::after,
.beauty-scenes__grid article::after,
.kids-scenes__grid--cover article::after,
.dining-scenes__grid article::after {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    z-index: 1 !important;
    pointer-events: none !important;
    background: -webkit-linear-gradient(top, rgba(1, 14, 13, .42), rgba(1, 12, 11, .68)) !important;
    background: linear-gradient(180deg, rgba(1, 14, 13, .42), rgba(1, 12, 11, .68)) !important;
}

.gas-scenes__grid--cover article > img,
.chess-scenes__grid article > img,
.beauty-scenes__grid article > img,
.kids-scenes__grid--cover article > img,
.dining-scenes__grid article > img {
    position: absolute !important;
    inset: 0 !important;
    z-index: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.gas-scenes__content,
.chess-scenes__content,
.beauty-scenes__content,
.kids-scenes__grid--cover article > div,
.dining-scenes__content {
    position: absolute !important;
    inset: 0 !important;
    z-index: 2 !important;
    display: -webkit-box !important;
    display: -ms-flexbox !important;
    display: flex !important;
    -webkit-box-orient: vertical !important;
    -webkit-box-direction: normal !important;
    -ms-flex-direction: column !important;
    flex-direction: column !important;
    -webkit-box-align: center !important;
    -ms-flex-align: center !important;
    align-items: center !important;
    -webkit-box-pack: center !important;
    -ms-flex-pack: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    width: 100% !important;
    height: 100% !important;
    padding: 24px !important;
    text-align: center !important;
}

.gas-scenes__content h3,
.chess-scenes__content h3,
.beauty-scenes__content h3,
.kids-scenes__grid--cover article > div h3,
.dining-scenes__content h3 {
    width: 100% !important;
    margin-right: auto !important;
    margin-left: auto !important;
    font-weight: 800 !important;
    text-align: center !important;
}

.gas-scenes__content p,
.chess-scenes__content p,
.beauty-scenes__content p,
.kids-scenes__grid--cover article > div p,
.dining-scenes__content p {
    width: 100% !important;
    margin-right: auto !important;
    margin-left: auto !important;
    text-align: center !important;
}

@media (max-width: 820px) {
    .topic-local-nav__inner {
        -webkit-box-pack: start !important;
        -ms-flex-pack: start !important;
        justify-content: flex-start !important;
        width: auto !important;
        min-width: 100% !important;
        padding: 0 12px !important;
    }

    .topic-local-nav a {
        padding: 17px 12px !important;
    }

    .topic-local-nav a + a {
        margin-left: 4px !important;
    }

    .gas-scenes__content,
    .chess-scenes__content,
    .beauty-scenes__content,
    .kids-scenes__grid--cover article > div,
    .dining-scenes__content {
        padding: 14px !important;
    }

    .gas-scenes__content h3,
    .chess-scenes__content h3,
    .beauty-scenes__content h3,
    .kids-scenes__grid--cover article > div h3,
    .dining-scenes__content h3 {
        font-size: 17px !important;
    }

    .gas-scenes__content p,
    .chess-scenes__content p,
    .beauty-scenes__content p,
    .kids-scenes__grid--cover article > div p,
    .dining-scenes__content p {
        font-size: 12px !important;
    }
}

/* Safari desktop spacing fallback. Keep this at the end so it wins over page defaults. */
@media (min-width: 821px) {
    .topic-hero__actions {
        gap: 0 !important;
        row-gap: 0 !important;
        column-gap: 0 !important;
    }

    .topic-hero__actions > .topic-hero__button + .topic-hero__button {
        margin-left: 16px !important;
    }

    .topic-hero__signals {
        gap: 0 !important;
        row-gap: 0 !important;
        column-gap: 0 !important;
    }

    .topic-hero__signals > li {
        display: -webkit-inline-flex !important;
        display: inline-flex !important;
        -webkit-box-align: center !important;
        -ms-flex-align: center !important;
        align-items: center !important;
        white-space: nowrap;
    }

    .topic-hero__signals > li + li {
        margin-left: 24px !important;
    }

    .topic-hero__signals > li > span {
        -webkit-box-flex: 0;
        -ms-flex: 0 0 auto;
        flex: 0 0 auto;
        margin-right: 8px !important;
    }
}

/* 2026-08-13 v9: 餐饮场景卡片移动端统一居中，兼容 Safari。 */
@media screen and (max-width: 820px) {
    html body .dining-scenes .dining-scenes__grid > article {
        position: relative !important;
        display: block !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        aspect-ratio: 4 / 5 !important;
        overflow: hidden !important;
        border-radius: 18px !important;
        background: #071917 !important;
    }

    html body .dining-scenes .dining-scenes__grid > article > img {
        position: absolute !important;
        inset: 0 !important;
        z-index: 0 !important;
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        max-width: none !important;
        object-fit: cover !important;
        object-position: center !important;
    }

    html body .dining-scenes .dining-scenes__grid > article::after {
        content: "" !important;
        position: absolute !important;
        inset: 0 !important;
        z-index: 1 !important;
        display: block !important;
        background: rgba(2, 16, 14, 0.46) !important;
        pointer-events: none !important;
    }

    html body .dining-scenes .dining-scenes__grid > article > .dining-scenes__content {
        position: absolute !important;
        inset: 0 !important;
        z-index: 2 !important;
        box-sizing: border-box !important;
        display: -webkit-box !important;
        display: -webkit-flex !important;
        display: flex !important;
        -webkit-box-orient: vertical !important;
        -webkit-box-direction: normal !important;
        -webkit-flex-direction: column !important;
        flex-direction: column !important;
        -webkit-box-pack: center !important;
        -webkit-justify-content: center !important;
        justify-content: center !important;
        -webkit-box-align: center !important;
        -webkit-align-items: center !important;
        align-items: center !important;
        width: 100% !important;
        height: 100% !important;
        margin: 0 !important;
        padding: 24px 18px !important;
        text-align: center !important;
        background: transparent !important;
        -webkit-transform: none !important;
        transform: none !important;
    }

    html body .dining-scenes .dining-scenes__content h3,
    html body .dining-scenes .dining-scenes__content p {
        width: 100% !important;
        max-width: 100% !important;
        text-align: center !important;
    }

    html body .dining-scenes .dining-scenes__content h3 {
        margin: 0 0 10px !important;
        color: #fff !important;
        font-size: 21px !important;
        font-weight: 800 !important;
        line-height: 1.3 !important;
    }

    html body .dining-scenes .dining-scenes__content p {
        margin: 0 !important;
        color: rgba(255, 255, 255, 0.92) !important;
        font-size: 14px !important;
        line-height: 1.65 !important;
    }
}
