@font-face {
  font-family: 'HarmonyOS Sans SC';
  src: url(/assets/fonts/hos-regular.woff2) format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'HarmonyOS Sans SC';
  src: url(/assets/fonts/hos-bold.woff2) format('woff2');
  font-weight: 700;
  font-display: swap;
}

:root {
  --font: 'HarmonyOS Sans SC', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
  --gutter: 24px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #fff;
  color: #000;
  font-family: var(--font);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
form.booking { margin: 0; }

.bx, .tx { min-width: 0; }
.tx { white-space: pre-wrap; overflow-wrap: break-word; }
.tx .ln, .tx .li { display: block; }
.tx .li { position: relative; }
.tx .ul::before { content: '•'; position: absolute; margin-left: -1em; }
.tx .ol::before { content: attr(data-n); position: absolute; margin-left: -1.3em; }
.ic { display: block; flex-shrink: 0; max-width: none; }
a.lk, a.lk:visited { color: inherit; text-decoration: none; cursor: pointer; }
a.lk.tx span { text-decoration: inherit; }
[data-goto], [data-overlay], [data-close], [data-href] { cursor: pointer; }

/* Figma 负间距（叠放） */
.ngh > * + * { margin-left: var(--ng); }
.ngv > * + * { margin-top: var(--ng); }
.ngh > .vset + *, .ngv > .vset + * { margin: 0; }

/* variant 切换 */
.variant:not(.on) { display: none !important; }

/* 桌面 / 手机两套设计稿 */
.v-mob { display: none; }
@media (max-width: 1023px) {
  .v-desk { display: none; }
  .v-mob { display: block; }
  :root { --gutter: 16px; }
}

/* ── 全站常驻层（build.py 注入；2026-10-28 Max：FREE 条每页常驻、浮标去白底框） ──
   原设计树里的 FREE 条（桌面 253:1056 / 手机 273:861）与带白底图的旧浮标一并隐藏，
   由注入版替代——树版在滚动流里会滚走，且顶层 frame overflow:hidden 用不了 sticky。 */
[data-set="253:1056"], [data-set="273:861"], [data-wa-float] { display: none !important; }
html { scroll-padding-top: 52px; }
body { padding-top: 44px; }
.free-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 70;
  height: 44px; display: flex; justify-content: center; align-items: center; gap: 10px;
  background: linear-gradient(90deg, #fff0e5 0%, #e5ebf1 100%);
  text-decoration: none; font-family: var(--font); white-space: nowrap; overflow: hidden; padding: 0 12px;
}
.free-bar:hover { filter: brightness(0.97); }
.free-bar b { font-weight: 700; font-size: 22px; color: #ff6b00; }
.free-bar span { font-weight: 700; font-size: 16px; color: #ff6b00; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1023px) { .free-bar b { font-size: 17px; } .free-bar span { font-size: 13px; } }
/* 手机：马来文 / 英文整句放一行会被「…」截掉（375 宽只剩约 256px）→ 文字最多两行，条高 56px，
   页面顶部与锚点让位同步加高（Max 2026-10-28「修复马来文手机首页优惠条被切字」）。 */
@media (max-width: 1023px) {
  html { scroll-padding-top: 64px; }
  body { padding-top: 56px; }
  .free-bar { height: 56px; }
  .free-bar span { white-space: normal; line-height: 1.25; text-align: left;
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
}
@media (max-width: 359px) { .free-bar span { font-size: 12px; } }
.wa-fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 50;
  display: flex; flex-direction: column; align-items: center; gap: 4px; text-decoration: none;
}
.wa-fab .wa-c {
  width: 56px; height: 56px; border-radius: 50%; background: #128C7E;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25); transition: transform 0.15s;
}
.wa-fab:hover .wa-c { transform: scale(1.06); }
.wa-fab svg { width: 30px; height: 30px; fill: #fff; }
.wa-fab i { font-style: normal; font-size: 11px; font-weight: 600; color: #3a4a55; text-shadow: 0 1px 2px rgba(255,255,255,0.9); }
@media (max-width: 1023px) { .wa-fab { right: 12px; bottom: 12px; } .wa-fab .wa-c { width: 52px; height: 52px; } }

/* 浮动 WhatsApp */
.wa-float {
  position: fixed !important;
  left: auto !important;
  top: auto !important;
  right: 24px;
  bottom: 24px;
  z-index: 50;
}
@media (max-width: 1023px) { .wa-float { right: 12px; bottom: 12px; } }

/* 弹层（语言 / 服务区域 / 手机菜单） */
.ov { position: absolute; z-index: 60; }
.ov[hidden] { display: none; }
.ov.ov-full { position: fixed; inset: 0; overflow-y: auto; background: #fff; }
.ov.ov-full > .bx { width: 100% !important; }

/* 表单控件：透明原生控件叠在设计稿的输入框矩形上 */
.fldwrap > .ic, .fldwrap > .tx, .fldwrap > .bx:not(.fld), .fldwrap > span { pointer-events: none; }
.fld { overflow: visible; }
.fc {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  border: 0;
  border-radius: inherit;
  background: transparent;
  font: 400 18px/1.5 var(--font);
  padding: 0 16px;
  color: #1a1a1a;
  appearance: none;
  -webkit-appearance: none;
}
textarea.fc { padding: 12px 16px; resize: none; }
select.fc { cursor: pointer; padding-right: 48px; }
input[type=date].fc, input[type=time].fc { padding-left: 52px; cursor: pointer; }
input[type=date].fc::-webkit-calendar-picker-indicator,
input[type=time].fc::-webkit-calendar-picker-indicator {
  position: absolute; inset: 0; width: auto; height: auto; opacity: 0; cursor: pointer;
}
input[type=date].fc:invalid, input[type=time].fc:invalid { color: #9e9e9e; }
.fc:focus { outline: 2px solid #ff6b00; outline-offset: -2px; }
.form-msg { font: 400 16px/1.5 var(--font); margin-top: 8px; width: 100%; }
.form-msg.err { color: #c62828; }
.form-msg.ok { color: #1b7f3a; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* 语义标题：沿用设计稿的字体样式（字号写在内层 span 上） */
h1.tx, h2.tx { margin: 0; font-size: inherit; font-weight: inherit; }

/* Blog 搜索框 */
input.srch { flex: 1 1 auto; width: 100%; min-width: 0; -webkit-appearance: none; appearance: none; }
input.srch::-webkit-search-cancel-button { display: none; }

/* 键盘焦点 */
a.lk:focus-visible, [role="button"]:focus-visible, .fc:focus-visible { outline: 2px solid #ff6b00; outline-offset: 2px; border-radius: 4px; }

/* 分行卡片展开后可以点标题收起 */
.vset > .variant[data-goto] { cursor: pointer; }

/* 404 */
.nf { max-width: 560px; margin: 0 auto; padding: 96px 24px; text-align: center; font-family: var(--font); color: #333; }
.nf-logo { display: inline-block; margin-bottom: 32px; }
.nf h1 { font-size: 96px; line-height: 1; margin: 0 0 8px; color: #ff6b00; }
.nf-t { font-size: 24px; font-weight: 700; margin: 0 0 12px; color: #0b3a6b; }
.nf-btn { display: inline-block; margin-top: 16px; padding: 12px 24px; border-radius: 6px; background: #0b3a6b; color: #fff; text-decoration: none; font-weight: 700; }
.nf-l a { color: #0b3a6b; margin: 0 4px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* 中文 / BM 标题：避免最后一行只剩一两个字 */
html:lang(zh-Hans-MY) h1.tx, html:lang(zh-Hans-MY) h2.tx,
html:lang(ms-MY) h1.tx, html:lang(ms-MY) h2.tx { text-wrap: balance; }
.no-results { font-size: 18px; color: #555; margin: 0; }
/* 已结束的活动 */
.ev-past > :first-child { filter: grayscale(.55); opacity: .75; }
.ev-tag { position: absolute; left: 12px; top: 12px; padding: 4px 12px; border-radius: 999px;
  background: rgba(0, 0, 0, .62); color: #fff; font: 600 14px/1.5 var(--font); letter-spacing: .02em; }


/* Health Walkathon 2026 首页横幅（tools/content.py WALKATHON_BAR*）：深橙底保证白字对比 ≥4.5:1 */
.wk-bar { background: #d6520b; color: #fff; font: 400 15px/1.35 var(--font); }
.wk-bar[hidden] { display: none; }
.wk-bar a { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 14px;
  min-height: 44px; padding: 8px var(--gutter); color: #fff; text-decoration: none; text-align: center; }
.wk-bar__name { font-weight: 700; }
.wk-bar__cta { background: #fff; color: #b8460a; border-radius: 999px; padding: 4px 14px; font-weight: 700; white-space: nowrap; }
.wk-bar a:hover .wk-bar__cta { background: #ffe9dc; }
.wk-bar a:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
@media (max-width: 1023px) {
  .wk-bar { font-size: 13px; }
  .wk-bar a { gap: 4px 10px; }
  .wk-bar__more { display: none; }
}
