/* HKUIUX Site Theme — Dark / AI Design v1
   黑色風格全局 token 、頭底、font 、mobile drawer 。
   只覆寫全站外觀；頁面內部 section/grid 仍由各頁原 CSS 控制。 */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400;500;600;700;800;900&family=Noto+Sans+HK:wght@400;500;600;700;800;900&family=Noto+Sans+Mono:wght@400;500;600;700&family=Noto+Sans+SC:wght@400;500;600;700;800;900&family=Noto+Sans+TC:wght@400;500;600;700;800;900&display=swap');

:root{
  --bg:#0b0b0d;
  --bg-2:#0f0f12;
  --surface:#141416;
  --surface-2:#1c1c20;
  --surface-3:#22222a;
  --line:rgba(255,255,255,0.08);
  --line-strong:rgba(255,255,255,0.16);
  --text:#ECECEE;
  --text-muted:rgba(236,236,238,0.65);
  --text-faint:rgba(236,236,238,0.4);
  --accent:#FF7A1A;
  --accent-2:#F97316;
  --accent-soft:rgba(255,122,26,0.14);
  --radius-sm:6px;
  --radius-md:12px;
  --radius-lg:18px;
  --radius-full:999px;
  --shadow-md:0 12px 40px -16px rgba(0,0,0,0.6);
  --shadow-glow:0 10px 30px -10px rgba(234,88,12,0.55);
  --transition:200ms cubic-bezier(0.16,1,0.3,1);
  --site-header-h:64px;
  --font-body:'Noto Sans HK','Noto Sans TC','Noto Sans SC','Noto Sans',-apple-system,BlinkMacSystemFont,'PingFang HK','PingFang TC','Microsoft JhengHei',sans-serif;
  --font-body-sc:'Noto Sans SC','Noto Sans TC','Noto Sans HK','Noto Sans',-apple-system,BlinkMacSystemFont,'PingFang SC','Microsoft YaHei',sans-serif;
  --font-body-en:'Noto Sans','Noto Sans HK','Noto Sans TC',-apple-system,BlinkMacSystemFont,sans-serif;
  --font-display:'Noto Sans HK','Noto Sans TC','Noto Sans SC','Noto Sans',-apple-system,BlinkMacSystemFont,'PingFang HK','PingFang TC','Microsoft JhengHei',sans-serif;
  --font-display-sc:'Noto Sans SC','Noto Sans TC','Noto Sans HK','Noto Sans',-apple-system,BlinkMacSystemFont,'PingFang SC','Microsoft YaHei',sans-serif;
  --font-display-en:'Noto Sans','Noto Sans HK','Noto Sans TC',-apple-system,BlinkMacSystemFont,sans-serif;
  --font-mono:'Noto Sans Mono','Noto Sans HK','Noto Sans TC',monospace;
  --type-body:clamp(15px,0.94vw,16px);
  --type-small:13px;
  --type-kicker:12px;
  --type-h1:clamp(32px,3.4vw,52px);
  --type-h2:clamp(26px,2.6vw,40px);
  --type-h3:clamp(22px,2vw,30px);
  --type-h4:clamp(18px,1.35vw,22px);
  --type-hero:clamp(34px,4.4vw,60px);
}
@media(min-width:1024px){:root{--site-header-h:72px}}

/* ===== Reset ‥ minimal ===== */
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
html,body{margin:0;padding:0;background:var(--bg);color:var(--text);
  font-family:var(--font-body);
  font-size:var(--type-body);
  font-weight:400;line-height:1.65;
  -webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;
  text-rendering:optimizeLegibility;
}
html[lang="zh-Hans"] body{font-family:var(--font-body-sc)}
html[lang="en"] body,html[lang="en-US"] body{font-family:var(--font-body-en)}

img,picture,video,canvas,svg{display:block;max-width:100%;height:auto}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer}
p,li{font-size:1rem;font-weight:400;line-height:1.75}
strong,b{font-weight:600}

/* Typography scale: Noto only */
h1,h2,h3,h4,h5,h6{
  font-family:var(--font-body);
  font-weight:800;
  letter-spacing:0;
  line-height:1.18;
  margin:0;
}
h1:not([class*="text-sm"]){font-size:var(--type-h1) !important}
h2:not([class*="text-sm"]){font-size:var(--type-h2) !important}
h3:not([class*="text-sm"]){font-size:var(--type-h3) !important}
h4:not([class*="text-sm"]){font-size:var(--type-h4) !important}
h1 > span,h2 > span,h3 > span{font-size:inherit !important;line-height:inherit}

