@charset "UTF-8";

/* =========================================================
   RoboTask 粵語官網 · 公共樣式 common.css
   主題色 Primary: #3678B2
   説明：導航欄與頁腳通過 nav.js / footer.js 注入，
   其樣式集中在本檔案，便於多頁面統一維護。
   ========================================================= */

/* ---------- 設計變量 ---------- */
:root {
  --rt-primary: #3678B2;
  --rt-primary-dark: #2a5d8c;
  --rt-primary-light: #5b94c7;
  --rt-primary-soft: #eaf2f9;
  --rt-ink: #1c2733;
  --rt-ink-soft: #51606e;
  --rt-muted: #8a98a6;
  --rt-line: #e4eaf0;
  --rt-bg: #ffffff;
  --rt-bg-alt: #f5f8fb;
  --rt-radius: 14px;
  --rt-radius-lg: 22px;
  --rt-shadow-sm: 0 2px 10px rgba(28, 39, 51, .06);
  --rt-shadow-md: 0 12px 34px rgba(28, 39, 51, .10);
  --rt-shadow-lg: 0 26px 60px rgba(42, 93, 140, .18);
  --rt-font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB",
             "Helvetica Neue", Arial, "Segoe UI", sans-serif;
  --rt-maxw: 1200px;
}

/* ---------- 基礎重置 ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--rt-font);
  color: var(--rt-ink);
  background: var(--rt-bg);
  line-height: 1.75;
  font-size: 16px;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.rt-container {
  width: 100%;
  max-width: var(--rt-maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* =========================================================
   導航欄 Header / Navbar
   ========================================================= */
/* 注入容器不形成約束塊，避免 sticky 吸頂範圍被限制導致滾動後導航欄丟失 */
#rt-header { display: contents; }
.rt-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--rt-line);
}
.rt-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

/* 品牌 Logo */
.rt-brand { display: flex; align-items: center; gap: 12px; }
.rt-brand__logo { width: 42px; height: 42px; object-fit: contain; }
.rt-brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.rt-brand__name { font-size: 20px; font-weight: 800; letter-spacing: .02em; color: var(--rt-ink); }
.rt-brand__sub { font-size: 11px; color: var(--rt-muted); font-weight: 500; }

/* 主菜單 */
.rt-menu { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.rt-menu__link {
  display: inline-block;
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--rt-ink-soft);
  transition: color .2s ease, background .2s ease;
}
.rt-menu__link:hover { color: var(--rt-primary); background: var(--rt-primary-soft); }
.rt-menu__link.is-active { color: var(--rt-primary); background: var(--rt-primary-soft); font-weight: 700; }

/* 語言切換（桌面下拉） */
.rt-lang { position: relative; }
.rt-lang__btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 12px; border: 1px solid var(--rt-line); border-radius: 12px;
  background: #fff; font-family: inherit; font-size: 14.5px; font-weight: 600;
  color: var(--rt-ink-soft); cursor: pointer;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.rt-lang__btn:hover { color: var(--rt-primary); border-color: var(--rt-primary-light); }
.rt-lang__btn svg { width: 18px; height: 18px; flex: none; }
.rt-lang__btn svg:last-child { width: 14px; height: 14px; transition: transform .2s ease; }
.rt-lang.is-open .rt-lang__btn { color: var(--rt-primary); border-color: var(--rt-primary); }
.rt-lang.is-open .rt-lang__btn svg:last-child { transform: rotate(180deg); }
.rt-lang__menu {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 150px;
  background: #fff; border: 1px solid var(--rt-line); border-radius: 14px;
  box-shadow: var(--rt-shadow-md); padding: 6px; z-index: 1100;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}
.rt-lang.is-open .rt-lang__menu { opacity: 1; visibility: visible; transform: translateY(0); }
.rt-lang__item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 14px; border-radius: 9px;
  font-size: 14.5px; font-weight: 600; color: var(--rt-ink-soft);
  transition: background .2s ease, color .2s ease;
}
.rt-lang__item svg { width: 16px; height: 16px; flex: none; }
.rt-lang__item:hover { background: var(--rt-primary-soft); color: var(--rt-primary); }
.rt-lang__item.is-active { color: var(--rt-primary); background: var(--rt-primary-soft); }

