/* ==========================================================================
   易屋管 ELHouse 官網
   版面取自「UIKIT - Landing Page Apartment」Figma 樣板：
   深藍 #27374D、米色 #F8F5F2、直角方塊、Inter／Montserrat（中文用 Noto Sans TC）。
   ========================================================================== */

:root {
  --navy: #27374d;
  --navy-deep: #1b2636;
  --navy-soft: #3a4d68;
  --ink: #1d1d1c;
  --text: #454545;
  --muted: #6f6f6c;
  --white: #fefefe;
  --beige: #f8f5f2;
  --sand: #e6e3df;
  --stone: #d2ccc6;
  --line: rgba(29, 29, 28, .16);
  --ok: #1e8a5a;
  --warn: #b7791f;
  --info: #2f6db5;
  --danger: #c0392b;

  --font-body: "Inter", "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
  --font-head: "Montserrat", "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;

  --container: 1224px;
  --gutter: 24px;
  --header-h: 86px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p, figure, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
[hidden] { display: none !important; }

.ico {
  width: 1em; height: 1em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round;
}
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--navy); color: #fff; padding: 10px 16px; text-decoration: none;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--info); outline-offset: 3px; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.text-center { text-align: center; }
.text-white { color: var(--white) !important; }

/* ---------- 文字 ---------- */
.eyebrow {
  font-size: 16px; font-weight: 500; line-height: 24px;
  color: var(--text); margin-bottom: 14px;
  display: flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.section-head--center .eyebrow { justify-content: center; }
.h2 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(30px, 3.1vw, 44px);
  line-height: 1.27;
  color: var(--ink);
  letter-spacing: .01em;
}
.h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(28px, 2.8vw, 40px);
  line-height: 1.3;
  color: var(--navy);
}
.h4 { font-size: 20px; font-weight: 600; line-height: 1.4; color: var(--ink); }
.lead { font-size: 16px; line-height: 1.75; color: var(--text); }
.section { padding: 96px 0; position: relative; }
.section--beige { background: var(--beige); }
.section-head { margin-bottom: 48px; max-width: 720px; }
.section-head .lead { margin-top: 16px; }
.section-head--center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head .lead a { color: var(--navy); font-weight: 600; }

/* ---------- 按鈕 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 0 24px;
  border: 1px solid transparent; border-radius: 0;
  font-family: var(--font-head); font-weight: 700; font-size: 14px; letter-spacing: .06em;
  text-decoration: none; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn .ico { font-size: 18px; transition: transform .2s var(--ease); }
.btn:hover .ico { transform: translateX(3px); }
.btn-lg { min-height: 52px; min-width: 224px; padding: 0 32px; }
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-deep); }
.btn-light { background: var(--white); color: var(--navy); }
.btn-light:hover { background: var(--sand); }
.btn-dark { background: var(--ink); color: #f2f2f2; }
.btn-dark:hover { background: #000; }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; padding: 0;
  background: transparent; border: 0; color: inherit; font-size: 24px;
}
.icon-btn--line { border: 1px solid var(--ink); color: var(--ink); font-size: 20px; transition: background-color .2s, color .2s; }
.icon-btn--line:hover { background: var(--ink); color: var(--white); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-weight: 500; font-size: 16px; line-height: 23px; text-decoration: none;
  color: var(--white);
}
.link-arrow .ico { font-size: 18px; transition: transform .2s var(--ease); }
.link-arrow:hover .ico { transform: translateX(4px); }

.check-list { display: grid; gap: 13px; margin: 28px 0 0; }
.check-list li { display: flex; align-items: center; gap: 16px; line-height: 24px; }
.check-list .ico { font-size: 22px; color: var(--navy); }
.check-list--2col { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; row-gap: 16px; }

/* 樣板的三段線指示器 */
.bars { display: flex; gap: 16px; }
.bars span, .bars button {
  width: 53px; height: 12px; padding: 0; border: 0; background: transparent; position: relative;
}
.bars span::after, .bars button::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%;
  height: 1px; background: var(--navy); transform: translateY(-50%); transition: height .25s;
}
.bars .is-on::after, .bars [aria-selected="true"]::after { height: 3px; }
.bars--dark span::after, .bars--dark button::after { background: var(--ink); }