.font-display{
  font-family:var(--font-display);
  font-weight:800;
  letter-spacing:0;
}
html[lang="zh-Hans"] .font-display{font-family:var(--font-display-sc)}
html[lang="en"] .font-display,html[lang="en-US"] .font-display{font-family:var(--font-display-en)}
.font-display.italic,.type-highlight{
  font-family:var(--font-display) !important;
  font-style:normal !important;
  font-weight:900;
  color:var(--accent) !important;
  background:none !important;
  -webkit-text-fill-color:currentColor !important;
  white-space:normal;
}
html[lang="zh-Hans"] .font-display.italic,
html[lang="zh-Hans"] .type-highlight{font-family:var(--font-display-sc) !important}
html[lang="en"] .font-display.italic,
html[lang="en-US"] .font-display.italic,
html[lang="en"] .type-highlight,
html[lang="en-US"] .type-highlight{font-family:var(--font-display-en) !important}

.mono,.font-mono{font-family:var(--font-mono);letter-spacing:0.03em}
.italic,em,i{font-style:normal !important}

::selection{background:rgba(255,122,26,0.45);color:#fff}

/* ===== Container ===== */
.site-container{max-width:1400px;margin:0 auto;padding:0 24px}
@media(min-width:1024px){.site-container{padding:0 40px}}

/* ===== Buttons (shared across pages) ===== */
.btn-primary,
.btn-dark,
.btn-whatsapp{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:13px 22px;
  border-radius:999px;
  font-weight:700;
  font-size:14px;
  text-decoration:none;
  white-space:nowrap;
  overflow:hidden;
  transition:transform .25s, box-shadow .25s, background-position .6s, border-color .25s, color .25s;
}
.btn-primary::before,
.btn-dark::before,
.btn-whatsapp::before{
  content:"";
  position:absolute;
  inset:1px;
  border-radius:inherit;
  pointer-events:none;
}
.btn-primary{
  color:#fff !important;
  text-shadow:0 1px 0 rgba(0,0,0,0.2);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0) 42%),
    linear-gradient(90deg,#EA580C 0%,#F97316 52%,#FF9A3D 100%);
  background-size:100% 100%, 200% 100%;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.24),
    inset 0 -1px 0 rgba(120,44,0,0.24),
    0 12px 28px -12px rgba(234,88,12,0.68);
}
.btn-primary::before{
  background:linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0) 38%, rgba(0,0,0,0.08) 100%);
}
.btn-primary:hover{
  color:#fff !important;
  transform:translateY(-1px);
  background-position:0 0,100% 0;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.28),
    inset 0 -1px 0 rgba(120,44,0,0.3),
    0 16px 34px -14px rgba(249,115,22,0.78);
}
.btn-dark{
  color:var(--accent) !important;
  text-shadow:none;
  border:1px solid var(--line-strong);
  background:rgba(255,255,255,0.03);
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 10px 28px -18px rgba(0,0,0,0.76);
}
.btn-dark::before{
  background:linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0) 42%);
}
.btn-dark:hover{
  color:var(--accent) !important;
  transform:translateY(-1px);
  border-color:rgba(255,255,255,0.22);
  background:rgba(255,255,255,0.06);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.1),
    0 14px 32px -20px rgba(255,122,26,0.24);
}
.btn-whatsapp{
  color:#fff !important;
  text-shadow:0 1px 0 rgba(0,0,0,0.18);
  border:1px solid rgba(255,255,255,0.08);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0) 42%),
    linear-gradient(90deg,#22C55E 0%,#25D366 52%,#4ADE80 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.22),
    inset 0 -1px 0 rgba(7,94,44,0.2),
    0 14px 30px -14px rgba(37,211,102,0.5);
}
.btn-whatsapp::before{
  background:linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0) 38%, rgba(0,0,0,0.06) 100%);
}
.btn-whatsapp:hover{
  color:#fff !important;
  transform:translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.26),
    inset 0 -1px 0 rgba(7,94,44,0.24),
    0 18px 34px -16px rgba(37,211,102,0.56);
}
.btn-primary i,
.btn-dark i,
.btn-whatsapp i{
  color:inherit !important;
  position:relative;
  z-index:1;
}
.btn-primary > *,
.btn-dark > *,
.btn-whatsapp > *{
  position:relative;
  z-index:1;
}
.btn-ghost{display:inline-flex;align-items:center;gap:8px;padding:12px 20px;border-radius:999px;border:1px solid var(--line-strong);color:var(--text);font-weight:500;font-size:14px;transition:all .25s}
.btn-ghost:hover{border-color:var(--accent);color:var(--accent)}

