/* MAKQR 官網 —— 版式參考 BOXS：白底、無襯線、居中標題、漸變首屏卡片、淺灰產品面板、膠囊標籤
   配色沿用 MAKQR：品牌藍 #005FDA、深藍字 #0B2545 */
:root {
  --bg: #FFFFFF;
  --panel: #F5F7FA;
  --ink: #0B2545;
  --ink-2: #4A5568;
  --ink-3: #7A8699;
  --blue: #005FDA;
  --blue-2: #2F86FF;
  --blue-soft: #E8F1FE;
  --line: #E3E8EF;
  --err: #D93025;
  --body: "Inter", "Helvetica Neue", "PingFang HK", "PingFang TC", "PingFang SC", "Noto Sans TC", "Microsoft JhengHei", "Microsoft YaHei", Arial, sans-serif;
  --wrap: min(1160px, 100% - 48px);
  --grad: radial-gradient(120% 90% at 0% 0%, #0A3FB0 0%, transparent 55%),
          radial-gradient(90% 80% at 100% 10%, #29B6FF 0%, transparent 60%),
          linear-gradient(180deg, #005FDA 0%, #2F86FF 100%);
  --shadow: 0 30px 60px -30px rgba(11, 37, 69, .35);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.7 var(--body); -webkit-font-smoothing: antialiased; }
main { overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2 { line-height: 1.2; letter-spacing: -.01em; text-wrap: balance; }
h2 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 600; }
h3 { font-size: 19px; font-weight: 600; line-height: 1.35; }
section { padding: clamp(56px, 8vw, 104px) 0; }
:focus-visible { outline: 3px solid var(--blue-2); outline-offset: 3px; }

/* 按鈕：小矩形 */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 24px; border-radius: 6px; border: 1.5px solid var(--blue);
  background: var(--blue); color: #fff; font: 600 15px/1 var(--body); letter-spacing: .02em; cursor: pointer;
  transition: background .15s, color .15s, transform .15s, box-shadow .15s;
}
.btn:hover { background: #004FB8; border-color: #004FB8; transform: translateY(-1px); box-shadow: 0 8px 18px -8px rgba(0, 95, 218, .6); }
.btn--sm { padding: 9px 16px; font-size: 13px; }
.btn--white { background: #fff; color: var(--blue); border-color: #fff; }
.btn--white:hover { background: #fff; border-color: #fff; color: #004FB8; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .5); }
.btn--line { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.btn--line:hover { background: rgba(255, 255, 255, .14); border-color: #fff; box-shadow: none; }
.btn--block { width: 100%; padding: 14px; }

/* 導航 */
.nav {
  position: sticky; top: 0; z-index: 50; height: 64px; padding: 0 max(24px, calc((100% - 1160px) / 2));
  display: flex; align-items: center; gap: 28px;
  background: rgba(255, 255, 255, .9); backdrop-filter: blur(12px);
}
.nav__logo img { width: 112px; }
.nav__links { display: flex; gap: 30px; margin-left: auto; font-size: 14px; font-weight: 500; letter-spacing: .04em; color: var(--ink); }
.nav__links a { transition: color .15s; }
.nav__links a:hover { color: var(--blue); }
.nav__right { display: flex; align-items: center; gap: 14px; }
.lang { display: flex; gap: 2px; background: var(--panel); border-radius: 6px; padding: 3px; }
.lang button { border: 0; background: transparent; color: var(--ink-2); font: 600 12px/1 var(--body); padding: 7px 9px; border-radius: 4px; cursor: pointer; }
.lang button.is-on { background: #fff; color: var(--blue); box-shadow: 0 1px 3px rgba(11, 37, 69, .15); }
.nav__burger { display: none; width: 40px; height: 40px; border: 0; background: none; cursor: pointer; padding: 10px; }
.nav__burger span { display: block; height: 2px; background: var(--ink); margin: 6px 0; transition: transform .2s; }
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* 首屏：漸變卡片，產品畫面從卡片底部升起 */
.hero { padding: 16px 0 0; }
.hero__card {
  width: var(--wrap); margin: 0 auto; border-radius: 24px; background: var(--grad); color: #fff; text-align: center;
  padding: clamp(48px, 7vw, 88px) clamp(20px, 5vw, 72px) 0; overflow: hidden; position: relative;
}
.hero__kicker { font-size: 14px; font-weight: 600; letter-spacing: .18em; opacity: .85; margin-bottom: 18px; }
.hero__title { font-size: clamp(36px, 6vw, 72px); font-weight: 700; line-height: 1.15; }
.hero__sub { font-size: clamp(16px, 1.6vw, 19px); max-width: 40em; margin: 22px auto 0; opacity: .92; }
.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 30px 0 clamp(36px, 5vw, 56px); }
.hero__window { position: relative; max-width: 900px; margin: 0 auto -9%; }
.hero__window .tablet { box-shadow: 0 -24px 70px -20px rgba(4, 30, 90, .55); }
.hero__phone { position: absolute; width: 19%; right: -4%; bottom: 14%; }

/* 裝置外框 */
.tablet { border: 8px solid #10151F; border-radius: 20px; background: #10151F; overflow: hidden; box-shadow: var(--shadow); }
.tablet img { border-radius: 11px; }
/* 手機框：邊框、圓角按手機自身寬度（cqw）等比縮放，縮小時不會變成粗黑膠囊 */
.phone { container-type: inline-size; }
.phone img { width: 100%; border: 6px solid #10151F; border-radius: 27px; border: 2.8cqw solid #10151F; border-radius: 12.5cqw; background: #10151F; box-shadow: var(--shadow); }
.phone--light img { border-color: #fff; background: #fff; }
.shot { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); }
.screen { border: 3px solid #10151F; border-radius: 6px; background: #10151F; box-shadow: 0 26px 40px -22px rgba(11, 37, 69, .5); }

/* 區塊標題：居中 */
.sec-head { width: var(--wrap); max-width: 820px; margin: 0 auto clamp(32px, 4.5vw, 56px); text-align: center; }
.sec-head h2 span { color: var(--blue); }
.sec-head__sub { margin-top: 14px; color: var(--ink-2); font-size: clamp(16px, 1.5vw, 19px); }

/* 膠囊標籤 */
.pill {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--blue); color: #fff; font-size: 14px; font-weight: 600; line-height: 1; padding: 9px 18px; border-radius: 999px; letter-spacing: .02em;
}

/* 適用業態：分頁切換（緊接首屏，上方留位給首屏升起的畫面） */
.types { padding-top: clamp(96px, 13vw, 170px); }
.types__tabs { width: var(--wrap); margin: 0 auto 20px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.types__tabs button { border: 1.5px solid var(--line); background: #fff; color: var(--ink); font: 600 15px/1 var(--body); padding: 12px 20px; border-radius: 999px; cursor: pointer; white-space: nowrap; transition: background .15s, color .15s, border-color .15s; }
.types__tabs button:hover { border-color: var(--blue); color: var(--blue); }
.types__tabs button[aria-selected="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.types__panel { width: var(--wrap); margin: 0 auto; background: var(--panel); border-radius: 24px; padding: clamp(24px, 4vw, 56px); }
.types__scene { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.types__scene[hidden] { display: none; }
.types__copy h3 { font-size: clamp(24px, 2.8vw, 34px); font-weight: 600; line-height: 1.3; }
.types__steps { counter-reset: t; margin-top: 26px; display: grid; gap: 18px; }
.types__steps li { counter-increment: t; display: grid; grid-template-columns: 34px 1fr; column-gap: 14px; }
.types__steps li::before { content: counter(t); grid-row: span 2; width: 34px; height: 34px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 15px; font-weight: 700; display: grid; place-items: center; }
.types__steps b { font-size: 18px; font-weight: 600; line-height: 34px; }
.types__steps span { color: var(--ink-2); font-size: 15.5px; }
.types__fig figcaption { text-align: center; font-size: 13px; color: var(--ink-3); margin-top: 4px; }

/* 總覽面板 */
.show__panel {
  width: var(--wrap); margin: 0 auto; background: var(--panel); border-radius: 24px; padding: clamp(28px, 4vw, 56px);
  display: grid; grid-template-columns: 2fr 3fr 3fr 2fr; gap: clamp(36px, 4.5vw, 60px) clamp(20px, 3vw, 40px); align-items: stretch;
}
.show__item { display: flex; flex-direction: column; align-items: center; }
.show__item > .phone { width: min(100%, 168px); }
/* 標籤齊頂，畫面在各自欄內垂直居中 */
.show__item > :last-child { margin-block: auto; }
.show__item .pill { margin-bottom: 22px; }
.show__chips { display: grid; gap: 10px; justify-items: center; }

/* 產品影片 */
.film { padding-top: 0; padding-bottom: clamp(20px, 3vw, 44px); }
.film__frame { width: var(--wrap); max-width: 1000px; margin: 0 auto; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 16 / 9; }
.film__frame video { display: block; width: 100%; height: 100%; border-radius: inherit; }

/* 產品功能 */
.product { padding-block: 0; }
.feat { width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding: clamp(36px, 5vw, 60px) 0; }
.feat--flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.feat--flip .feat__copy { order: 2; }
.no { display: inline-block; background: var(--blue-soft); color: var(--blue); font-size: 13px; font-weight: 700; line-height: 1; padding: 7px 14px; border-radius: 999px; margin-bottom: 18px; }
.feat h2 { font-size: clamp(26px, 3vw, 36px); }
.lead { font-size: 18px; font-weight: 500; margin: 14px 0 20px; }
.ticks { display: grid; gap: 9px; color: var(--ink-2); font-size: 16px; }
.ticks li { padding-left: 28px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 13px; height: 7px; border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(-45deg); }
.feat__media { position: relative; background: var(--panel); border-radius: 24px; padding: clamp(20px, 4vw, 48px); }
.feat__media--app .shot { width: 84%; }
.phone--app { position: absolute; width: 23%; right: clamp(14px, 3vw, 36px); bottom: clamp(14px, 3vw, 36px); }
.feat__media--phones { display: flex; align-items: flex-start; justify-content: center; gap: clamp(14px, 3vw, 36px); }
.feat__media--phones .phone { width: min(44%, 240px); }
.phone--drop { margin-top: 9%; }
.feat__media--mix { display: flex; flex-direction: column; align-items: center; gap: clamp(16px, 2.5vw, 28px); }
.feat__media--mix .phone { width: min(40%, 210px); flex: none; }
.shot--float { width: 100%; order: -1; }

/* 外賣流程圖 */
.relay { display: grid; justify-items: center; gap: 10px; padding: 12px 0; }
.relay__src, .relay__out { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.chip { font-weight: 700; font-size: 18px; line-height: 1; padding: 14px 26px; border-radius: 12px; }
.chip--keeta { background: #FFD43B; color: #1F2A37; }
.chip--panda { background: #D70F64; color: #fff; }
.relay__arrow { width: 0; height: 34px; border-left: 1.5px solid var(--blue); position: relative; }
.relay__arrow::after { content: ""; position: absolute; left: -6px; bottom: -1px; border: 5px solid transparent; border-top-color: var(--blue); border-bottom: 0; }
.relay__hub { background: var(--grad); color: #fff; padding: 22px 40px; border-radius: 16px; display: grid; gap: 8px; justify-items: center; box-shadow: var(--shadow); }
.relay__hub small { font-size: 13px; font-weight: 600; opacity: .9; }
.relay__out span { background: #fff; border-radius: 10px; padding: 12px 18px; font-weight: 600; font-size: 15px; box-shadow: 0 2px 8px rgba(11, 37, 69, .08); }

/* 更多功能 */
.more__duo, .more__grid { width: var(--wrap); margin: 0 auto; display: grid; gap: 20px; }
.more__duo { grid-template-columns: repeat(2, 1fr); margin-bottom: 20px; }
.more__grid { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--panel); border-radius: 18px; padding: 26px 26px 28px; transition: transform .18s, box-shadow .18s, background .18s; }
.card:hover { transform: translateY(-3px); background: #fff; box-shadow: 0 18px 40px -20px rgba(11, 37, 69, .35); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--ink-2); font-size: 15.5px; }
.card--img .shot { box-shadow: none; margin-bottom: 22px; aspect-ratio: 16 / 9.6; }
.card--img .shot img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }

/* 案例：漸變卡片 */
.case__inner {
  width: var(--wrap); margin: 0 auto; border-radius: 24px; color: #fff; overflow: hidden;
  background: radial-gradient(90% 90% at 100% 0%, #1D5FD6 0%, transparent 60%), linear-gradient(160deg, #0B2545 0%, #0E3A7A 100%);
  padding: clamp(32px, 5vw, 72px) clamp(24px, 5vw, 72px) 0;
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); align-items: end;
}
.case__copy { padding-bottom: clamp(32px, 5vw, 72px); }
.kicker { display: inline-block; background: rgba(255, 255, 255, .16); color: #fff; font-size: 13px; font-weight: 600; line-height: 1; padding: 8px 14px; border-radius: 999px; }
.sec-head .kicker { background: var(--blue-soft); color: var(--blue); margin-bottom: 16px; }
.case h2 { font-size: clamp(34px, 5vw, 60px); font-weight: 700; margin: 18px 0 12px; }
.case__lead { font-size: 19px; color: #D5E0F1; max-width: 26em; }
.steps { counter-reset: s; margin: 30px 0 24px; display: grid; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 48px 1fr; column-gap: 8px; padding: 16px 0; border-top: 1px solid rgba(255, 255, 255, .16); }
.steps li::before { content: "0" counter(s); grid-row: span 2; font-size: 22px; font-weight: 700; line-height: 1.3; color: #7FB6FF; }
.steps b { font-size: 18px; font-weight: 600; }
.steps span { color: #C3D0E4; font-size: 15.5px; }
.case__note { font-size: 15px; font-weight: 500; color: #9CC3FF; }
.case__media { display: flex; align-items: flex-start; justify-content: center; gap: clamp(14px, 3vw, 28px); margin-bottom: -12%; }
.case__media .phone { width: min(46%, 240px); }
.case__inner { align-items: center; }
.case__media { max-height: 300px; margin-bottom: 0; align-self: end; overflow: hidden; }
.case h2 { font-size: clamp(30px, 4vw, 46px); }

/* 服務 */
.road { width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.road li { background: var(--panel); border-radius: 18px; padding: 26px; }
.road__n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 17px; font-weight: 700; margin-bottom: 18px; }
.road b { font-size: 19px; font-weight: 600; }
.road p { color: var(--ink-2); font-size: 15.5px; }

/* 預約示範：漸變卡片 + 白色表單 */
.demo { padding-top: 0; }
.demo__inner {
  width: var(--wrap); margin: 0 auto; border-radius: 24px; background: var(--grad); color: #fff;
  padding: clamp(28px, 5vw, 72px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: clamp(28px, 5vw, 80px); align-items: center;
}
.demo h2 { font-size: clamp(30px, 4.4vw, 52px); font-weight: 700; margin-bottom: 16px; }
.demo__copy p { font-size: 18px; opacity: .92; max-width: 24em; }
.form { background: #fff; color: var(--ink); border-radius: 18px; padding: 28px; display: grid; gap: 14px; font-size: 14px; box-shadow: 0 30px 60px -30px rgba(4, 30, 90, .6); }
.form label { display: grid; gap: 6px; font-weight: 600; }
.form input, .form textarea { font: 400 16px/1.4 var(--body); color: var(--ink); background: var(--panel); border: 1.5px solid transparent; border-radius: 8px; padding: 11px 12px; resize: vertical; }
.form input:focus, .form textarea:focus { outline: 0; border-color: var(--blue); background: #fff; }
.form .is-bad { border-color: var(--err); }
.form__note { font-size: 12.5px; font-weight: 400; color: var(--ink-3); text-align: center; }
.form__note a, .legal a { color: var(--blue); }
.form__msg { min-height: 1.5em; font-weight: 600; text-align: center; }
.form__msg.is-ok { color: #0A7A3D; }
.form__msg.is-err { color: var(--err); }
.form[hidden] { display: none; }
.form button:disabled { opacity: .6; cursor: progress; transform: none; box-shadow: none; }
/* 提交成功畫面 */
.form--done { justify-items: center; text-align: center; gap: 12px; padding: 36px 28px; animation: rise .5s cubic-bezier(.2, .7, .2, 1) both; }
.done__icon { width: 56px; height: 56px; border-radius: 50%; background: #E6F4EC; position: relative; }
.done__icon::after { content: ""; position: absolute; left: 18px; top: 17px; width: 20px; height: 11px; border-left: 3px solid #0A7A3D; border-bottom: 3px solid #0A7A3D; transform: rotate(-45deg); }
.done__title { font-size: 22px; font-weight: 700; margin: 0; }
.done__title:focus { outline: 0; }
.done__body { margin: 0; color: var(--ink-2); font-size: 15px; }
.done__sum { width: 100%; margin: 8px 0; padding: 14px 16px; background: var(--panel); border-radius: 10px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 14px; text-align: left; }
.done__sum dt { color: var(--ink-3); }
.done__sum dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.btn--line-blue { background: #fff; color: var(--blue); }
.btn--line-blue:hover { background: var(--blue-soft); color: var(--blue); border-color: var(--blue); box-shadow: none; }

/* 頁腳 */
.foot { border-top: 1px solid var(--line); padding: 36px max(24px, calc((100% - 1160px) / 2)); display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; font-size: 14px; color: var(--ink-3); }
.foot img { width: 97px; margin-bottom: 12px; }
.foot__addr { margin-top: 2px; }
.foot__meta { text-align: right; flex: none; }
.foot__links { display: flex; gap: 20px; justify-content: flex-end; margin-bottom: 6px; }
.foot__links a { color: var(--ink-2); }
.foot__links a:hover { color: var(--blue); }

/* 條款／私隱頁 */
.legal { width: min(760px, 100% - 48px); margin: 0 auto; padding: clamp(40px, 6vw, 72px) 0 clamp(24px, 4vw, 48px); }
.legal__back { display: inline-block; font-size: 14px; font-weight: 600; color: var(--blue); margin-bottom: 28px; }
.legal__back::before { content: "← "; }
.legal article { display: none; }
html[lang="zh-HK"] .legal article[lang="zh-HK"], html[lang="zh-CN"] .legal article[lang="zh-CN"], html[lang="en"] .legal article[lang="en"] { display: block; }
.legal h1 { font-size: clamp(30px, 4vw, 42px); font-weight: 700; }
.legal__date { color: var(--ink-3); font-size: 14px; margin: 10px 0 28px; }
.legal h2 { font-size: 19px; font-weight: 600; margin: 30px 0 8px; }
.legal p, .legal li { color: var(--ink-2); font-size: 16px; }
.legal ul { list-style: disc; padding-left: 22px; margin-top: 6px; }

/* 動效 */
.rise { opacity: 0; transform: translateY(20px); animation: rise .8s cubic-bezier(.2, .7, .2, 1) forwards; animation-delay: calc(var(--d) * 100ms + 60ms); }
.hero__window.rise { transform: translateY(60px); }
@keyframes rise { to { opacity: 1; transform: none; } }
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rise, .hero__window.rise, .js .reveal { opacity: 1; transform: none; animation: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* 平板 */
@media (max-width: 980px) {
  .feat, .feat--flip, .case__inner, .demo__inner, .types__scene { grid-template-columns: 1fr; }
  .feat--flip .feat__copy { order: 0; }
  .more__grid, .road { grid-template-columns: repeat(2, 1fr); }
  .case__copy { padding-bottom: 0; }
}
/* 手機 */
@media (max-width: 720px) {
  :root { --wrap: calc(100% - 32px); }
  body { font-size: 16px; }
  .nav { padding: 0 16px; gap: 12px; }
  .nav__right { margin-left: auto; }
  .nav__burger { display: block; }
  .nav .btn--sm { display: none; }
  .nav__links { position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0; margin: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 4px 16px 12px; display: none; }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .hero__card, .show__panel, .film__frame, .feat__media, .case__inner, .demo__inner { border-radius: 18px; }
  .hero__title { font-size: clamp(26px, 8.2vw, 36px); }
  .hero__card { padding-inline: 16px; }
  .hero__window { margin-bottom: -3%; }
  .hero__cta .btn { flex: 1; padding-inline: 14px; }
  .tablet { border-width: 5px; border-radius: 13px; }
  .tablet img { border-radius: 7px; }
  .show__panel { grid-template-columns: 1fr; }
  .types__panel { border-radius: 18px; }
  .types__tabs { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .show__chips { display: flex; }
  .more__duo, .more__grid, .road { grid-template-columns: 1fr; }
  .foot { flex-direction: column; align-items: flex-start; padding: 28px 16px; }
  .foot__meta { text-align: left; }
  .foot__links { justify-content: flex-start; }
  .legal { width: calc(100% - 32px); }
  .chip { font-size: 16px; padding: 12px 20px; }
}
.case__note { margin-top: 14px; }
