/* =========================================================
   Blue Ocean Wealth Management (Hong Kong) Limited
   Colour palette kept from the original site:
   #0060AA primary blue · #00487F deep · #005494 footer
   #DF2D01 CTA red · #FFA445 accent orange · light blue tint
   ========================================================= */
:root {
  --blue: #0060aa;
  --blue-deep: #00487f;
  --blue-footer: #005494;
  --blue-ink: #032a55;
  --blue-light: #3697d7;
  --tint: #e1f3fb;
  --tint-2: #f3f9fd;
  --red: #df2d01;
  --orange: #ffa445;
  --ink: #26323d;
  --muted: #5f6b76;
  --line: #dbe5ee;
  --white: #fff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 72, 127, .10);
  --shadow-lg: 0 20px 50px rgba(0, 72, 127, .18);
  --nav-h: 72px;
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Noto Sans TC", "Microsoft JhengHei", "PingFang TC", system-ui, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.75;
  font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-deep); }
h1, h2, h3, h4, h5 { margin: 0; line-height: 1.35; color: var(--blue-ink); }
p { margin: 0 0 1em; }
button { font: inherit; cursor: pointer; }
figure { margin: 0; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .container { padding: 0 24px; } }
@media (min-width: 1024px) { .container { padding: 0 32px; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 26px; border-radius: 999px; border: 0;
  font-weight: 500; letter-spacing: .06em; font-size: 15px; white-space: nowrap;
  transition: background .25s, color .25s, transform .25s, box-shadow .25s;
}
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 8px 20px rgba(223, 45, 1, .25); }
.btn-primary:hover { background: var(--blue); color: #fff; transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--blue); border: 1.5px solid var(--blue); }
.btn-outline:hover { background: var(--blue); color: #fff; }
.btn svg { width: 18px; height: 18px; }

/* =========================================================
   Header / Navigation
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s, border-color .3s;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(0, 72, 127, .10); border-color: var(--line); }
.nav-bar { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--blue); min-width: 0; }
.brand img { width: 46px; height: 46px; flex: none; }
.brand-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.brand-name { font-weight: 700; font-size: 15px; color: var(--blue); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-sub { font-size: 11px; color: var(--muted); letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.nav-links { display: none; }
.nav-actions { display: none; }

.nav-toggle {
  flex: none; width: 46px; height: 46px; border-radius: 10px; border: 1px solid var(--line);
  background: #fff; display: grid; place-items: center; color: var(--blue);
}
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-open { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }

/* phone / tablet: compact language toggle next to the menu button */
.header-tools { display: flex; align-items: center; gap: 8px; flex: none; }
.header-tools .lang-switch button { padding: 6px 10px; min-width: 40px; }

/* mobile drawer */
.mobile-menu {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 49;
  background: #fff; overflow-y: auto;
  transform: translateX(100%); visibility: hidden;
  transition: transform .3s ease, visibility .3s;
}
.nav-open .mobile-menu { transform: none; visibility: visible; }
.nav-open { overflow: hidden; }
.mobile-menu nav { display: flex; flex-direction: column; padding: 8px 16px 24px; }
.mobile-menu nav a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 4px; border-bottom: 1px solid var(--line);
  color: var(--blue-ink); font-size: 17px; font-weight: 500;
}
.mobile-menu nav a::after { content: "›"; color: var(--orange); font-size: 22px; line-height: 1; }
.mobile-menu .mobile-extra { padding: 8px 20px 32px; display: grid; gap: 12px; }
.mobile-menu .btn { width: 100%; }

.lang-switch { display: flex; align-items: center; gap: 4px; background: var(--tint-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.lang-switch button {
  padding: 6px 14px; border: 0; border-radius: 999px; background: transparent; font-size: 14px; line-height: 1.2; color: var(--muted);
  min-width: 44px; min-height: 32px; display: grid; place-items: center; transition: background .2s, color .2s;
}
.lang-switch button:hover { color: var(--blue); }
.lang-switch button.is-active { background: var(--blue); color: #fff; cursor: default; }

@media (min-width: 1240px) {
  :root { --nav-h: 84px; }
  .site-header .container { max-width: 1440px; }
  .brand { flex: none; }
  .brand-name { overflow: visible; }
  .brand img { width: 54px; height: 54px; }
  .brand-name { font-size: 17px; }
  .brand-sub { display: none; font-size: 12px; }
  .nav-toggle, .mobile-menu, .header-tools { display: none; }
  .nav-links { display: flex; align-items: center; gap: 2px; }
  .nav-links a {
    position: relative; padding: 8px 10px; color: var(--blue-ink); font-size: 15px; font-weight: 500; letter-spacing: .04em;
    white-space: nowrap;
  }
  .nav-links a::after {
    content: ""; position: absolute; left: 10px; right: 10px; bottom: 2px; height: 2px;
    background: var(--orange); transform: scaleX(0); transition: transform .25s;
  }
  .nav-links a:hover, .nav-links a.is-active { color: var(--blue); }
  .nav-links a:hover::after, .nav-links a.is-active::after { transform: scaleX(1); }
  .nav-actions { display: flex; align-items: center; gap: 10px; }
  .nav-actions .btn { min-height: 40px; padding: 0 16px; font-size: 14px; }
  .nav-actions .btn svg { width: 16px; height: 16px; }
}
@media (min-width: 1440px) {
  .brand-sub { display: block; }
  .nav-links a { padding: 8px 9px; }
  .nav-links a::after { left: 9px; right: 9px; }
}
@media (min-width: 1240px) and (max-width: 1439px) { /* 選單有 9 項，窄桌機收緊間距；英文字較長，再收緊字距 */
  .nav-links { gap: 0; }
  .nav-links a { padding: 8px 6px; font-size: 14px; }
  .nav-links a::after { left: 6px; right: 6px; }
  :root[data-lang="en"] .nav-links a { letter-spacing: .02em; }
}

/* =========================================================
   Hero slider
   ========================================================= */
.hero { position: relative; overflow: hidden; background: var(--blue-deep); }
.hero-track { position: relative; height: clamp(440px, 72vh, 640px); }
.hero-slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  transition: opacity 1s ease, visibility 1s;
}
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 7s ease; }
.hero-slide.is-active img { transform: scale(1); }
.hero-slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0, 40, 80, .05) 0%, rgba(0, 40, 80, .55) 100%);
}
.hero-caption { position: absolute; inset: auto 0 64px 0; z-index: 2; }
.hero-card {
  max-width: 560px; background: rgba(255, 255, 255, .94); border-radius: var(--radius);
  padding: 24px 22px; box-shadow: var(--shadow-lg); border-top: 4px solid var(--orange);
  transform: translateY(16px); opacity: 0; transition: transform .8s .3s ease, opacity .8s .3s ease;
}
.hero-slide.is-active .hero-card { transform: none; opacity: 1; }
.hero-card .eyebrow { display: block; font-size: 12px; letter-spacing: .2em; color: var(--blue-light); font-weight: 700; margin-bottom: 6px; text-transform: uppercase; }
.hero-card h2 { font-size: clamp(22px, 5.4vw, 32px); color: var(--blue); margin-bottom: 10px; }
.hero-card p { color: var(--muted); font-size: 15px; margin-bottom: 18px; }
.hero-dots { position: absolute; z-index: 3; left: 0; right: 0; bottom: 24px; display: flex; justify-content: center; gap: 8px; }
.hero-dots button { width: 32px; height: 4px; padding: 0; border: 0; background: rgba(255, 255, 255, .5); border-radius: 4px; transition: background .3s, width .3s; }
.hero-dots button.is-active { background: var(--orange); width: 48px; }
.hero-dots button::before { content: ""; display: block; height: 24px; margin-top: -10px; }
.hero-arrow {
  display: none; position: absolute; z-index: 3; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .85); color: var(--blue);
  box-shadow: var(--shadow); place-items: center; transition: transform .25s, background .25s;
}
.hero-arrow:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
.hero-arrow svg { width: 22px; height: 22px; }
.hero-arrow.prev { left: 24px; }
.hero-arrow.next { right: 24px; }
@media (min-width: 768px) {
  .hero-caption { inset: 0; display: flex; align-items: center; }
  .hero-card { padding: 36px 36px 32px; }
  .hero-arrow { display: grid; }
}