/* ===== HEADER (injected by site-header.js) ===== */
/* Sticky header (fixed for bullet-proof support) */
#site-header{position:fixed;top:0;left:0;right:0;z-index:1000}
.site-header{background:rgba(11,11,13,0.82);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border-bottom:1px solid var(--line)}
body{padding-top:var(--site-header-h)}
html,body{overflow-x:clip}
.site-header .row{max-width:1400px;margin:0 auto;padding:0 16px;height:64px;display:flex;align-items:center;justify-content:space-between;gap:12px}
@media(min-width:1024px){.site-header .row{padding:0 32px;height:72px}}

.site-brand{display:flex;align-items:center;gap:14px;min-width:0}
.site-brand img{width:48px;height:48px;border-radius:12px}
.site-brand > div{min-width:0}
.site-brand .brand-wordmark{font-family:var(--font-body);font-weight:900;font-style:normal;font-size:30px;letter-spacing:0;line-height:1;
  background:linear-gradient(90deg,#FBBF24 0%,#F59E0B 30%,#F97316 60%,#EA580C 100%);
  -webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:transparent}
.site-brand small{display:block;font-family:var(--font-body-en);font-size:11px;font-weight:700;letter-spacing:0.16em;color:var(--text-faint);margin-top:4px;text-transform:none;white-space:nowrap;line-height:1.15}
@media(max-width:767px){
  .site-header .row{width:100%;padding:0 10px;gap:6px}
  .site-brand{gap:8px;flex:1 1 auto}
  .site-brand img{width:40px;height:40px;border-radius:10px}
  .site-brand .brand-wordmark{font-size:25px}
  .site-brand small{font-size:8px;letter-spacing:0.08em;margin-top:3px}
}

.site-nav{display:none;align-items:center;gap:36px}
@media(min-width:1024px){.site-nav{display:flex}}
.nav-link{position:relative;font-size:14px;color:var(--text-muted);font-weight:500;letter-spacing:0.01em;transition:color .2s;padding:6px 0}
.nav-link:hover{color:var(--accent)}
.nav-link.active{color:var(--text)}
.nav-link.active:hover{color:var(--accent)}
.nav-link.active::after{content:"";position:absolute;left:50%;bottom:-6px;width:6px;height:6px;border-radius:999px;background:var(--accent);transform:translateX(-50%);box-shadow:0 0 10px var(--accent)}

.site-actions{display:flex;align-items:center;gap:10px;flex:0 0 auto}
.lang-switch{display:none;align-items:center;gap:4px}
@media(min-width:768px){.lang-switch{display:flex}}
.lang-btn{font-family:var(--font-mono);font-size:12px;color:var(--text-muted);padding:4px 8px;border-radius:6px;letter-spacing:0.05em;transition:all .2s}
.lang-btn:hover{color:var(--text)}
.lang-btn.active{background:rgba(255,255,255,0.08);color:var(--text)}
.lang-sep{color:var(--text-faint);font-size:12px}

.nav-cta{display:none}
.nav-cta,
.site-drawer .m-cta .btn-primary{
  position:relative;
  overflow:hidden;
  color:#fff !important;
  text-shadow:0 1px 0 rgba(0,0,0,0.22);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0) 42%),
    linear-gradient(90deg,#EA580C 0%,#F97316 48%,#FF9A3D 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.24),
    inset 0 -1px 0 rgba(120,44,0,0.24),
    0 10px 26px -10px rgba(234,88,12,0.68);
}
.nav-cta::before,
.site-drawer .m-cta .btn-primary::before{
  content:"";
  position:absolute;
  inset:1px;
  border-radius:inherit;
  background:linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0) 36%, rgba(0,0,0,0.08) 100%);
  pointer-events:none;
}
.nav-cta:hover,
.site-drawer .m-cta .btn-primary:hover{
  color:#fff !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.28),
    inset 0 -1px 0 rgba(120,44,0,0.28),
    0 14px 32px -12px rgba(249,115,22,0.76);
}
.nav-cta i,
.site-drawer .m-cta .btn-primary i{
  color:#fff !important;
  text-shadow:0 1px 0 rgba(0,0,0,0.22);
}
@media(min-width:768px){.nav-cta{display:inline-flex;width:118px;height:36px;padding:0 16px;font-size:12.5px;justify-content:center}}
@media(max-width:767px){
  .site-actions{gap:8px}
  .nav-cta{display:inline-flex;width:auto;min-width:104px;height:34px;padding:0 14px;font-size:12px;gap:7px;justify-content:center}
  .nav-cta i{font-size:10px !important}
}