/* 語言切換（移動抽屜） */
.rt-drawer__langs { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--rt-line); }
.rt-drawer__langtitle { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--rt-muted); margin-bottom: 12px; }
.rt-drawer__lang {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-radius: 12px; margin-bottom: 6px;
  font-size: 15px; font-weight: 600; color: var(--rt-ink); background: var(--rt-bg-alt);
}
.rt-drawer__lang svg { width: 18px; height: 18px; flex: none; color: var(--rt-muted); }
.rt-drawer__lang > span { flex: 1; }
.rt-drawer__lang:hover { background: var(--rt-primary-soft); color: var(--rt-primary); }
.rt-drawer__lang.is-active { background: var(--rt-primary-soft); color: var(--rt-primary); }
.rt-drawer__lang.is-active svg { color: var(--rt-primary); }

/* 操作按鈕區 */
.rt-actions { display: flex; align-items: center; gap: 12px; }
.rt-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .18s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.rt-btn svg { width: 18px; height: 18px; flex: none; }
/* 下載試用：弱化 */
.rt-btn--ghost {
  background: transparent;
  color: var(--rt-primary-dark);
  border-color: var(--rt-line);
}
.rt-btn--ghost:hover { border-color: var(--rt-primary-light); background: var(--rt-primary-soft); }
/* 立即購買：突出 */
.rt-btn--primary {
  background: linear-gradient(135deg, var(--rt-primary) 0%, var(--rt-primary-dark) 100%);
  color: #fff;
  box-shadow: var(--rt-shadow-md);
}
.rt-btn--primary:hover { transform: translateY(-2px); box-shadow: var(--rt-shadow-lg); }

