/* 外围与底栏同色墨绿肌理；主列铺满视宽约 5px 边距 */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --forest: #007351;
  --forest-deep: #005c44;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  min-height: 100%;
  background-color: var(--forest-deep);
  background-image: url('page-bg.png');
  background-repeat: repeat-x;
  background-size: auto 100%;
  background-position: top center;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  color: #1c1c1c;
  background: transparent;
}

/* 主列铺满视口，左右仅 5px（刘海屏取更大 safe-area） */
.page-shell {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding-left: max(5px, env(safe-area-inset-left));
  padding-right: max(5px, env(safe-area-inset-right));
  background: transparent;
}

/* 主线内容结束之后：铺满到视口底部的墨绿区（可与顶栏同色纹理） */

/* 铺满视口左右（抵消 .page-shell 水平 padding），避免出现底栏两侧浅色缝 */
.bottom-fill {
  flex: 1 1 auto;
  min-height: 2.5rem;
  --shell-pad-l: max(5px, env(safe-area-inset-left, 0px));
  --shell-pad-r: max(5px, env(safe-area-inset-right, 0px));
  width: calc(100% + var(--shell-pad-l) + var(--shell-pad-r));
  margin-left: calc(-1 * var(--shell-pad-l));
  margin-right: calc(-1 * var(--shell-pad-r));
  flex-shrink: 0;
  background-color: var(--forest);
  background-image: url('page-bg.png');
  background-repeat: repeat-x;
  background-size: auto 100%;
  background-position: top center;
}

.topbar {
  background: var(--forest);
  padding: 0;
}

.brand-row {
  padding: 0.65rem 8px;
  text-align: left;
}

.logo {
  display: inline-block;
  line-height: 0;
}

.logo-img {
  display: block;
  height: 1.55rem;
  width: auto;
  max-width: min(68vw, 260px);
}

/* 比顶栏略浅的青绿跑马条，接近参考图 */
.announce-marquee {
  overflow: hidden;
  min-height: 2rem;
  background-color: #18a08a;
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, transparent 50%),
    url('marquee-bg.png');
  background-repeat: no-repeat, repeat-x;
  background-size: 100% 100%, auto 100%;
  background-position: center, top center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.announce-marquee__mask {
  overflow: hidden;
  width: 100%;
  padding: 0.42rem 0;
}

.announce-marquee__track {
  display: inline-flex;
  flex-wrap: nowrap;
  white-space: nowrap;
  will-change: transform;
  animation: announce-marquee var(--marquee-duration, 26s) linear infinite;
}

.announce-marquee__segment {
  flex-shrink: 0;
  padding: 0 0.85rem;
  font-size: 0.73rem;
  line-height: 1.42;
  color: rgba(255, 255, 255, 0.95);
  text-shadow:
    0 0 2px rgba(0, 0, 0, 0.45),
    0 1px 2px rgba(0, 0, 0, 0.35);
}

@keyframes announce-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .announce-marquee__track {
    animation: none;
    transform: none;
    white-space: normal;
    flex-wrap: wrap;
    justify-content: center;
  }
  .announce-marquee__segment[aria-hidden='true'] {
    display: none;
  }
}

.wrap {
  flex: 0 0 auto;
  margin: 0 auto;
  width: 100%;
  padding: 0.65rem 0 0.5rem;
}

/* 参考图：浅色主区 + 底层似牌桌的深绿氛围 + 半透明白雾，列表行略透 */
.content-sheet {
  position: relative;
  margin: 0;
  padding: 0.55rem 0 0.65rem;
  border-radius: 0;
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 10px 36px rgba(10, 55, 45, 0.14);
  background: transparent;
  overflow: hidden;
}

.content-sheet::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 95% 85% at 50% 115%, rgba(15, 72, 54, 0.55) 0%, transparent 58%),
    radial-gradient(ellipse 70% 50% at 20% 35%, rgba(255, 255, 255, 0.06) 0%, transparent 52%),
    linear-gradient(172deg, #0d4a3d 0%, #0b3f35 45%, #174d3f 100%);
}

.content-sheet::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(255, 255, 255, 0.8);
  pointer-events: none;
}

.content-sheet > * {
  position: relative;
  z-index: 1;
}

.block {
  margin-top: 0.85rem;
}
.block:first-child {
  margin-top: 0;
}

/* 条幅：青/金色均用条形 PNG（右箭）；尺寸与左侧对齐沿用下方统一规则 */
.ribbon {
  margin: 0 0 0.55rem;
  margin-right: auto;
  width: 38%;
  max-width: 175px;
  min-width: 118px;
  min-height: 2.65rem;
  padding: 0.4rem 0.65rem 0.4rem 0.42rem;
  font-size: 0.91rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.03em;
  text-align: center;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.12));
  box-sizing: border-box;
}

/* 图2：仅用 PNG 铺满，无实心底色（避免盖住图边透明区） */
.ribbon.teal {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.65rem;
  clip-path: none;
  background-color: transparent;
  background-image: url('ribbon-teal.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

/* 金色条幅：参考图为黄条 + 黑字 */
.ribbon.gold {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.65rem;
  clip-path: none;
  color: #161616;
  background-color: transparent;
  background-image: url('ribbon-gold.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}

.row-list {
  display: flex;
  flex-direction: column;
  gap: 0.36rem;
}

/* 单行：左侧白框容纳「文案 + ms」，右侧独立按钮 */
.row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.42rem;
  padding: 0;
}

.row-card {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 0.55rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(200, 211, 206, 0.95);
  border-radius: 8px;
  padding: 0.46rem 0.54rem;
  backdrop-filter: blur(3px);
}

.row .label {
  font-size: 0.84rem;
  color: #141414;
  font-weight: 600;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row .ms {
  font-size: 0.76rem;
  color: #9e9e9e;
  font-style: italic;
  flex-shrink: 0;
  min-width: 3rem;
  text-align: right;
}

.row .ms.wait {
  color: #b0b0b0;
}

.row .btn {
  flex-shrink: 0;
  display: inline-block;
  padding: 0.38rem 0.72rem;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  background: #008100;
  border: 1px solid #006d00;
  white-space: nowrap;
  align-self: center;
}

.row .btn:active {
  transform: scale(0.98);
  opacity: 0.93;
}

/* 最新优惠：白底灰线黑字黑点 */
.promo-box {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(2px);
  border-radius: 8px 8px 0 0;
  border: 1px solid rgba(200, 211, 206, 0.95);
  overflow: hidden;
}

.promo-box .item {
  position: relative;
  padding: 0.52rem 0.72rem 0.52rem 1.4rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: #232323;
  border-bottom: 1px solid #dde3e1;
}

.promo-box .item::before {
  content: '';
  position: absolute;
  left: 0.6rem;
  top: 0.82rem;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #111;
}

.promo-box .item:last-child {
  border-bottom: 0;
}

.promo-box a.item.promo-link {
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(0, 115, 81, 0.12);
  text-decoration: none;
}

.promo-box a.item.promo-link:link,
.promo-box a.item.promo-link:visited {
  color: #232323;
}

.promo-box a.item.promo-link:active {
  opacity: 0.9;
}