@media(max-width:767px){
  .site-header .nav-cta{
    flex:0 0 auto;
    width:auto;
    min-width:94px;
    height:32px;
    padding:0 12px;
    gap:6px;
    font-size:11.5px;
    line-height:1;
  }
  .site-header .nav-cta i{font-size:10px !important}
}

.menu-btn{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:10px;color:var(--text);font-size:18px}
@media(min-width:1024px){.menu-btn{display:none}}
@media(max-width:767px){.menu-btn{width:36px;height:36px;border-radius:9px;font-size:17px}}
@media(max-width:380px){
  .site-brand img{width:38px;height:38px}
  .site-brand .brand-wordmark{font-size:23px}
  .site-brand small{font-size:7.5px;letter-spacing:0.055em}
  .menu-btn{width:34px;height:34px}
  .site-header .nav-cta{display:none}
}

@media(max-width:360px){
  .site-brand{gap:6px}
  .site-brand img{width:36px;height:36px}
  .site-brand .brand-wordmark{font-size:22px}
  .site-brand small{font-size:7px;letter-spacing:0.04em}
  .site-actions{gap:5px}
  .menu-btn{width:32px;height:32px}
}

/* Mobile drawer */
.site-drawer{display:none;border-top:1px solid var(--line);background:var(--bg)}
.site-drawer.is-open{display:block}
@media(min-width:1024px){.site-drawer,.site-drawer.is-open{display:none}}
.site-drawer .m-list{display:flex;flex-direction:column;padding:18px 24px;gap:4px}
.site-drawer .m-link{display:block;padding:14px 4px;border-bottom:1px dashed var(--line);color:var(--text);font-size:16px;font-weight:600;transition:color .2s}
.site-drawer .m-link:hover,.site-drawer .m-link:active{color:var(--accent)}
.site-drawer .m-link.active{color:var(--accent)}
.site-drawer .m-lang{display:flex;align-items:center;gap:8px;padding:18px 24px;border-top:1px solid var(--line);background:var(--surface)}
.site-drawer .m-lang .lang-btn{font-size:13px}
.site-drawer .m-cta{padding:18px 24px;background:var(--surface)}
.site-drawer .m-cta .btn-primary{width:100%;justify-content:center}