/* 漢堡按鈕 */
.rt-burger {
  display: none;
  width: 46px; height: 46px;
  border: 1px solid var(--rt-line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  position: relative;
}
.rt-burger span {
  position: absolute; left: 50%; top: 50%;
  width: 20px; height: 2px;
  background: var(--rt-ink);
  border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform .3s ease, opacity .2s ease;
}
.rt-burger span:nth-child(1) { transform: translate(-50%, -7px); }
.rt-burger span:nth-child(3) { transform: translate(-50%, 5px); }
body.rt-menu-open .rt-burger span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
body.rt-menu-open .rt-burger span:nth-child(2) { opacity: 0; }
body.rt-menu-open .rt-burger span:nth-child(3) { transform: translate(-50%, -50%) rotate(-45deg); }

/* ---------- 移動端抽屜菜單 ---------- */
.rt-drawer {
  position: fixed;
  inset: 0;
  z-index: 1100;
  pointer-events: none;
}
.rt-drawer__mask {
  position: absolute; inset: 0;
  background: rgba(16, 28, 40, .42);
  opacity: 0;
  transition: opacity .3s ease;
}
.rt-drawer__panel {
  position: absolute;
  top: 0; right: 0;
  width: min(86vw, 360px);
  height: 100%;
  background: #fff;
  box-shadow: -20px 0 60px rgba(28, 39, 51, .22);
  transform: translateX(100%);
  transition: transform .36s cubic-bezier(.22, 1, .36, 1);
  display: flex;
  flex-direction: column;
  padding: 26px 24px calc(26px + env(safe-area-inset-bottom));
  overflow-y: auto;
}
body.rt-menu-open .rt-drawer { pointer-events: auto; }
body.rt-menu-open .rt-drawer__mask { opacity: 1; }
body.rt-menu-open .rt-drawer__panel { transform: translateX(0); }

.rt-drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 18px; margin-bottom: 14px;
  border-bottom: 1px solid var(--rt-line);
}
.rt-drawer__brand { display: flex; align-items: center; gap: 10px; }
.rt-drawer__brand img { width: 36px; height: 36px; }
.rt-drawer__brand b { font-size: 17px; }
.rt-drawer__close {
  width: 40px; height: 40px; border: none; background: var(--rt-bg-alt);
  border-radius: 10px; font-size: 22px; color: var(--rt-ink-soft); cursor: pointer;
  line-height: 1;
}
.rt-drawer__nav { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.rt-drawer__nav li { opacity: 0; transform: translateX(18px); }
body.rt-menu-open .rt-drawer__nav li { animation: rtDrawerItem .42s forwards; }
body.rt-menu-open .rt-drawer__nav li:nth-child(1) { animation-delay: .08s; }
body.rt-menu-open .rt-drawer__nav li:nth-child(2) { animation-delay: .14s; }
body.rt-menu-open .rt-drawer__nav li:nth-child(3) { animation-delay: .20s; }
body.rt-menu-open .rt-drawer__nav li:nth-child(4) { animation-delay: .26s; }
body.rt-menu-open .rt-drawer__nav li:nth-child(5) { animation-delay: .32s; }
@keyframes rtDrawerItem { to { opacity: 1; transform: translateX(0); } }
.rt-drawer__link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 16px;
  border-radius: 12px;
  font-size: 16px; font-weight: 600; color: var(--rt-ink);
  background: var(--rt-bg-alt);
}
.rt-drawer__link:hover { background: var(--rt-primary-soft); color: var(--rt-primary); }
.rt-drawer__link.is-active { background: var(--rt-primary-soft); color: var(--rt-primary); font-weight: 700; }
.rt-drawer__link.is-active svg { color: var(--rt-primary); }
.rt-drawer__link svg { width: 16px; height: 16px; color: var(--rt-muted); }
.rt-drawer__actions { margin-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.rt-drawer__actions .rt-btn { width: 100%; justify-content: center; padding: 14px; }

/* =========================================================
   頁腳 Footer
   ========================================================= */
.rt-footer {
  background: linear-gradient(180deg, #f7fafd 0%, #eef4fa 100%);
  border-top: 1px solid var(--rt-line);
  padding: 56px 0 30px;
  margin-top: 0;
}
.rt-footer__top {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 40px;
  align-items: start;
}
.rt-footer__links { display: flex; flex-direction: column; gap: 10px; }
.rt-footer__links h4 { margin: 0 0 6px; font-size: 15px; color: var(--rt-ink); }
.rt-footer__links a { font-size: 14px; color: var(--rt-ink-soft); transition: color .2s ease; }
.rt-footer__links a:hover { color: var(--rt-primary); }
.rt-footer__brand { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.rt-footer__brand img { width: 48px; height: 48px; }
.rt-footer__brand .n { font-size: 21px; font-weight: 800; }
.rt-footer__brand .s { font-size: 12px; color: var(--rt-muted); }
.rt-footer__note {
  max-width: 560px;
  color: var(--rt-ink-soft);
  font-size: 14px;
  line-height: 1.85;
}
.rt-footer__note .en { display: block; margin-top: 8px; color: var(--rt-muted); font-size: 13px; }

.rt-footer__contact { display: flex; flex-direction: column; gap: 14px; }
.rt-footer__contact h4 { margin: 0 0 4px; font-size: 15px; color: var(--rt-ink); }
.rt-contact-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid var(--rt-line);
  border-radius: 12px;
  box-shadow: var(--rt-shadow-sm);
}
.rt-contact-item__icon {
  width: 38px; height: 38px; flex: none;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--rt-primary-soft);
  color: var(--rt-primary);
}
.rt-contact-item__icon svg { width: 19px; height: 19px; }
.rt-contact-item__meta small { display: block; color: var(--rt-muted); font-size: 12px; }
.rt-contact-item__meta b { font-size: 16px; color: var(--rt-ink); letter-spacing: .02em; }

.rt-footer__bottom {
  margin-top: 40px; padding-top: 22px;
  border-top: 1px solid var(--rt-line);
  display: flex; flex-wrap: wrap; gap: 10px;
  align-items: center; justify-content: space-between;
  color: var(--rt-muted); font-size: 13px;
}
.rt-footer__bottom strong { color: var(--rt-ink-soft); font-weight: 600; }

/* =========================================================
   響應式
   ========================================================= */
@media (max-width: 900px) {
  .rt-menu, .rt-actions { display: none; }
  .rt-burger { display: block; }
  .rt-footer__top { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  .rt-nav { height: 64px; }
  .rt-brand__logo { width: 36px; height: 36px; }
  .rt-brand__name { font-size: 18px; }
}

/* =========================================================
   通用內容區塊（多頁面共享）
   ========================================================= */
.sec { padding: 92px 0; }
.sec--alt { background: var(--rt-bg-alt); }
.sec__head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.sec__tag {
  display: inline-block; padding: 6px 14px; margin-bottom: 16px;
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--rt-primary); background: var(--rt-primary-soft); border-radius: 8px;
}
.sec__title { margin: 0 0 14px; font-size: 36px; line-height: 1.3; font-weight: 800; color: var(--rt-ink); }
.sec__desc { margin: 0; font-size: 17px; color: var(--rt-ink-soft); }

/* 小圖標徽標 */
.ic-badge {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--rt-primary-soft); color: var(--rt-primary);
}
.ic-badge svg { width: 22px; height: 22px; }