/* ---------- 導覽列 ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  color: var(--white);
  transition: background-color .3s, box-shadow .3s, color .3s;
}
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 16px; text-decoration: none; flex: none; }
.brand-logo { height: 42px; width: auto; }
.brand-logo--color { display: none; }
.brand-product {
  display: flex; flex-direction: column; justify-content: center;
  padding-left: 16px; border-left: 1px solid currentColor;
  font-family: var(--font-head); font-weight: 700; font-size: 18px; line-height: 1.15; letter-spacing: .08em;
}
.brand-product small { font-size: 11px; letter-spacing: .14em; font-weight: 600; opacity: .85; }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 32px; }
.main-nav a {
  position: relative; display: block; padding: 10px 0;
  font-weight: 600; font-size: 14px; line-height: 17px; text-decoration: none;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.main-nav a:hover::after, .main-nav .active a::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 16px; }
.header-cta { min-width: 160px; }
.header-login { gap: 8px; padding: 0 18px; background: transparent; color: inherit; border-color: rgba(254, 254, 254, .7); }
.header-login .ico { font-size: 18px; }
.header-login:hover { background: rgba(254, 254, 254, .14); border-color: var(--white); }
.header-login:hover .ico { transform: none; }
.menu-btn { display: none; }

.site-header.is-stuck { background: var(--white); color: var(--navy); box-shadow: 0 6px 24px rgba(39, 55, 77, .1); }
.site-header.is-stuck .brand-logo--white { display: none; }
.site-header.is-stuck .brand-logo--color { display: block; }
.site-header.is-stuck .header-cta { background: var(--navy); color: var(--white); }
.site-header.is-stuck .header-cta:hover { background: var(--navy-deep); }
.site-header.is-stuck .header-login { border-color: var(--navy); }
.site-header.is-stuck .header-login:hover { background: var(--beige); }

.mobile-menu {
  background: var(--white); color: var(--navy);
  border-top: 1px solid var(--line);
  box-shadow: 0 16px 32px rgba(39, 55, 77, .15);
  max-height: calc(100vh - var(--header-h)); overflow-y: auto;
}
.mobile-menu ul { padding: 8px var(--gutter); }
.mobile-menu li a {
  display: block; padding: 14px 0; border-bottom: 1px solid var(--line);
  font-weight: 600; text-decoration: none;
}
.mobile-menu-actions { display: grid; gap: 12px; padding: 16px var(--gutter) 24px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; height: clamp(620px, 100svh, 800px); overflow: hidden;
  background: var(--navy-deep); color: var(--white);
}
.hero-slides, .hero-slide { position: absolute; inset: 0; }
.hero-slide { opacity: 0; visibility: hidden; transition: opacity .9s var(--ease), visibility 0s .9s; }
.hero-slide.is-active { opacity: 1; visibility: visible; transition: opacity .9s var(--ease); }
.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.06); transition: transform 7s linear;
}
.hero-slide.is-active .hero-bg { transform: scale(1); }
.hero-slide::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 25, 37, .78) 0%, rgba(17, 25, 37, .45) 50%, rgba(17, 25, 37, .15) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, .35) 0%, rgba(0, 0, 0, 0) 22%);
}
.hero-content {
  position: relative; z-index: 1; height: 100%;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: var(--header-h);
}
.hero-content > * { max-width: 600px; }
.hero-eyebrow { font-size: 14px; font-weight: 600; letter-spacing: .14em; margin-bottom: 20px; opacity: .9; }
.hero-title {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(40px, 5.2vw, 68px); line-height: 1.25; letter-spacing: .02em;
}
.hero-text { margin: 20px 0 22px; font-size: 16px; font-weight: 500; line-height: 1.7; max-width: 470px; }
.hero-slide.is-active .hero-content > * { animation: rise .9s var(--ease) both; }
.hero-slide.is-active .hero-content > :nth-child(2) { animation-delay: .08s; }
.hero-slide.is-active .hero-content > :nth-child(3) { animation-delay: .16s; }
.hero-slide.is-active .hero-content > :nth-child(4) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

.hero-dots { position: absolute; left: 0; right: 0; bottom: 64px; z-index: 2; display: flex; gap: 16px; }
.hero-dots button { width: 53px; height: 20px; padding: 0; border: 0; background: transparent; position: relative; }
.hero-dots button::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px;
  background: #f2f2f2; transform: translateY(-50%); transition: height .25s;
}
.hero-dots [aria-selected="true"]::after { height: 3px; }

.hero-rail {
  position: absolute; right: max(24px, calc((100vw - 1440px) / 2 + 90px)); top: 50%; z-index: 2;
  transform: translateY(-50%); display: grid; gap: 10px;
}
.hero-rail a {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--white); color: var(--navy); font-size: 17px;
  transition: transform .2s, background-color .2s, color .2s;
}
.hero-rail a:hover { background: var(--navy); color: var(--white); transform: translateX(-3px); }

/* ---------- 產品介紹 ---------- */
.about { background: #fff; }
.about-grid { display: grid; grid-template-columns: 430px 1fr; gap: 45px; align-items: center; }
.about-copy .h2 { margin-bottom: 24px; }
.about-copy .lead { max-width: 400px; }
.about-copy .check-list { margin: 32px 0 52px; }
.about-media { display: grid; grid-template-columns: 414fr 276fr; gap: 28px; height: 578px; }
.about-photo { position: relative; overflow: hidden; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.about-photo:hover img { transform: scale(1.04); }
.about-photo figcaption {
  position: absolute; left: 0; bottom: 0; background: var(--navy); color: var(--white);
  padding: 10px 18px; font-size: 14px; font-weight: 600; letter-spacing: .06em;
}
.about-photo--b { margin-top: 0; }

/* ---------- 核心功能 ---------- */
.feature-tabs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 30px; margin-bottom: 62px; }
.feature-tab {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px;
  height: 173px; padding: 16px; border: 0;
  background: var(--navy); color: var(--white);
  font-size: 16px; font-weight: 500; letter-spacing: .08em;
  transition: background-color .25s, transform .25s var(--ease);
}
.feature-tab .ico { font-size: 46px; stroke-width: 1.4; }
.feature-tab:hover { background: var(--navy-soft); transform: translateY(-4px); }
.feature-tab[aria-selected="true"] { background: var(--navy-deep); }
.feature-tab[aria-selected="true"]::after {
  content: ""; position: absolute; left: 50%; bottom: -10px; width: 20px; height: 20px;
  background: var(--navy-deep); transform: translateX(-50%) rotate(45deg);
}
.feature-panel { display: grid; grid-template-columns: 645fr 475fr; gap: 60px; align-items: center; }
.feature-panel:not([hidden]) { animation: fade .5s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.feature-media { aspect-ratio: 645 / 461; overflow: hidden; }
.feature-media img { width: 100%; height: 100%; object-fit: cover; }
.feature-copy .h3 { margin-bottom: 16px; }
.feature-copy p { line-height: 26px; }
.feature-copy .check-list { margin-top: 32px; }
.features .bars { margin-top: 44px; width: calc((100% - 60px) * 645 / 1120); justify-content: center; }

/* ---------- 適用場域（拼貼） ---------- */
.scenes { background: var(--white); }
.mosaic { display: grid; grid-template-columns: 384fr 393fr 393fr; gap: 27px; }
.mosaic-col { display: grid; gap: 27px; align-content: start; }
.tile { position: relative; overflow: hidden; background: var(--sand); }
.tile--s { aspect-ratio: 393 / 260; }
.tile--m { aspect-ratio: 393 / 288; }
.tile--l { aspect-ratio: 393 / 578; }
.mosaic-col:first-child .tile--s { aspect-ratio: 384 / 256; }
.mosaic-col:first-child .tile--l { aspect-ratio: 384 / 579; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.tile::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(27, 38, 54, 0) 45%, rgba(27, 38, 54, .82) 100%);
  transition: opacity .3s;
}
.tile figcaption {
  position: absolute; left: 24px; right: 24px; bottom: 20px; z-index: 1; color: var(--white);
  display: grid; gap: 2px; transition: transform .35s var(--ease);
}
.tile figcaption strong { font-family: var(--font-head); font-size: 20px; font-weight: 700; letter-spacing: .04em; }
.tile figcaption span { font-size: 14px; opacity: .85; }
.tile:hover img { transform: scale(1.06); }
.tile:hover figcaption { transform: translateY(-4px); }

/* ---------- 雙平台 ---------- */
.platform .h2 { margin-bottom: 40px; }
.line-tabs {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; margin: 0 0 56px;
  border-bottom: 1px solid var(--ink);
}
.line-tabs button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 0 0 18px; border: 0; background: transparent;
  font-size: 17px; font-weight: 500; color: var(--muted); transition: color .2s;
}
.line-tabs button .ico { font-size: 20px; }
.line-tabs button[aria-selected="true"], .line-tabs button:hover { color: var(--ink); }
.line-tabs-bar {
  position: absolute; left: 0; bottom: -2px; width: 50%; height: 3px; background: var(--ink);
  transition: transform .35s var(--ease);
}
.line-tabs[data-active="1"] .line-tabs-bar { transform: translateX(100%); }
.platform-panel { display: grid; grid-template-columns: 539fr 604fr; gap: 84px; align-items: center; }
.platform-panel:not([hidden]) { animation: fade .5s var(--ease); }
.platform-copy .h4 { color: var(--text); margin-bottom: 22px; }
.platform-copy > p { line-height: 24px; margin-bottom: 28px; }
.spec div {
  display: flex; justify-content: space-between; gap: 24px; align-items: baseline;
  padding: 10px 0 12px; border-bottom: 1px solid var(--text);
}
.spec div + div { margin-top: 14px; }
.spec dt { font-weight: 500; color: var(--text); flex: none; }
.spec dd { font-size: 14px; text-align: right; color: var(--text); }
.platform-visual {
  position: relative; aspect-ratio: 604 / 536; background: var(--navy);
  display: grid; place-items: center; padding: 40px 32px; overflow: hidden;
}
.platform-visual::before {
  content: ""; position: absolute; width: 460px; height: 460px; right: -160px; top: -160px;
  border: 60px solid rgba(255, 255, 255, .05); border-radius: 50%;
}