/* ===== FOOTER (injected by site-footer.js) ===== */
.site-footer{margin-top:80px;border-top:1px solid var(--line);background:var(--bg);padding:80px 0 40px;color:var(--text-muted)}
.site-footer .grid{max-width:1400px;margin:0 auto;padding:0 24px;display:grid;grid-template-columns:1fr;gap:48px}
@media(min-width:1024px){.site-footer .grid{grid-template-columns:1.4fr 1fr 1fr 1fr;padding:0 40px;gap:64px}}
.foot-brand .brand-wordmark{font-family:var(--font-body);font-weight:900;font-style:normal;font-size:24px;letter-spacing:0;line-height:1;
  background:linear-gradient(90deg,#FBBF24 0%,#F59E0B 30%,#F97316 60%,#EA580C 100%);
  -webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:transparent}
.foot-brand small{font-family:var(--font-body);font-weight:700;color:var(--text-muted);letter-spacing:0.18em;text-transform:uppercase}
.foot-brand small{display:block;font-family:var(--font-mono);font-size:10px;letter-spacing:0.18em;color:var(--text-faint);margin-top:3px}
.foot-brand p{font-size:14px;color:var(--text-muted);margin-top:18px;max-width:36ch;line-height:1.7}
.foot-h{font-family:var(--font-mono);font-size:11px;letter-spacing:0.25em;color:var(--text-faint);margin-bottom:18px;text-transform:uppercase}
.foot-link{display:block;font-size:14px;color:var(--text-muted);margin-bottom:10px;transition:color .2s}
button.foot-link{width:max-content;text-align:left;padding:0;background:none;border:0;line-height:1.6}
.foot-link:hover{color:var(--text)}
.foot-link i{color:var(--accent);margin-right:8px}

.foot-social{display:flex;gap:12px;margin-top:4px}
.soc{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:999px;border:1px solid var(--line);color:var(--text-muted);background:rgba(255,255,255,0.02);transition:all .25s ease;font-size:15px}
.soc:hover{color:#fff;background:var(--accent);border-color:var(--accent);transform:translateY(-2px);box-shadow:0 8px 22px -10px rgba(255,122,26,0.6)}

.site-footer .copyright{max-width:1400px;margin:48px auto 0;padding:32px 24px 0;border-top:1px solid var(--line);display:flex;flex-direction:column;gap:8px;font-size:12px;color:var(--text-faint)}
@media(min-width:768px){.site-footer .copyright{padding:32px 40px 0;flex-direction:row;justify-content:space-between;align-items:center}}
.footer-legal-links{display:flex;flex-wrap:wrap;gap:10px 18px;align-items:center}
.footer-legal-links button{padding:0;color:var(--text-muted);font-size:12px;background:none;border:0;transition:color .2s}
.footer-legal-links button:hover{color:var(--text)}

html.footer-modal-open{overflow:hidden}
.footer-modal{position:fixed;inset:0;z-index:2000;display:none;align-items:center;justify-content:center;padding:24px}
.footer-modal.is-open{display:flex}
.footer-modal-backdrop{position:absolute;inset:0;background:rgba(0,0,0,0.72);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
.footer-modal-card{position:relative;z-index:1;width:min(720px,100%);max-height:min(82vh,760px);display:flex;flex-direction:column;background:#0B0B10;border:1px solid var(--line-strong);border-radius:18px;box-shadow:0 30px 90px -28px rgba(0,0,0,0.9);overflow:hidden}
.footer-modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:24px 28px;border-bottom:1px solid var(--line)}
.footer-modal-head h3{font-size:24px !important;line-height:1.2;font-weight:800;color:var(--text)}
.footer-modal-updated{font-family:var(--font-mono);font-size:10px;letter-spacing:0.14em;text-transform:uppercase;color:var(--accent);margin-bottom:8px}
.footer-modal-close{width:36px;height:36px;border-radius:10px;border:1px solid var(--line);display:inline-flex;align-items:center;justify-content:center;color:var(--text-muted);background:rgba(255,255,255,0.03);flex:0 0 auto}
.footer-modal-close:hover{color:var(--text);border-color:rgba(255,122,26,0.45);background:rgba(255,122,26,0.08)}
.footer-modal-body{padding:24px 28px 30px;overflow-y:auto;color:var(--text-muted);font-size:14px;line-height:1.75}
.footer-modal-body h4{font-size:15px !important;font-weight:800;color:var(--text);margin:22px 0 6px}
.footer-modal-body h4:first-child{margin-top:0}
.footer-modal-body p{font-size:14px;line-height:1.75;margin:0 0 12px}
@media(max-width:640px){
  .footer-modal{padding:16px}
  .footer-modal-head,.footer-modal-body{padding-left:20px;padding-right:20px}
}

/* ===== Reveal animation (utility) ===== */
.reveal{opacity:0;transform:translateY(20px);transition:opacity .8s ease,transform .8s ease}
.reveal.in{opacity:1;transform:translateY(0)}
@media (prefers-reduced-motion:reduce){.reveal{opacity:1;transform:none;transition:none}}

/* ===== Tailwind-like color overrides for legacy markup ===== */
.text-slate-600,.text-slate-700,.text-slate-800,.text-slate-900,.text-gray-600,.text-gray-700,.text-gray-800,.text-gray-900{color:var(--text) !important}
.text-slate-500,.text-gray-500{color:var(--text-muted) !important}
.bg-white,.bg-slate-50,.bg-gray-50,.bg-slate-100,.bg-gray-100{background:var(--surface) !important;color:var(--text)}
.bg-slate-900,.bg-gray-900,.bg-black{background:var(--bg) !important}
.border-slate-100,.border-slate-200,.border-gray-100,.border-gray-200{border-color:var(--line) !important}
.shadow-xl,.shadow-2xl,.shadow-lg{box-shadow:var(--shadow-md) !important}
.text-brand-500,.text-brand-600,.text-brand-700,.text-orange-500,.text-orange-600{color:var(--accent) !important}
.text-brand-gradient,.text-gold-gradient{
  font-family:var(--font-display) !important;
  font-weight:900;
  background:none !important;
  -webkit-background-clip:border-box;
  background-clip:border-box;
  -webkit-text-fill-color:currentColor !important;
  color:var(--accent) !important;
  font-style:normal !important;
  white-space:normal;
}
html[lang="zh-Hans"] .text-brand-gradient,
html[lang="zh-Hans"] .text-gold-gradient{font-family:var(--font-display-sc) !important}
html[lang="en"] .text-brand-gradient,
html[lang="en-US"] .text-brand-gradient,
html[lang="en"] .text-gold-gradient,
html[lang="en-US"] .text-gold-gradient{font-family:var(--font-display-en) !important}
.bg-brand-500,.bg-brand-600,.bg-orange-500,.bg-orange-600{background:var(--accent) !important;color:#fff}