/* ---------- Hero 影片背景（hero-video.js） ---------- */
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s ease; }
.hero-video.is-ready { opacity: 1; }
/* 預覽圖要和影片第一格對齊，淡入時才不會出現疊影，所以不套用縮放動畫 */
.hero-slide img[data-video] { transform: none; transition: none; }
.hero-track { animation: hero-in 1.2s ease both; } /* 首次載入由深藍淡入 */
@keyframes hero-in { from { opacity: 0; } }
.hero-dots { bottom: clamp(60px, 9vw, 112px); } /* 移到數據卡片上方，原本會被卡片遮住 */
@media (max-width: 767px) { .hero-caption { bottom: 92px; } } /* 手機版卡片讓出圓點的位置 */

/* 卡片內容逐行浮現；用 translate 屬性，不影響按鈕 hover 的 transform */
.hero-card > * { opacity: 0; translate: 0 14px; transition: opacity .7s ease, translate .7s cubic-bezier(.2, .7, .2, 1); }
.hero-slide.is-active .hero-card > * { opacity: 1; translate: none; }
.hero-slide.is-active .hero-card > :nth-child(1) { transition-delay: .45s; }
.hero-slide.is-active .hero-card > :nth-child(2) { transition-delay: .55s; }
.hero-slide.is-active .hero-card > :nth-child(3) { transition-delay: .65s; }
.hero-slide.is-active .hero-card > :nth-child(4) { transition-delay: .75s; }
@media (prefers-reduced-motion: reduce) {
  .hero-track { animation: none; }
  .hero-card > * { opacity: 1; translate: none; transition: none; }
}

