@charset "UTF-8";
/* ==========================================================================
   ATLAS.ti 繁體中文官網 — 公共樣式 common.css
   設計：現代 / 簡潔 / 專業 · 淺色主題
   品牌色：#E30613（主紅） #2563EB（科技藍） #111827（深墨）
   ========================================================================== */

/* ---------- 設計令牌 Design Tokens ---------- */
:root {
  --brand: #E30613;
  --brand-dark: #b80510;
  --brand-soft: #fde7e8;
  --blue: #2563EB;
  --blue-soft: #e8f0fe;
  --ink: #111827;
  --ink-2: #374151;
  --ink-3: #6b7280;
  --line: #e5e7eb;
  --bg: #ffffff;
  --bg-soft: #f7f8fa;
  --bg-soft-2: #f1f3f7;
  --white: #ffffff;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(17, 24, 39, .06);
  --shadow: 0 8px 24px rgba(17, 24, 39, .08);
  --shadow-lg: 0 24px 60px rgba(17, 24, 39, .12);

  --container: 1200px;
  --header-h: 72px;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "微軟雅黑", "Helvetica Neue", Arial,
    "Noto Sans CJK SC", sans-serif;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 重置 Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { color: var(--ink); line-height: 1.3; margin: 0; font-weight: 700; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

/* ---------- 佈局 Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section--soft { background: var(--bg-soft); }
.section--ink { background: var(--ink); color: #d1d5db; }
.section--ink h2, .section--ink h3 { color: #fff; }

.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head .eyebrow { color: var(--brand); }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); margin: 14px 0 16px; letter-spacing: -.01em; }
.section-head p { color: var(--ink-3); font-size: 17px; }

/* ---------- 通用小部件 ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--brand); border-radius: 2px; }

.tag {
  display: inline-block; padding: 4px 12px; border-radius: var(--radius-pill);
  font-size: 12px; font-weight: 700; background: var(--brand-soft); color: var(--brand);
}

/* ---------- 按鈕 Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--radius-pill); border: 1px solid transparent;
  font-size: 15px; font-weight: 600; line-height: 1; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s, border-color .2s;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); }

.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(227, 6, 19, .28); }
.btn--primary:hover { background: var(--brand-dark); box-shadow: 0 12px 28px rgba(227, 6, 19, .36); }

.btn--ghost { background: transparent; color: var(--ink-2); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink-3); color: var(--ink); }

.btn--blue { background: var(--blue); color: #fff; box-shadow: 0 8px 20px rgba(37, 99, 235, .28); }
.btn--blue:hover { background: #1d4ed8; }

.btn--lg { padding: 15px 30px; font-size: 16px; }
.btn--block { width: 100%; }

/* ---------- 卡片 Card ---------- */
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
  overflow: hidden;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d6dae1; }

/* 網格工具 */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- 中英文混排：自動間距由內容空格保證；此處只做西文字型回退 ---------- */
.en { font-family: "Helvetica Neue", Arial, var(--font-sans); }

/* ---------- 進入動畫（非呼吸燈） ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ========================================================================
   導航 Header
   ======================================================================== */
#site-header { display: contents; }
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.site-header__logo { color: var(--ink); flex-shrink: 0; }
.site-header__logo svg, .site-header__logo img { height: 30px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 2px; margin-left: 8px; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 8px 14px; border-radius: var(--radius-sm); font-size: 15px; font-weight: 500;
  color: var(--ink-2); background: none; border: 0; cursor: pointer;
  font-family: inherit; transition: background .2s, color .2s;
}
.nav-link:hover { background: var(--bg-soft-2); color: var(--ink); }
.nav-chevron { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.nav-item--menu:hover .nav-chevron,
.nav-item--menu:focus-within .nav-chevron { transform: rotate(180deg); }

/* ---------- 桌面下拉 ---------- */
.nav-dd {
  position: absolute; top: 100%; left: 50%; transform: translate(-50%, 8px);
  min-width: 230px; padding-top: 10px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.nav-item--menu:hover .nav-dd,
.nav-item--menu:focus-within .nav-dd {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0);
}
.nav-dd__inner {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 8px;
}
.nav-dd__link {
  display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 12px; border-radius: var(--radius-sm); transition: background .18s;
}
.nav-dd__link:hover { background: var(--bg-soft-2); }
.nav-dd__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.nav-dd__label { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.nav-dd__desc { font-size: 12.5px; color: var(--ink-3); }
.nav-dd__link .lang-dd__mark {
  flex-shrink: 0; width: 16px; height: 16px; color: var(--ink-3); opacity: .4;
  transition: opacity .18s, transform .18s, color .18s;
}
.nav-dd__link:hover .lang-dd__mark { opacity: 1; color: var(--brand); transform: translateX(2px); }

/* 右對齊下拉（語言切換） */
.nav-dd--right { left: auto; right: 0; transform: translate(0, 8px); }
.nav-item--menu:hover .nav-dd--right,
.nav-item--menu:focus-within .nav-dd--right { transform: translate(0, 0); }

/* ---------- 語言切換 ---------- */
.site-nav--lang { margin: 0; }
.lang-switch__btn { gap: 6px; }
.lang-globe { width: 18px; height: 18px; }
.lang-switch__cur { font-size: 14px; font-weight: 600; }
.nav-dd--right { min-width: 0; }
.nav-dd--right .nav-dd__inner { min-width: 0; }
.lang-dd__link {
  flex-direction: row; align-items: center; justify-content: flex-start; gap: 10px;
  padding: 9px 14px;
}
.lang-dd__link .nav-dd__label { white-space: nowrap; flex: 1; }
/* 選中項：對勾常顯並使用品牌色 */
.lang-dd__link.is-active {
  background: var(--bg-soft-2); cursor: default;
}
.lang-dd__link.is-active .nav-dd__label { color: var(--brand); }
.lang-dd__link.is-active .lang-dd__mark { color: var(--brand); opacity: 1; transform: none; }

/* 行動裝置語言切換 */
.m-lang { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.m-lang__title {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--ink-3); margin-bottom: 12px;
}
.m-lang__title .lang-globe { width: 16px; height: 16px; }
.m-lang__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.m-lang__item {
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 12px 8px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600; color: var(--ink);
}
.m-lang__item.is-active { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }

.site-header__actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: #fff; padding: 0;
  align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle span { position: relative; }
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

/* ---------- 行動裝置抽屜選單 ---------- */
.mobile-menu { position: fixed; inset: 0; z-index: 200; visibility: hidden; }
.mobile-menu__overlay {
  position: absolute; inset: 0; background: rgba(17, 24, 39, .5);
  opacity: 0; transition: opacity .3s var(--ease);
}
.mobile-menu__panel {
  position: absolute; top: 0; right: 0; height: 100%; width: min(86vw, 380px);
  background: #fff; box-shadow: var(--shadow-lg);
  transform: translateX(100%); transition: transform .35s var(--ease);
  display: flex; flex-direction: column; padding: 20px;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.mobile-menu.is-open { visibility: visible; }
.mobile-menu.is-open .mobile-menu__overlay { opacity: 1; }
.mobile-menu.is-open .mobile-menu__panel { transform: none; }

.mobile-menu__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.mobile-menu__top .site-header__logo svg { height: 26px; }
.mobile-menu__close {
  width: 42px; height: 42px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; font-size: 22px; color: var(--ink); line-height: 1;
}
.mobile-menu__links { margin-top: 12px; display: flex; flex-direction: column; }

/* 直達連結 */
.m-nav__link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 6px; font-size: 17px; font-weight: 600; color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.m-nav__link::after { content: "›"; color: var(--ink-3); font-size: 20px; }

/* 摺疊分組 */
.m-nav__group { border-bottom: 1px solid var(--line); }
.m-nav__head {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 16px 6px; font-size: 17px; font-weight: 600; color: var(--ink);
  background: none; border: 0; cursor: pointer; font-family: inherit; text-align: left;
}
.m-nav__head .nav-chevron { width: 20px; height: 20px; color: var(--ink-3); transition: transform .25s var(--ease); }
.m-nav__group.is-open .m-nav__head .nav-chevron { transform: rotate(180deg); }
.m-nav__panel {
  max-height: 0; overflow: hidden;
  transition: max-height .32s var(--ease), padding .32s var(--ease);
}
.m-nav__group.is-open .m-nav__panel { max-height: 420px; padding-bottom: 8px; }
.m-nav__sublink {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 6px 12px 18px; font-size: 15px; font-weight: 500;
  color: var(--ink-2); border-top: 1px solid var(--line);
}
.m-nav__sublink .lang-dd__mark { flex-shrink: 0; width: 16px; height: 16px; color: var(--ink-3); opacity: .45; }
.mobile-menu__cta { margin-top: 20px; display: grid; gap: 12px; padding-top: 20px; border-top: 1px solid var(--line); }
.mobile-menu__contact { margin-top: 16px; font-size: 13px; color: var(--ink-3); text-align: center; line-height: 1.9; }

body.no-scroll { overflow: hidden; }

/* ========================================================================
   頁尾 Footer
   ======================================================================== */
.site-footer { background: var(--ink); color: #9ca3af; padding: 64px 0 0; }
.site-footer__top {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start;
  padding-bottom: 44px; border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.footer-brand { display: inline-flex; align-items: center; gap: 12px; }
.footer-brand__logo { height: 40px; width: auto; display: block; }
.footer-brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.footer-brand__text b { font-size: 20px; font-weight: 800; color: #fff; letter-spacing: -.01em; }
.footer-brand__text small { font-size: 12px; font-weight: 500; color: #9ca3af; letter-spacing: .02em; }
.site-footer__desc { margin-top: 20px; max-width: 460px; font-size: 14.5px; line-height: 1.9; }
.site-footer__notice {
  margin-top: 22px; max-width: 560px; padding: 4px 0 4px 16px;
  border-left: 3px solid var(--brand);
}
.site-footer__notice p { font-size: 13px; line-height: 1.8; color: #9ca3af; }
.site-footer__notice p + p { margin-top: 8px; }
.site-footer__notice .en { font-size: 12.5px; color: #6b7280; }
.site-footer__notice b { color: #fff; font-weight: 700; }

.footer-contact { display: grid; gap: 14px; }
.footer-contact__item { display: flex; align-items: center; gap: 14px; }
.footer-contact__icon {
  width: 42px; height: 42px; flex-shrink: 0; border-radius: 12px;
  display: grid; place-items: center; background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12); color: var(--brand);
}
.footer-contact__icon svg { width: 20px; height: 20px; }
.footer-contact__label { font-size: 12px; color: #6b7280; }
.footer-contact__value { font-size: 17px; font-weight: 700; color: #fff; letter-spacing: .02em; }

.site-footer__bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 0; font-size: 13px; color: #6b7280; flex-wrap: wrap;
}

/* ========================================================================
   響應式 Responsive
   ======================================================================== */
@media (max-width: 980px) {
  .site-nav { display: none; }
  .site-header__actions .btn--desktop { display: none; }
  .site-header__actions .btn--primary { display: none; }
  .nav-toggle { display: inline-flex; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .section { padding: 60px 0; }
  .site-footer__top { grid-template-columns: 1fr; gap: 32px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .site-footer__bottom { flex-direction: column; align-items: flex-start; }
}