/* 內頁頁頭 Hero */
.page-hero {
  position: relative; overflow: hidden;
  padding: 72px 0 64px; text-align: center;
  background:
    radial-gradient(1000px 460px at 80% -10%, #e3eefb 0%, rgba(227,238,251,0) 60%),
    radial-gradient(820px 420px at -6% 110%, #eef5fc 0%, rgba(238,245,252,0) 58%),
    linear-gradient(180deg, #fbfdff 0%, #f3f8fd 100%);
  border-bottom: 1px solid var(--rt-line);
}
.page-hero__inner { position: relative; z-index: 1; max-width: 820px; margin: 0 auto; }
.page-hero__tag {
  display: inline-block; padding: 6px 14px; margin-bottom: 18px;
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--rt-primary); background: var(--rt-primary-soft); border-radius: 8px;
}
.page-hero__title { margin: 0 0 16px; font-size: 44px; line-height: 1.2; font-weight: 800; color: var(--rt-ink); letter-spacing: -.01em; }
.page-hero__title em { font-style: normal; color: var(--rt-primary); }
.page-hero__lead { margin: 0 auto; max-width: 680px; font-size: 18px; line-height: 1.85; color: var(--rt-ink-soft); }
.page-hero__actions { margin-top: 30px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* 通用 CTA 橫幅 */
.cta-band {
  background: linear-gradient(135deg, var(--rt-primary) 0%, var(--rt-primary-dark) 100%);
  color: #fff; border-radius: var(--rt-radius-lg);
  padding: 56px 48px; text-align: center;
  box-shadow: var(--rt-shadow-lg);
}
.cta-band h2 { font-size: 32px; font-weight: 800; margin: 0 0 12px; }
.cta-band p { font-size: 17px; opacity: .92; margin: 0 0 28px; }
.cta-band .rt-btn--ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.4); }
.cta-band .rt-btn--ghost:hover { background: rgba(255,255,255,.22); }
.cta-band .rt-btn--light { background: #fff; color: var(--rt-primary-dark); }
.cta-band .rt-btn--light:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(0,0,0,.25); }
.cta-band__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* 麪包屑 */
.rt-crumb { font-size: 13.5px; color: var(--rt-muted); margin-bottom: 20px; }
.rt-crumb a { color: var(--rt-primary); }
.rt-crumb a:hover { text-decoration: underline; }
.rt-crumb span { margin: 0 8px; opacity: .6; }

@media (max-width: 880px) {
  .sec { padding: 64px 0; }
  .sec__title { font-size: 28px; }
  .page-hero { padding: 52px 0 44px; }
  .page-hero__title { font-size: 32px; }
  .page-hero__lead { font-size: 16px; }
}
@media (max-width: 560px) {
  .page-hero__title { font-size: 26px; }
  .page-hero__actions .rt-btn { width: 100%; justify-content: center; }
}