/* 示意畫面：共用 */
.mock-bar {
  display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px;
  background: #eef0f3; border-bottom: 1px solid #dde1e7; font-size: 12px; color: #6b7280;
}
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d4d8de; }
.mock-bar i:nth-child(1) { background: #f26d5f; }
.mock-bar i:nth-child(2) { background: #f4bd4f; }
.mock-bar i:nth-child(3) { background: #61c454; }
.mock-bar span { margin-left: 10px; }
.tag {
  display: inline-block; padding: 2px 8px; font-style: normal; font-size: 11px; font-weight: 600;
  border-radius: 2px; white-space: nowrap;
}
.tag--ok { background: #e3f3ea; color: var(--ok); }
.tag--warn { background: #fbf0dc; color: var(--warn); }
.tag--info { background: #e2ecf8; color: var(--info); }
.tag--muted { background: #eceae7; color: #66625d; }

.mock-window {
  position: relative; width: 100%; background: #fff; box-shadow: 0 30px 60px rgba(0, 0, 0, .3);
  font-size: 12px; color: #374151;
}
.mock-body { padding: 18px; }
.mock-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.mock-toolbar b { font-size: 15px; color: var(--ink); margin-right: auto; }
.mock-chip { padding: 4px 10px; border: 1px solid #dde1e7; font-size: 11px; color: #6b7280; }
.mock-chip.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }
.mock-tr {
  display: grid; grid-template-columns: 64px 64px 1fr 72px; gap: 8px; align-items: center;
  padding: 10px 4px; border-bottom: 1px solid #eef0f3;
}
.mock-th { font-weight: 600; color: #9aa1ab; font-size: 11px; padding-top: 0; }

.mock-phone {
  position: relative; width: 250px; height: 470px; padding: 12px; border-radius: 36px;
  background: #0f1621; box-shadow: 0 30px 60px rgba(0, 0, 0, .35);
}
.mock-phone-notch {
  position: absolute; top: 12px; left: 50%; width: 90px; height: 20px; transform: translateX(-50%);
  background: #0f1621; border-radius: 0 0 14px 14px; z-index: 1;
}
.mock-phone-screen {
  height: 100%; border-radius: 26px; overflow: hidden; background: var(--beige);
  padding: 36px 16px 16px; font-size: 11px; color: var(--text);
}
.mp-hello { font-size: 17px; font-weight: 700; color: var(--ink); }
.mp-sub { margin-bottom: 14px; color: var(--muted); }
.mp-bill {
  display: grid; gap: 2px; padding: 14px; color: #fff;
  background: linear-gradient(135deg, var(--navy) 0%, #3d5576 100%);
}
.mp-bill b { font-family: var(--font-head); font-size: 22px; letter-spacing: .02em; }
.mp-bill small { opacity: .8; }
.mp-pay {
  margin-top: 10px; padding: 7px 0; text-align: center; background: #fff; color: var(--navy);
  font-weight: 700; font-size: 11px; letter-spacing: .04em;
}
.mp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 14px 0; }
.mp-grid span {
  display: grid; justify-items: center; gap: 6px; padding: 10px 0; background: #fff;
  font-size: 10px; color: var(--ink);
}
.mp-grid .ico { font-size: 20px; color: var(--navy); }
.mp-notice { display: flex; gap: 8px; align-items: center; padding: 10px; background: #fff; line-height: 1.4; }
.mp-notice .ico { font-size: 16px; color: var(--warn); }

/* ---------- 整合服務 ---------- */
.services { overflow: hidden; padding: 109px 0; }
.services-bg { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; }
.services::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(230, 227, 223, .96) 0%, rgba(230, 227, 223, .88) 55%, rgba(230, 227, 223, .7) 100%);
}
.services-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 35px; row-gap: 60px;
  grid-template-areas: "intro b" "a b";
}
.services-intro { grid-area: intro; max-width: 540px; }
.services-intro .h2 { margin-bottom: 24px; }
.service-tiles { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 35px; }
.service-tiles--a { grid-area: a; align-self: end; }
.service-tiles--b { grid-area: b; align-content: start; margin-top: 27px; row-gap: 62px; }
.service-tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  aspect-ratio: 291 / 288; padding: 24px; background: var(--navy); color: var(--white);
  transition: transform .3s var(--ease), background-color .3s;
}
.service-tile:hover { transform: translateY(-6px); background: var(--navy-deep); }
.service-tile .ico { font-size: 72px; stroke-width: 1.2; margin-bottom: 26px; }
.service-tile strong { font-size: 20px; font-weight: 500; line-height: 24px; }
.service-tile span { margin-top: 9px; font-size: 15px; font-weight: 500; line-height: 24px; opacity: .85; }

/* ---------- 產品導覽 ---------- */
.tour { background: var(--white); padding-bottom: 96px; }
.tour-band { background: var(--navy); padding: 121px 0 330px; color: var(--white); }
.tour-head { text-align: center; max-width: 900px; }
.tour-head p { max-width: 707px; margin: 22px auto 44px; font-weight: 500; line-height: 26px; }
.dash {
  position: relative; max-width: 1109px; margin: -260px auto 0; background: #fff;
  box-shadow: 0 40px 80px rgba(27, 38, 54, .25); font-size: 12px; color: #374151;
}
.dash-body { display: grid; grid-template-columns: 190px 1fr; min-height: 560px; }
.dash-side { background: var(--navy-deep); color: rgba(255, 255, 255, .78); padding: 18px 12px; }
.dash-brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 18px; color: #fff; font-weight: 700; font-size: 14px; }
.dash-brand span {
  display: grid; place-items: center; width: 28px; height: 28px; background: var(--white); color: var(--navy);
  font-weight: 900;
}
.dash-side li { display: flex; align-items: center; gap: 10px; padding: 9px 10px; }
.dash-side li .ico { font-size: 15px; }
.dash-side li.is-on { background: rgba(255, 255, 255, .1); color: #fff; box-shadow: inset 3px 0 0 #fff; }
.dash-main { background: #f6f7f9; padding: 20px 24px 24px; }
.dash-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.dash-top b { font-size: 18px; color: var(--ink); }
.dash-top span { color: #8a919c; }
.dash-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 14px; }
.dash-kpis > div { background: #fff; padding: 16px; border-top: 3px solid var(--navy); display: grid; gap: 4px; }
.dash-kpis small { color: #8a919c; font-size: 12px; }
.dash-kpis b { font-family: var(--font-head); font-size: 28px; color: var(--ink); line-height: 1.1; }
.dash-kpis b em { font-style: normal; font-size: 13px; margin-left: 3px; color: #8a919c; font-family: var(--font-body); }
.dash-kpis span { color: #8a919c; font-size: 11px; }
.dash-kpis > div:last-child { border-top-color: var(--warn); }
.dash-row { display: grid; grid-template-columns: 1.3fr 1fr; gap: 14px; }
.dash-card { background: #fff; padding: 18px; }
.dash-card-title { font-weight: 600; font-size: 13px; color: var(--ink); margin-bottom: 14px; }
.dash-bars { display: grid; gap: 14px; }
.dash-bars div { display: grid; grid-template-columns: 72px 1fr 38px; align-items: center; gap: 10px; }
.dash-bars i { height: 10px; background: #eceef2; position: relative; }
.dash-bars i::after {
  content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--navy);
  transform-origin: left; transform: scaleX(0); transition: transform 1.2s var(--ease) .2s;
}
.dash.is-in .dash-bars i::after, html:not(.js) .dash-bars i::after { transform: scaleX(1); }
.dash-bars b { text-align: right; color: var(--ink); }
.dash-list li { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px solid #eef0f3; }
.dash-list li:last-child { border-bottom: 0; }
.mock-note { margin-top: 14px; text-align: center; font-size: 13px; color: var(--muted); }

.process { margin-top: 96px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; counter-reset: step; }
.steps li { position: relative; padding: 32px 28px 34px; background: var(--beige); transition: background-color .3s, color .3s; }
.steps li::after {
  content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 3px; background: var(--navy);
  transform: scaleX(.18); transform-origin: left; transition: transform .4s var(--ease);
}
.steps li:hover::after { transform: scaleX(1); }
.step-no {
  display: block; font-family: var(--font-head); font-weight: 800; font-size: 48px; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px var(--navy); margin-bottom: 22px;
}
.steps h3 { font-size: 20px; font-weight: 600; color: var(--ink); margin-bottom: 10px; }
.steps p { font-size: 15px; line-height: 1.7; }

/* ---------- CTA 色帶 ---------- */
.cta-band { background: var(--sand); padding: 78px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.cta-title { font-size: clamp(26px, 2.8vw, 40px); font-weight: 700; line-height: 1.25; color: var(--ink); margin-bottom: 12px; font-family: var(--font-head); }
.cta-inner p { font-size: 20px; font-weight: 600; line-height: 26px; color: var(--text); }

/* ---------- 使用情境 ---------- */
.roles-grid { display: grid; grid-template-columns: 567fr 487fr; gap: 128px; align-items: center; }
.roles-copy .h2 { margin-bottom: 52px; }
.role-slide:not([hidden]) { animation: fade .5s var(--ease); }
.role-text { font-size: 20px; font-weight: 500; line-height: 1.6; color: var(--text); min-height: 4.8em; }
.role-who { display: flex; align-items: center; gap: 16px; margin-top: 28px; }
.role-icon {
  display: grid; place-items: center; width: 81px; height: 81px; border-radius: 50%;
  background: var(--navy); color: var(--white); font-size: 32px; flex: none;
}
.role-who strong { display: block; font-size: 16px; font-weight: 500; color: var(--ink); }
.role-who small { font-size: 14px; font-weight: 300; color: var(--ink); }
.roles-nav { display: flex; align-items: center; justify-content: space-between; margin-top: 52px; }
.roles-arrows { display: flex; gap: 10px; }
.roles-media { position: relative; aspect-ratio: 487 / 532; }
.roles-frame {
  position: absolute; left: 19.7%; top: 0; width: 80.3%; height: 91%;
  border: 4px solid var(--ink);
}
.role-img {
  position: absolute; left: 0; bottom: 0; width: 90.3%; height: 92%; object-fit: cover;
  opacity: 0; transition: opacity .6s var(--ease);
}
.role-img.is-active { opacity: 1; }

/* ---------- 常見問題 ---------- */
.faq-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 80px; align-items: start; }
.faq .section-head { position: sticky; top: calc(var(--header-h) + 24px); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-item:first-child { border-top: 1px solid var(--line); }
.acc-item button {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 24px 0; border: 0; background: transparent; text-align: left;
  font-size: 18px; font-weight: 600; color: var(--ink); line-height: 1.5;
}
.acc-item button::after {
  content: ""; flex: none; width: 14px; height: 14px;
  background:
    linear-gradient(currentColor, currentColor) center / 14px 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 14px no-repeat;
  transition: transform .3s var(--ease);
}
.acc-item button[aria-expanded="true"]::after { transform: rotate(45deg); }
.acc-item button:hover { color: var(--navy); }
.acc-panel p { padding: 0 40px 26px 0; line-height: 1.8; }
.acc-panel:not([hidden]) { animation: fade .35s var(--ease); }

/* ---------- 聯絡我們 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 80px; align-items: start; }
.contact-info .h2 { margin-bottom: 20px; }
.contact-list { display: grid; gap: 16px; margin-top: 36px; }
.contact-list a { display: inline-flex; align-items: center; gap: 16px; text-decoration: none; font-weight: 500; color: var(--ink); }
.contact-list a:hover { color: var(--navy); text-decoration: underline; }
.contact-ico {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy); color: var(--white); font-size: 18px;
}
.contact-form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px;
  background: #fff; padding: 40px; box-shadow: 0 20px 50px rgba(39, 55, 77, .08);
}
.field { display: grid; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink); }
.field label span { color: var(--danger); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--stone); border-radius: 0;
  background: #fff; color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field select {
  appearance: none; padding-right: 40px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2327374d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 14px center / 16px no-repeat;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(39, 55, 77, .12); }
.field .is-invalid { border-color: var(--danger); }
.field-err { color: var(--danger); font-size: 13px; }
.form-foot { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.form-status { font-size: 14px; flex: 1 1 240px; }
.form-status.is-error { color: var(--danger); }
.form-status.is-ok { color: var(--ok); }

/* ---------- 頁尾 ---------- */
.site-footer { background: var(--navy); color: var(--white); padding: 70px 0 40px; }
.footer-top { display: grid; grid-template-columns: 338px 1fr; gap: 100px; padding-bottom: 60px; }
.footer-brand img { height: 52px; width: auto; margin-bottom: 18px; }
.footer-brand p { font-weight: 500; line-height: 22px; margin-bottom: 24px; opacity: .92; }
.footer-contact { display: grid; gap: 11px; }
.footer-contact a { display: inline-flex; align-items: center; gap: 18px; text-decoration: none; }
.footer-contact .ico { font-size: 18px; }
.footer-contact a:hover span { text-decoration: underline; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; padding-top: 19px; }
.footer-cols h3 { font-size: 16px; font-weight: 600; line-height: 28px; letter-spacing: .08em; margin-bottom: 9px; }
.footer-cols li + li { margin-top: 9px; }
.footer-cols a { text-decoration: none; opacity: .88; transition: opacity .2s; }
.footer-cols a:hover { opacity: 1; text-decoration: underline; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid rgba(254, 254, 254, .6); padding-top: 28px; font-size: 15px;
}
.to-top { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.to-top .ico { width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: var(--white); color: var(--navy); }

/* ---------- 登入視窗 ---------- */
.login-dialog {
  width: min(520px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: 0;
  color: var(--text); box-shadow: 0 30px 80px rgba(0, 0, 0, .3);
}
.login-dialog::backdrop { background: rgba(17, 25, 37, .6); }
.login-head { display: flex; justify-content: space-between; align-items: flex-start; padding: 28px 28px 8px; }
.login-head h2 { font-family: var(--font-head); font-size: 24px; color: var(--ink); }
.login-head p { font-size: 14px; color: var(--muted); }
.icon-btn--plain { width: 36px; height: 36px; font-size: 22px; color: var(--muted); }
.login-options { display: grid; gap: 12px; padding: 16px 28px 28px; }
.login-option {
  display: flex; align-items: center; gap: 16px; padding: 18px; text-decoration: none;
  border: 1px solid var(--stone); transition: border-color .2s, background-color .2s;
}
.login-option:hover, .login-option:focus-visible { border-color: var(--navy); background: var(--beige); }
.login-ico {
  display: grid; place-items: center; width: 48px; height: 48px; flex: none;
  background: var(--sand); color: var(--navy); font-size: 22px;
}
.login-ico--dark { background: var(--navy); color: var(--white); }
.login-text { display: grid; gap: 2px; }
.login-text strong { color: var(--ink); font-size: 16px; }
.login-text small { font-size: 13px; line-height: 1.5; color: var(--muted); }
.login-arrow { margin-left: auto; font-size: 18px; color: var(--navy); }

/* ---------- 捲動進場 ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ==========================================================================
   RWD
   ========================================================================== */
@media (max-width: 1199px) {
  .main-nav ul { gap: 22px; }
  .header-cta { min-width: 0; }
  .about-grid { grid-template-columns: 380px 1fr; }
  .feature-tabs { gap: 16px; }
  .roles-grid { gap: 64px; }
  .footer-top { gap: 60px; }
}

@media (max-width: 991px) {
  :root { --header-h: 72px; }
  .section { padding: 72px 0; }
  .main-nav, .header-cta { display: none; }
  .menu-btn { display: inline-grid; }
  .header-actions { margin-left: auto; gap: 4px; }
  /* 手機：登入只留圖示 */
  .header-login { width: 44px; min-height: 44px; padding: 0; border-color: transparent; }
  .site-header.is-stuck .header-login { border-color: transparent; }
  .header-login .ico { font-size: 22px; }
  .header-login-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .brand-logo { height: 34px; }
  .brand-product { font-size: 16px; padding-left: 12px; }
  .hero-rail { display: none; }

  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-copy .lead { max-width: none; }
  .about-media { height: auto; aspect-ratio: 718 / 578; }

  .feature-tabs { grid-template-columns: repeat(5, minmax(120px, 1fr)); overflow-x: auto; margin: 0 calc(var(--gutter) * -1) 40px; padding: 0 var(--gutter) 14px; scroll-snap-type: x mandatory; }
  .feature-tab { height: 132px; gap: 14px; scroll-snap-align: start; font-size: 15px; }
  .feature-tab .ico { font-size: 36px; }
  .feature-tab:hover { transform: none; }
  .feature-tab[aria-selected="true"]::after { display: none; }
  .feature-panel { grid-template-columns: 1fr; gap: 32px; }
  .features .bars { width: 100%; }

  .mosaic { grid-template-columns: 1fr 1fr; }
  .mosaic-col:last-child { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); }
  .mosaic-col:last-child .tile { aspect-ratio: 1 / 1; }

  .platform-panel { grid-template-columns: 1fr; gap: 40px; }

  .services { padding: 72px 0; }
  .services-grid { grid-template-columns: 1fr; grid-template-areas: "intro" "a" "b"; row-gap: 24px; }
  .services-intro { margin-bottom: 16px; }
  .service-tiles, .service-tiles--b { grid-template-columns: repeat(2, 1fr); gap: 16px; row-gap: 16px; margin-top: 0; }
  .service-tile { aspect-ratio: auto; min-height: 200px; }
  .service-tile .ico { font-size: 52px; margin-bottom: 18px; }

  .tour-band { padding: 80px 0 220px; }
  .dash { margin-top: -180px; }
  .dash-body { grid-template-columns: 1fr; min-height: 0; }
  .dash-side { display: none; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 16px; }

  .cta-inner { flex-direction: column; align-items: flex-start; }

  .roles-grid { grid-template-columns: 1fr; gap: 48px; }
  .roles-media { max-width: 487px; width: 100%; margin: 0 auto; }

  .faq-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .faq .section-head { position: static; }

  .footer-top { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 767px) {
  :root { --gutter: 16px; }
  .section { padding: 60px 0; }
  .section-head { margin-bottom: 32px; }
  .brand-product { display: none; }
  .hero-content > * { max-width: none; }
  .hero-title { font-size: clamp(34px, 9vw, 44px); }
  .hero-dots { bottom: 40px; }
  .about-media { gap: 12px; }
  .check-list--2col { grid-template-columns: 1fr; }
  .mosaic { grid-template-columns: 1fr; gap: 16px; }
  .mosaic-col { gap: 16px; }
  .mosaic-col:last-child { grid-template-columns: 1fr; }
  .mosaic .tile, .mosaic-col:first-child .tile, .mosaic-col:last-child .tile { aspect-ratio: 16 / 10; }
  .line-tabs button { font-size: 15px; }
  .spec dd { max-width: 60%; }
  .platform-visual { padding: 24px 16px; aspect-ratio: auto; }
  .mock-tr { grid-template-columns: 56px 52px 1fr; }
  .mock-tr > :nth-child(3) { display: none; }
  .mock-tr { grid-template-columns: 1fr 1fr auto; }
  .service-tile { min-height: 168px; padding: 16px; }
  .service-tile strong { font-size: 17px; }
  .service-tile span { font-size: 13px; }
  .tour-band { padding: 64px 0 160px; }
  .tour-head p { margin-bottom: 32px; }
  .dash { margin-top: -120px; }
  .dash-main { padding: 14px; }
  .dash-kpis { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .dash-kpis b { font-size: 22px; }
  .dash-row { grid-template-columns: 1fr; }
  .process { margin-top: 64px; }
  .steps { grid-template-columns: 1fr; }
  .cta-band { padding: 56px 0; }
  .cta-inner p { font-size: 17px; }
  .btn-lg { min-width: 0; width: 100%; }
  .role-text { font-size: 18px; min-height: 0; }
  .roles-nav { margin-top: 36px; }
  .acc-item button { font-size: 16px; padding: 20px 0; }
  .acc-panel p { padding-right: 0; }
  .contact-form { grid-template-columns: 1fr; padding: 24px 16px; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero-bg { transform: none !important; }
  .dash-bars i::after { transform: scaleX(1); }
}