/* ---------- Stats band (overlaps hero) ---------- */
.stats { position: relative; z-index: 5; margin-top: -36px; }
.stats-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.stat { padding: 20px 8px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-size: clamp(24px, 6vw, 34px); color: var(--blue); font-weight: 700; line-height: 1.2; }
.stat span { font-size: 13px; color: var(--muted); letter-spacing: .04em; }
@media (min-width: 768px) {
  .stat { padding: 28px 16px; }
}

/* =========================================================
   Sections
   ========================================================= */
.section { padding: 72px 0; position: relative; }
.section-tint { background: linear-gradient(180deg, var(--tint-2), #fff); }
.section-blue { background: var(--blue-deep); color: #e6f1fa; }
@media (min-width: 1024px) { .section { padding: 104px 0; } }

.section-head { text-align: center; margin-bottom: 40px; }
.section-head .kicker { display: block; font-size: 12px; letter-spacing: .3em; color: var(--blue-light); font-weight: 700; text-transform: uppercase; margin-bottom: 8px; }
.section-head h2 { font-size: clamp(26px, 5vw, 34px); letter-spacing: .08em; color: var(--blue-ink); }
.divider { display: flex; align-items: center; justify-content: center; margin-top: 16px; }
.divider::before, .divider::after { content: ""; width: 36px; height: 1px; background: #b9c8d6; }
.divider i { width: 9px; height: 9px; margin: 0 10px; border: 1.5px solid var(--orange); transform: rotate(45deg); }
.section-blue .section-head h2 { color: #fff; }
:root[data-lang="en"] .section-head h2 { letter-spacing: .02em; }
/* English: Latin font first so curly quotes and dashes in fetched headlines render at normal width */
:root[data-lang="en"] body { font-family: "Noto Sans", "Noto Sans TC", "Helvetica Neue", Arial, sans-serif; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-slide img, .hero-card { transition: none; }
}

/* ---------- About ---------- */
.about-intro { display: grid; gap: 32px; align-items: center; }
.about-lead {
  font-size: 17px; line-height: 1.95; color: var(--ink);
  padding-left: 18px; border-left: 4px solid var(--orange);
}
.about-visual { position: relative; }
.about-visual img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; }
.about-visual::before {
  content: ""; position: absolute; inset: 18px -12px -12px 18px; border: 2px solid var(--tint); border-radius: var(--radius); z-index: -1;
}
@media (min-width: 900px) {
  .about-intro { grid-template-columns: 1.1fr .9fr; gap: 56px; }
  .about-lead { font-size: 18px; }
}

.sub-title { display: flex; align-items: center; gap: 12px; font-size: 21px; margin: 56px 0 24px; }
.sub-title::before { content: ""; flex: none; width: 6px; height: 24px; border-radius: 3px; background: var(--orange); }

#talent .section-head h2 { text-wrap: balance; } /* 長標題換行時兩行等長，手機版不會斷在詞中間 */
.features { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .features { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.feature {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 20px 22px 76px; min-height: 96px; display: flex; align-items: center;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.feature .num {
  position: absolute; left: 20px; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--tint); color: var(--blue); font-weight: 700; font-size: 17px;
}
.feature p { margin: 0; font-weight: 500; color: var(--blue-ink); }

.products-box {
  margin-top: 56px; display: grid; gap: 28px; padding: 28px 22px; border-radius: 20px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%); color: #e6f1fa;
  position: relative; overflow: hidden;
}
.products-box::after {
  content: ""; position: absolute; right: -80px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%;
  border: 40px solid rgba(255, 255, 255, .05);
}
.products-box h3 { color: #fff; font-size: 22px; margin-bottom: 12px; }
.products-box p { margin: 0; line-height: 1.95; }
.badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.badge-ppp { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; background: rgba(255, 164, 69, .16); color: var(--orange); font-weight: 700; font-size: 14px; }
.insurer-chips { display: flex; flex-wrap: wrap; gap: 8px; align-content: flex-start; position: relative; z-index: 1; }
.insurer-chips span { padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); font-size: 14px; color: #fff; }
@media (min-width: 900px) { .products-box { grid-template-columns: 1.15fr 1fr; padding: 48px; gap: 48px; } }

.org-grid { display: grid; gap: 20px; margin-top: 8px; }
@media (min-width: 768px) { .org-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
.org-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.org-card .thumb { border-radius: 0; box-shadow: none; }
.org-card .thumb::after { border-radius: 0; }
.org-card .thumb img { aspect-ratio: 4 / 3; object-fit: contain; background: #fff; }
.org-card figcaption { padding: 14px 18px; font-weight: 500; color: var(--blue-ink); border-top: 1px solid var(--line); }

/* ---------- Services ---------- */
.section-intro { max-width: 720px; margin: 20px auto 0; color: var(--muted); }
.section-intro:empty { display: none; }
.services { display: grid; gap: 16px; grid-template-columns: 1fr; counter-reset: svc; }
@media (min-width: 640px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.service {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px 24px; overflow: hidden; counter-increment: svc;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.service::before {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: linear-gradient(90deg, var(--blue), var(--blue-light));
  transform: scaleX(0); transform-origin: left; transition: transform .35s;
}
.service::after {
  content: counter(svc, decimal-leading-zero); position: absolute; right: 22px; top: 18px;
  font-size: 30px; font-weight: 700; line-height: 1; color: var(--tint);
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.service:hover::before { transform: scaleX(1); }
.service-ic {
  width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep)); color: #fff; box-shadow: 0 8px 18px rgba(0, 96, 170, .22);
}
.service-ic svg { width: 26px; height: 26px; }
.service h3 { font-size: 19px; margin-bottom: 8px; padding-right: 48px; }
.service h3::after { content: ""; display: block; width: 28px; height: 3px; border-radius: 2px; background: var(--orange); margin-top: 10px; }
.service p { margin: 0; color: var(--muted); line-height: 1.85; }

/* ---------- Licence ---------- */
.licence-grid { display: grid; gap: 32px; }
@media (min-width: 960px) { .licence-grid { grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start; } }
.licence-table { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; border: 1px solid var(--line); }
.licence-table h3 { padding: 18px 22px; background: var(--blue); color: #fff; font-size: 18px; display: flex; align-items: center; gap: 10px; }
.licence-table h3 svg { width: 22px; height: 22px; color: var(--orange); flex: none; }
.licence-table dl { margin: 0; }
.licence-row { display: grid; grid-template-columns: 1fr; border-bottom: 1px solid var(--line); }
.licence-row:last-child { border-bottom: 0; }
.licence-row dt { padding: 14px 22px 2px; font-size: 13px; color: var(--muted); letter-spacing: .04em; }
.licence-row dd { margin: 0; padding: 0 22px 14px; color: var(--blue-ink); font-weight: 500; word-break: break-word; }
.licence-row dd span { display: block; }
.licence-row.is-key dd { font-size: 22px; color: var(--red); font-weight: 700; letter-spacing: .06em; }
@media (min-width: 600px) {
  .licence-row { grid-template-columns: 170px 1fr; }
  .licence-row dt { padding: 16px 22px; background: var(--tint-2); border-right: 1px solid var(--line); font-size: 14px; }
  .licence-row dd { padding: 16px 22px; }
}
.licence-images .sub-title { margin-top: 0; font-size: 18px; margin-bottom: 16px; }
.licence-images .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ---------- Thumbnails / gallery ---------- */
.thumb {
  position: relative; display: block; width: 100%; padding: 0; border: 0; background: #fff; border-radius: 12px;
  overflow: hidden; box-shadow: var(--shadow); cursor: zoom-in;
}
.thumb img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .5s; }
.thumb:hover img { transform: scale(1.05); }
.thumb::after {
  content: ""; position: absolute; inset: 0; border: 2px solid transparent; border-radius: 12px; transition: border-color .3s;
}
.thumb:hover::after { border-color: var(--orange); }
.thumb .zoom {
  position: absolute; right: 10px; bottom: 10px; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255, 255, 255, .92); color: var(--blue); display: grid; place-items: center; box-shadow: var(--shadow);
}
.thumb .zoom svg { width: 16px; height: 16px; }

/* ---------- Awards ---------- */
.awards-layout { display: grid; gap: 36px; }
.awards-text h3 { font-size: clamp(22px, 4vw, 28px); color: #fff; line-height: 1.45; }
.awards-text h3 em { font-style: normal; color: var(--orange); }
.awards-text ul { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.awards-text li { display: flex; gap: 12px; align-items: flex-start; color: #d7e7f4; }
.awards-text li svg { width: 22px; height: 22px; color: var(--orange); flex: none; margin-top: 3px; }
.swipe-hint { display: none; align-items: center; gap: 6px; font-size: 13px; color: #a9c9e3; margin: 12px 0 0; }
.swipe-hint svg { width: 16px; height: 16px; }
.awards-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
/* phones: swipeable strip instead of a tall wall */
@media (max-width: 599px) {
  .awards-grid {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 42%;
    overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    margin: 0 -16px; padding: 4px 16px 16px; scrollbar-width: none;
  }
  .awards-grid::-webkit-scrollbar { display: none; }
  .awards-grid .thumb { scroll-snap-align: start; }
  .swipe-hint { display: flex; }
}
@media (min-width: 600px) { .awards-grid { grid-template-columns: repeat(5, 1fr); gap: 14px; } }
@media (min-width: 1024px) and (max-width: 1199px) { .awards-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) {
  .awards-layout { grid-template-columns: 340px 1fr; gap: 56px; align-items: start; }
  .awards-text { position: sticky; top: calc(var(--nav-h) + 32px); }
}
@media (min-width: 1200px) { .awards-grid { grid-template-columns: repeat(5, 1fr); } }
.section-blue .thumb { box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.talent-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 24px; }
@media (min-width: 600px) { .talent-gallery { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 960px) { .talent-gallery { grid-template-columns: repeat(4, 1fr); gap: 24px; } }
.talent-gallery .thumb img { aspect-ratio: 4 / 3; }

/* ---------- Partners ---------- */
.partner-note { text-align: center; font-size: 13px; color: var(--muted); margin: -24px 0 28px; }
.partners-grid { --cols: 2; --gap: 12px; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap); }
.partners-grid > * { flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)); }
@media (min-width: 640px) { .partners-grid { --cols: 3; --gap: 16px; } }
@media (min-width: 1024px) { .partners-grid { --cols: 5; --gap: 20px; } }
.partner {
  position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
  min-height: 88px; padding: 16px 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .3s, box-shadow .3s, border-color .3s; overflow: hidden;
}
.partner::before {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: linear-gradient(90deg, var(--blue), var(--blue-light));
  transform: scaleX(0); transform-origin: left; transition: transform .35s;
}
.partner:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.partner:hover::before { transform: scaleX(1); }
.partner strong { font-size: 15px; color: var(--blue); letter-spacing: .04em; font-weight: 700; line-height: 1.3; }
.partner span { font-size: 14px; color: var(--muted); margin-top: 4px; }
.partner span:empty { display: none; }
@media (min-width: 640px) { .partner { min-height: 112px; } }
@media (min-width: 1024px) { .partner { min-height: 128px; } .partner strong { font-size: 18px; } }

/* ---------- News ---------- */
.news-layout { display: grid; gap: 40px; }
@media (min-width: 1024px) { .news-layout { grid-template-columns: 1fr 2fr; gap: 48px; } }
/* when a language has no market news, centre the announcements */
.news-layout:has(> .news-col[hidden]) { grid-template-columns: 1fr; max-width: 640px; margin: 0 auto; }
.news-col h3 { font-size: 20px; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.news-col h3::before { content: ""; width: 6px; height: 22px; border-radius: 3px; background: var(--orange); }
.news-list { display: grid; gap: 16px; }
@media (min-width: 700px) { .news-list.two { grid-template-columns: 1fr 1fr; } }
.news-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px;
  display: flex; flex-direction: column; transition: box-shadow .3s, transform .3s;
}
.news-item:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.news-item time { display: inline-flex; align-self: flex-start; font-size: 12px; font-weight: 700; color: var(--blue); background: var(--tint); padding: 3px 10px; border-radius: 999px; letter-spacing: .06em; }
.news-item h4 { font-size: 16px; margin: 12px 0 8px; line-height: 1.55; }
.news-item p { font-size: 14px; color: var(--muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-item.feature-news { background: linear-gradient(135deg, var(--blue), var(--blue-deep)); border: 0; color: #fff; min-height: 200px; justify-content: space-between; }
.news-item.feature-news time { background: rgba(255, 255, 255, .15); color: #fff; }
.news-item.feature-news h4 { color: #fff; font-size: 19px; }
.news-item.feature-news .btn { margin-top: 18px; align-self: flex-start; }

/* long content: a long word / link wraps instead of stretching the columns; 公司消息 shows its full text with the line breaks typed in the admin */
.news-layout > *, .news-item { min-width: 0; }
.news-item h4, .news-item p { overflow-wrap: anywhere; }
.announce-list .news-item p { display: block; -webkit-line-clamp: unset; overflow: visible; white-space: pre-line; }

/* ---------- Contact ---------- */
.contact-layout { display: grid; gap: 28px; }
@media (min-width: 1024px) { .contact-layout { grid-template-columns: 1fr 1fr; gap: 40px; } }
.contact-cards { display: grid; gap: 12px; }
.contact-card { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.contact-card .ic { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--tint); color: var(--blue); display: grid; place-items: center; }
.contact-card .ic svg { width: 20px; height: 20px; }
.contact-card small { display: block; font-size: 12px; color: var(--muted); letter-spacing: .08em; }
.contact-card a, .contact-card p { color: var(--blue-ink); font-weight: 500; margin: 0; word-break: break-word; }
.contact-card a:hover { color: var(--blue); }
.map-wrap { margin-top: 16px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; background: var(--tint); }
@media (min-width: 640px) { .map-wrap { aspect-ratio: 16 / 9; } }
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }

.form-card { background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg); padding: 28px 20px; border-top: 4px solid var(--blue); }
@media (min-width: 640px) { .form-card { padding: 36px 36px; } }
.form-card h3 { font-size: 22px; margin-bottom: 6px; }
.form-card > p { color: var(--muted); font-size: 14px; }
.form-grid { display: grid; gap: 14px; margin-top: 20px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field label { display: block; font-size: 14px; font-weight: 500; color: var(--blue-ink); margin-bottom: 6px; }
.field label .req { color: var(--red); }
.field input, .field textarea {
  width: 100%; border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--tint-2); transition: border-color .2s, background .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); background: #fff; }
.field .err { display: none; margin-top: 4px; font-size: 13px; color: var(--red); }
.field.invalid input, .field.invalid textarea { border-color: var(--red); }
.field.invalid .err { display: block; }
.form-actions { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.form-actions .btn { min-width: 180px; }
.form-status { font-size: 14px; color: var(--blue); }
.form-status.is-error { color: #DF2D01; }
.form-status.is-ok { font-weight: 600; }
.form-actions .btn[disabled] { opacity: .65; cursor: progress; }
/* hidden from people; only bots fill it in */
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 639px) { .form-actions .btn { width: 100%; } }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: var(--blue-footer); color: #cfe2f2; }
.footer-main { display: grid; gap: 32px; padding-top: 56px; padding-bottom: 40px; }
@media (min-width: 900px) { .footer-main { grid-template-columns: 1.3fr 1fr 1fr; gap: 48px; } }
.footer-brand { display: flex; gap: 14px; align-items: center; }
.footer-brand img { width: 60px; height: 60px; background: #fff; border-radius: 50%; padding: 4px; flex: none; }
.footer-brand strong { display: block; color: #fff; font-size: 17px; line-height: 1.4; }
.footer-brand span { font-size: 13px; color: #a9c9e3; }
.footer-tagline { margin-top: 18px; font-size: 14px; color: #a9c9e3; }
.site-footer h4 { color: #fff; font-size: 15px; letter-spacing: .1em; margin-bottom: 14px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.footer-links a { color: #cfe2f2; font-size: 14px; }
.footer-links a:hover { color: var(--orange); }
.footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact svg { width: 16px; height: 16px; flex: none; color: var(--orange); margin-top: 5px; }
.footer-contact a { color: #cfe2f2; }
.footer-contact a:hover { color: #fff; }
.footer-bottom { background: var(--blue-deep); padding: 16px 0; font-size: 13px; color: #a9c9e3; }
.footer-bottom .container { display: flex; flex-direction: column; gap: 6px; align-items: center; text-align: center; }
@media (min-width: 900px) { .footer-bottom .container { flex-direction: row; justify-content: space-between; text-align: left; } }

/* back to top */
.to-top {
  position: fixed; right: 16px; bottom: 16px; z-index: 40; width: 48px; height: 48px; border-radius: 50%; border: 0;
  background: var(--blue); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .3s, transform .3s, visibility .3s, background .3s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--red); }
.to-top svg { width: 22px; height: 22px; }

/* lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; margin: 0; }
.lightbox::backdrop { background: rgba(0, 20, 40, .88); }
.lightbox-inner { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: 56px 12px 24px; }
.lightbox img { max-width: min(100%, 960px); max-height: 100%; object-fit: contain; border-radius: 8px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); background: #fff; }
.lightbox-close, .lightbox-nav {
  position: absolute; border: 0; width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff;
  display: grid; place-items: center; transition: background .2s;
}
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(255, 255, 255, .3); }
.lightbox-close { top: 8px; right: 8px; }
.lightbox-nav { top: 50%; transform: translateY(-50%); }
.lightbox-nav.prev { left: 8px; }
.lightbox-nav.next { right: 8px; }
.lightbox svg { width: 22px; height: 22px; }
.lightbox-count { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 14px; letter-spacing: .1em; }
@media (min-width: 768px) { .lightbox-nav.prev { left: 24px; } .lightbox-nav.next { right: 24px; } .lightbox-close { top: 20px; right: 24px; } }

/* phones: short company name + no sub-name, so the 繁/EN toggle fits next to the menu button */
.brand-name .short { display: none; }
@media (max-width: 519px) {
  .brand-sub { display: none; }
  .brand-name { font-size: 16px; }
  .brand-name .long { display: none; }
  .brand-name .short { display: inline; }
}

/* ---------- News: sources, announcements, FX ---------- */
.news-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 13px; }
.news-source { color: var(--muted); }
.news-link { font-weight: 500; white-space: nowrap; }
.news-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.news-item.feature-news .news-actions .btn { margin: 0; }
.news-item.feature-news p { color: #d7e7f4; display: block; -webkit-line-clamp: unset; }
.btn-outline-light { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .6); }
.btn-outline-light:hover { background: #fff; color: var(--blue); }
.news-item:not(.feature-news) .btn-outline-light { color: var(--blue); border-color: var(--blue); }

.fx-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; box-shadow: var(--shadow); }
.fx-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin-bottom: 14px; }
.fx-head h4 { font-size: 16px; }
.fx-updated { font-size: 12px; color: var(--muted); }
.fx-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 700px) { .fx-grid { grid-template-columns: repeat(4, 1fr); } }
.fx-tile { background: var(--tint-2); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fx-cur { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.fx-cur strong { color: var(--blue); font-size: 14px; letter-spacing: .04em; }
.fx-cur span { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-rate { font-size: 18px; font-weight: 700; color: var(--blue-ink); font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: 6px; }
.fx-dir { font-size: 11px; }
.fx-dir.up { color: #1a8f4c; }
.fx-dir.down { color: var(--red); }
.fx-note { margin: 12px 0 0; font-size: 12px; color: var(--muted); }
