/* ======================================================================
   設計系統 Design Tokens
   品牌色、中性色、圓角、陰影、字型及版面寬度
   ====================================================================== */
:root {
    /* --- 主色 · 科技藍 --- */
    --blue-800: #0D47A1;  /* CTA 按鈕、註解主色 */
    --blue-700: #1565C0;  /* 講求 hover 與線條重點 */
    --blue-600: #1E88E5;  /* 裝飾漸層 */
    --blue-500: #42A5F5;  /* 深色背景內的文字重點 */
    --blue-100: #E4F0FB;  /* 請進裝飾 */
    --blue-50:  #F1F7FD;  /* 背景軟色區塊 */

    /* --- 輔色 · 永續綠 --- */
    --green-600: #7BC043;  /* 生命綠·品牌輔色之一 */
    --teal-600:  #26A69A;  /* 主黃薄荷·多在中色背景 */
    --teal-500:  #00BFA6;  /* 亮黃薄荷·深色背景主色 */
    --green-50:  #ECF7EC;  /* 永續類背景 */

    /* --- 中性色 · ink 色階 (深 → 淺) --- */
    --ink-900: #07172F;  /* 主文字 · 深色區塊背景 */
    --ink-800: #0A1F3F;  /* hover 狀態上的深色 */
    --ink-700: #1E2B45;  /* 次要文字 */
    --ink-500: #54627A;  /* 說明文字 */
    --ink-400: #7E8AA0;  /* 提示 / 註解文字 */
    --ink-300: #B6BFCF;  /* 深色上的說明文字 */
    --ink-200: #DDE3ED;  /* 邊框 · 分割線 */
    --ink-100: #EEF2F8;  /* 淺背景 */
    --paper:   #F6F8FB;  /* 頁面主背景 */

    /* --- 圓角尺度 --- */
    --r-md: 12px;
    --r-lg: 20px;
    --r-xl: 28px;

    /* --- 陰影 --- */
    --shadow-sm: 0 1px 2px rgba(7,23,47,.04), 0 1px 1px rgba(7,23,47,.03);
    --shadow-md: 0 8px 24px -8px rgba(7,23,47,.10), 0 2px 6px -2px rgba(7,23,47,.04);
    --shadow-lg: 0 32px 64px -24px rgba(7,23,47,.18), 0 8px 16px -8px rgba(7,23,47,.06);

    /* --- 字型堆疊 --- */
    --font-zh: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
    --font-en: "Manrope", "Noto Sans TC", system-ui, sans-serif;

    /* --- 主內容寬度 --- */
    --container: 1240px;
}

/* ======================================================================
   全局重設與基本型態
   ====================================================================== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* 預防任何內容超出產生水平滾動 (手機裝置上尤其重要) */
html, body { overflow-x: hidden; max-width: 100%; }
body {
    margin: 0;
    font-family: var(--font-zh);
    color: var(--ink-900);
    background: var(--paper);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

::selection { background: var(--blue-700); color: white; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* 主要容器：所有區塊內容都靠其居中 */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 32px;
}

/* ======================================================================
   頂部導覽列 NAV
   固定定位，滾動時套用 .is-scrolled 變為懸浮樣式。
   ====================================================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(246, 248, 251, 0.82);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid rgba(221, 227, 237, 0.6);
    transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, height 0.3s ease;
}
/* Spacer so page content doesn't sit under the fixed nav */
body { padding-top: 76px; }
@media (max-width: 720px) {
    body { padding-top: 64px; }
}
@media (max-width: 480px) {
    body { padding-top: 60px; }
}
.nav.is-scrolled {
    background: rgba(255, 255, 255, 0.92);
    border-bottom-color: rgba(221, 227, 237, 0.9);
    box-shadow: 0 10px 32px -16px rgba(7, 23, 47, 0.18), 0 4px 12px -6px rgba(7, 23, 47, 0.08);
}
.nav.is-scrolled .nav__inner {
    height: 64px;
}
.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
    transition: height 0.3s ease;
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}
.brand__mark {
    width: 44px; height: 44px;
    border-radius: 10px;
    background: white;
    box-shadow: var(--shadow-sm);
    display: grid; place-items: center;
    overflow: hidden;
    flex-shrink: 0;
}
.brand__mark img { width: 100%; height: 100%; object-fit: contain; }
.brand__text {
    line-height: 1.25;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.brand__zh {
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.08em;
    color: var(--ink-900);
    white-space: nowrap;
}
.brand__en {
    font-family: var(--font-en);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.075em;
    color: var(--ink-500);
    text-transform: uppercase;
    white-space: nowrap;
}

.nav__menu {
    display: flex; gap: 4px;
}
.nav__menu a {
    padding: 10px 16px;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--ink-700);
    border-radius: 999px;
    transition: color .2s, background .2s;
}
.nav__menu a:hover { color: var(--blue-800); background: var(--blue-50); }

.nav__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    background: var(--ink-900);
    color: white;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    transition: transform .2s, background .2s;
}
.nav__cta:hover { background: var(--blue-800); transform: translateY(-1px); }
.nav__cta svg { width: 14px; height: 14px; }

/* ======================================================================
   HERO 主視覺區
   左側標題+CTA+KPI；右側主圖輪播（見 .hv__* 樣式與 JS）。
   ====================================================================== */
.hero {
    position: relative;
    padding: 96px 0 120px;
    overflow: hidden;
}
.hero__bg {
    position: absolute; inset: 0;
    pointer-events: none;
    z-index: 0;
}
.hero__bg::before {
    content: "";
    position: absolute;
    top: -200px; right: -200px;
    width: 700px; height: 700px;
    background: radial-gradient(circle at center, rgba(30, 136, 229, 0.18), transparent 65%);
    filter: blur(8px);
}
.hero__bg::after {
    content: "";
    position: absolute;
    bottom: -300px; left: -150px;
    width: 600px; height: 600px;
    background: radial-gradient(circle at center, rgba(0, 191, 166, 0.16), transparent 65%);
    filter: blur(8px);
}
.hero__grid-bg {
    position: absolute; inset: 0;
    background-image:
            linear-gradient(to right, rgba(13, 71, 161, 0.04) 1px, transparent 1px),
            linear-gradient(to bottom, rgba(13, 71, 161, 0.04) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black, transparent);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black, transparent);
}

.hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 72px;
    align-items: center;
}
.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 14px 7px 10px;
    background: white;
    border: 1px solid var(--ink-200);
    border-radius: 999px;
    font-family: var(--font-en);
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-700);
    letter-spacing: 0.06em;
    box-shadow: var(--shadow-sm);
}
.hero__eyebrow .dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--teal-500);
    box-shadow: 0 0 0 4px rgba(0, 191, 166, 0.15);
    animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.55; }
}

.hero__title {
    margin: 22px 0 24px;
    font-size: clamp(40px, 5.4vw, 68px);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.01em;
    color: var(--ink-900);
}
.hero__title .x {
    display: inline-block;
    width: 0.6em;
    text-align: center;
    color: var(--teal-600);
    font-weight: 700;
    transform: translateY(-0.08em);
    margin: 0 0.08em;
}
.hero__title .accent-blue { color: var(--blue-800); }
.hero__title .accent-green {
    background: linear-gradient(95deg, var(--teal-600), var(--green-600));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero__lede {
    max-width: 540px;
    font-size: 17px;
    line-height: 1.75;
    color: var(--ink-500);
    margin: 0 0 36px;
}

.hero__ctas {
    display: flex; gap: 14px; flex-wrap: wrap;
    margin-bottom: 48px;
}
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 26px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    font-family: var(--font-zh);
    cursor: pointer;
    border: none;
    transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}
.btn--primary {
    background: var(--blue-800);
    color: white;
    box-shadow: 0 12px 28px -10px rgba(13, 71, 161, 0.5);
}
.btn--primary:hover {
    background: var(--blue-700);
    transform: translateY(-2px);
    box-shadow: 0 18px 36px -12px rgba(13, 71, 161, 0.55);
}
.btn--ghost {
    background: white;
    color: var(--ink-900);
    border: 1px solid var(--ink-200);
}
.btn--ghost:hover {
    border-color: var(--blue-800);
    color: var(--blue-800);
    transform: translateY(-2px);
}
.btn svg { width: 16px; height: 16px; }

.hero__metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    max-width: 560px;
    padding-top: 32px;
    border-top: 1px solid var(--ink-200);
}
.metric__num {
    font-family: var(--font-en);
    font-size: 32px;
    font-weight: 700;
    color: var(--ink-900);
    line-height: 1;
    letter-spacing: -0.02em;
}
.metric__num sub {
    font-size: 16px;
    color: var(--teal-600);
    margin-left: 2px;
    vertical-align: baseline;
    bottom: 0;
}
.metric__label {
    margin-top: 8px;
    font-size: 13px;
    color: var(--ink-500);
    line-height: 1.45;
}

/* Hero visual — rich layered composition */
.hero__visual {
    position: relative;
    width: 100%;
    max-width: 560px;
    margin-left: auto;
    aspect-ratio: 1 / 1;
}
.hv__photo {
    position: absolute;
    top: 0; right: 0;
    width: 92%;
    height: 92%;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 40px 80px -32px rgba(7, 23, 47, 0.35), 0 12px 24px -12px rgba(7, 23, 47, 0.15);
    background: linear-gradient(155deg, #0D47A1, #00BFA6);
    z-index: 1;
}
/* Slides stack — each absolute, fade in/out */
.hv__slide {
    position: absolute; inset: 0;
    opacity: 0;
    transition: opacity 0.9s ease, transform 6s linear;
    transform: scale(1.02);
    pointer-events: none;
}
.hv__slide.is-active {
    opacity: 1;
    transform: scale(1.08);  /* 顯示期間緩態 Ken Burns 推近效果 */
    pointer-events: auto;
}
.hv__slide img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.hv__photo::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(7, 23, 47, 0.0) 45%, rgba(7, 23, 47, 0.62) 100%);
    z-index: 2;
    pointer-events: none;
}
.hv__tag {
    position: absolute;
    top: 20px; left: 20px;
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 14px 8px 12px;
    background: rgba(7, 23, 47, 0.55);
    backdrop-filter: blur(14px) saturate(180%);
    -webkit-backdrop-filter: blur(14px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 999px;
    color: white;
    font-family: var(--font-en);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    z-index: 5;
}
.hv__tag .dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--teal-500);
    box-shadow: 0 0 0 4px rgba(0, 191, 166, 0.3);
    animation: pulse 2.4s ease-in-out infinite;
}
.hv__caption {
    position: absolute;
    left: 22px; right: 22px;
    bottom: 56px;
    color: white;
    z-index: 5;
    display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
    pointer-events: none;
}
.hv__caption-zh {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    text-shadow: 0 2px 12px rgba(0,0,0,0.5);
    transition: opacity 0.5s ease;
}
.hv__caption-en {
    font-family: var(--font-en);
    font-size: 11px;
    letter-spacing: 0.16em;
    opacity: 0.85;
    text-transform: uppercase;
    margin-top: 5px;
    transition: opacity 0.5s ease;
}

/* Carousel controls (dots + arrows) */
.hv__dots {
    position: absolute;
    left: 22px; bottom: 22px;
    z-index: 6;
    display: flex; gap: 6px;
    align-items: center;
}
.hv__dot {
    width: 22px; height: 3px;
    border-radius: 3px;
    background: rgba(255,255,255,0.35);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.3s, width 0.3s;
    position: relative;
    overflow: hidden;
}
.hv__dot:hover { background: rgba(255,255,255,0.55); }
.hv__dot.is-active {
    background: rgba(255,255,255,0.25);
    width: 36px;
}
.hv__dot.is-active::after {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    background: var(--teal-500);
    width: 0%;
    animation: dotFill 6s linear forwards;
}
@keyframes dotFill {
    from { width: 0%; }
    to { width: 100%; }
}
.hv__photo.is-paused .hv__dot.is-active::after {
    animation-play-state: paused;
}

/* 左右切換箭頭 */
.hv__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 6;
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.25);
    background: rgba(7, 23, 47, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: white;
    display: grid; place-items: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s, background 0.2s, transform 0.2s;
}
.hv__photo:hover .hv__arrow { opacity: 1; }
.hv__arrow:hover {
    background: rgba(7, 23, 47, 0.75);
}
.hv__arrow.is-prev { left: 14px; }
.hv__arrow.is-next { right: 14px; }
.hv__arrow svg { width: 14px; height: 14px; }

/* 裝飾漸層·主圖背後的軟註解形狀 */
.hv__deco-1 {
    position: absolute;
    top: 4%; right: -6%;
    width: 80px; height: 80px;
    border-radius: 24px;
    background: linear-gradient(135deg, var(--blue-600), var(--teal-500));
    opacity: 0.18;
    filter: blur(20px);
    z-index: 0;
}
.hv__deco-2 {
    position: absolute;
    bottom: 8%; right: 8%;
    width: 120px; height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(123, 192, 67, 0.35), transparent 70%);
    z-index: 0;
    filter: blur(8px);
}

/* ======================================================================
   區塊通用架構·Section Scaffold
   提供一致的 padding、section__head 漂眼標·標題·摘要。
   深色區塊 (.section--dark) 組合漸層背景 + 上下品牌色強調線。
   ====================================================================== */
section[id] { scroll-margin-top: 90px; }

.section { padding: 120px 0; }
.section--alt { background: white; }
.section--dark {
    background:
            radial-gradient(ellipse 50% 60% at 15% 20%, rgba(30, 136, 229, 0.18), transparent 70%),
            radial-gradient(ellipse 60% 70% at 85% 80%, rgba(0, 191, 166, 0.12), transparent 70%),
            var(--ink-900);
    color: var(--ink-100);
    position: relative;
    overflow: hidden;
}
/* Subtle accent stripe at top of dark section (transitions in from light section above) */
.section--dark::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(0, 191, 166, 0.5) 30%, rgba(30, 136, 229, 0.5) 70%, transparent 100%);
    z-index: 2;
}
/* 深色區塊底部品牌色強調線 */
.section--dark::after {
    content: "";
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(30, 136, 229, 0.5) 30%, rgba(0, 191, 166, 0.5) 70%, transparent 100%);
    z-index: 2;
}

/* Visual bridges between sections — stand-alone divs */
.section-bridge {
    height: 80px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.section-bridge--to-dark {
    background: linear-gradient(to bottom, white 0%, var(--ink-900) 100%);
}
.section-bridge--from-dark {
    background: linear-gradient(to bottom, var(--ink-900) 0%, white 100%);
}
.section-bridge__mark {
    width: 56px;
    height: 1px;
    background: rgba(0, 191, 166, 0.6);
    position: relative;
}
.section-bridge__mark::before,
.section-bridge__mark::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--teal-500);
    transform: translateY(-50%);
    box-shadow: 0 0 0 4px rgba(0, 191, 166, 0.18);
}
.section-bridge__mark::before { left: -3px; }
.section-bridge__mark::after { right: -3px; background: var(--blue-500); box-shadow: 0 0 0 4px rgba(30, 136, 229, 0.18); }

.section__head {
    max-width: 860px;
    margin: 0 auto 72px;
    text-align: center;
}
.section__title {
    text-wrap: balance;
}
.section__eyebrow {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--blue-50);
    color: var(--blue-800);
    font-family: var(--font-en);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 18px;
}
.section--dark .section__eyebrow {
    background: rgba(255, 255, 255, 0.08);
    color: var(--blue-500);
}
.section__title {
    font-size: clamp(30px, 3.6vw, 46px);
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.18;
    margin: 0 0 18px;
    color: inherit;
}
.section__lede {
    font-size: 16.5px;
    line-height: 1.75;
    color: var(--ink-500);
    margin: 0;
}
.section--dark .section__lede { color: var(--ink-300); }

/* ======================================================================
   關於我們 About
   左側故事文字、右側三個理念/使命/願景柱卡
   ====================================================================== */
.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}
.about__story p {
    font-size: 16px;
    line-height: 1.85;
    color: var(--ink-500);
    margin: 0 0 18px;
}
.about__story p strong {
    color: var(--ink-900);
    font-weight: 600;
}
.about__pillars {
    display: grid;
    gap: 14px;
}
.pillar {
    background: white;
    border: 1px solid var(--ink-200);
    border-radius: var(--r-lg);
    padding: 28px 28px 28px 30px;
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 22px;
    align-items: start;
    transition: border-color .25s, transform .25s, box-shadow .25s;
    position: relative;
    overflow: hidden;
}
.pillar:hover {
    border-color: var(--blue-500);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.pillar__icon {
    width: 56px; height: 56px;
    border-radius: 14px;
    background: linear-gradient(140deg, var(--blue-50), white);
    border: 1px solid var(--ink-200);
    display: grid; place-items: center;
    color: var(--blue-800);
}
.pillar:nth-child(2) .pillar__icon {
    background: linear-gradient(140deg, var(--green-50), white);
    color: var(--teal-600);
}
.pillar:nth-child(3) .pillar__icon {
    background: linear-gradient(140deg, #FFF8E1, white);
    color: #C77F00;
}
.pillar__icon svg { width: 26px; height: 26px; }
.pillar__h {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 6px;
    color: var(--ink-900);
}
.pillar__sub {
    font-family: var(--font-en);
    font-size: 11px;
    font-weight: 600;
    color: var(--ink-400);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: block;
}
.pillar__p {
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--ink-500);
    margin: 0;
}

/* ======================================================================
   核心服務 Services
   6 欄網格，上排 2 個大卡 (span 3) + 下排 3 個中卡 (span 2)
   ====================================================================== */
.services {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 1fr;
    gap: 24px;
}
.svc {
    background: white;
    border: 1px solid var(--ink-200);
    border-radius: var(--r-lg);
    padding: 36px;
    position: relative;
    overflow: hidden;
    transition: transform .3s, box-shadow .3s, border-color .3s;
    display: flex;
    flex-direction: column;
}
.svc:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
/* Top row: 2 cards × span 3 = 6. Bottom row: 3 cards × span 2 = 6. */
.svc.svc--lg { grid-column: span 3; }
.svc.svc--md { grid-column: span 2; }
@media (max-width: 1100px) {
    .services { grid-template-columns: repeat(6, 1fr); }
    .svc.svc--lg { grid-column: span 6; }
    .svc.svc--md { grid-column: span 3; }
}
@media (max-width: 720px) {
    .svc.svc--lg, .svc.svc--md { grid-column: span 6; }
}

.svc__num {
    font-family: var(--font-en);
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-400);
    letter-spacing: 0.18em;
}
.svc__icon {
    width: 56px; height: 56px;
    border-radius: 14px;
    margin: 18px 0 28px;
    display: grid; place-items: center;
    background: var(--blue-50);
    color: var(--blue-800);
    transition: background .3s;
}
.svc__icon svg { width: 26px; height: 26px; }
.svc__h {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 12px;
    color: var(--ink-900);
    line-height: 1.3;
}
.svc__p {
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--ink-500);
    margin: 0 0 24px;
}
.svc__list {
    list-style: none;
    padding: 0; margin: 0 0 20px;
    display: grid;
    gap: 9px;
}
.svc__list li {
    font-size: 13.5px;
    color: var(--ink-700);
    padding-left: 22px;
    position: relative;
    line-height: 1.5;
}
.svc__list li::before {
    content: "";
    position: absolute;
    left: 0; top: 8px;
    width: 12px; height: 2px;
    background: var(--blue-700);
    border-radius: 2px;
}
/* 服務卡底部適用場景 chip 區 */
.svc__scenarios {
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px dashed var(--ink-200);
}
.svc__scenarios-lbl {
    font-family: var(--font-en);
    font-size: 10px;
    font-weight: 600;
    color: var(--ink-400);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.svc__chips {
    display: flex; flex-wrap: wrap; gap: 6px;
}
.svc__chips span {
    font-size: 12px;
    padding: 4px 10px;
    background: var(--blue-50);
    color: var(--blue-800);
    border-radius: 999px;
    font-weight: 500;
}
.svc[data-tone="green"] .svc__chips span { background: var(--green-50); color: var(--teal-600); }
.svc[data-tone="amber"] .svc__chips span { background: #FFF8E1; color: #C77F00; }
.svc[data-tone="purple"] .svc__chips span { background: #EFEAFE; color: #5B3FCC; }
.svc[data-tone="green"] .svc__icon { background: var(--green-50); color: var(--teal-600); }
.svc[data-tone="green"] .svc__list li::before { background: var(--teal-600); }
.svc[data-tone="amber"] .svc__icon { background: #FFF8E1; color: #C77F00; }
.svc[data-tone="amber"] .svc__list li::before { background: #C77F00; }
.svc[data-tone="purple"] .svc__icon { background: #EFEAFE; color: #5B3FCC; }
.svc[data-tone="purple"] .svc__list li::before { background: #5B3FCC; }

.svc__deco {
    position: absolute;
    top: 20px; right: 20px;
    width: 80px; height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue-100), transparent);
    opacity: 0.45;
    pointer-events: none;
}

/* ======================================================================
   技術優勢 Advantages (深色區)
   5 欄等高·送上量化數字佔位 + 描述
   ====================================================================== */
.advs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1px;
    background: rgba(255,255,255,0.08);
    border-radius: var(--r-lg);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    position: relative;
    z-index: 1;
}
@media (max-width: 1000px) {
    .advs { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .advs { grid-template-columns: 1fr; }
}
.adv {
    background: var(--ink-900);
    padding: 36px 30px;
    transition: background .3s;
}
.adv:hover { background: var(--ink-800); }
.adv__num {
    font-family: var(--font-en);
    font-size: 12px;
    font-weight: 600;
    color: var(--blue-500);
    letter-spacing: 0.16em;
    margin-bottom: 16px;
}
.adv__metric {
    font-family: var(--font-en);
    font-size: 38px;
    font-weight: 800;
    color: white;
    line-height: 1;
    letter-spacing: -0.02em;
    margin: 0 0 6px;
    display: flex; align-items: baseline; gap: 4px;
}
.adv__metric .unit {
    font-size: 16px;
    font-weight: 600;
    color: var(--teal-500);
    letter-spacing: 0.02em;
}
.adv__metric-lbl {
    font-family: var(--font-en);
    font-size: 10.5px;
    font-weight: 600;
    color: var(--ink-400);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.adv__icon {
    color: var(--teal-500);
    margin-bottom: 18px;
}
.adv__icon svg { width: 28px; height: 28px; }
.adv__h {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 10px;
    color: white;
    line-height: 1.35;
}
.adv__p {
    font-size: 13.5px;
    color: var(--ink-300);
    line-height: 1.65;
    margin: 0;
}

/* ======================================================================
   應用產業 Industries
   藥丸 (pill) 樣式·入 flex-wrap 自動换行·視覺重量較輕
   ====================================================================== */
.inds {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    max-width: 920px;
    margin: 0 auto;
}

.ind {
    background: white;
    border: 1px solid var(--ink-200);
    border-radius: 999px;
    padding: 10px 22px 10px 14px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: transform .25s, border-color .25s, background .25s, box-shadow .25s;
}
.ind:hover {
    transform: translateY(-2px);
    border-color: var(--blue-700);
    background: white;
    box-shadow: 0 8px 20px -10px rgba(13, 71, 161, 0.25);
}
.ind__icon {
    width: 30px; height: 30px;
    border-radius: 50%;
    background: var(--blue-50);
    color: var(--blue-800);
    display: grid; place-items: center;
    flex-shrink: 0;
    transition: background .25s, color .25s;
}
.ind:nth-child(even) .ind__icon { background: var(--green-50); color: var(--teal-600); }
.ind__icon svg { width: 16px; height: 16px; }
.ind__name {
    font-weight: 600;
    font-size: 14.5px;
    color: var(--ink-900);
    line-height: 1.2;
}
.ind__en {
    font-family: var(--font-en);
    font-size: 10.5px;
    color: var(--ink-400);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-left: 6px;
    padding-left: 10px;
    border-left: 1px solid var(--ink-200);
}

/* ======================================================================
   聯絡我們 Contact
   左側資訊深色卡 + 右側表單（透過 Web3Forms 送達 services@hexunintelli.com）
   ====================================================================== */
.contact {
    background: white;
}
.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 64px;
    align-items: stretch;
}
@media (max-width: 900px) { .contact__grid { grid-template-columns: 1fr; } }

.contact__info {
    background: linear-gradient(155deg, var(--blue-800) 0%, var(--ink-900) 80%);
    color: white;
    border-radius: var(--r-xl);
    padding: 56px 48px;
    position: relative;
    overflow: hidden;
}
.contact__info::before {
    content: "";
    position: absolute;
    top: -120px; right: -120px;
    width: 360px; height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 191, 166, 0.35), transparent 65%);
    pointer-events: none;
}
.contact__h {
    font-size: 30px;
    font-weight: 800;
    margin: 0 0 14px;
    line-height: 1.25;
    position: relative;
}
.contact__p {
    color: var(--ink-300);
    font-size: 15px;
    line-height: 1.75;
    margin: 0 0 40px;
    position: relative;
}
.contact__list {
    list-style: none;
    padding: 0; margin: 0;
    display: grid; gap: 22px;
    position: relative;
}
.contact__list li {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 16px;
    align-items: center;
}
.contact__list .ic {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: rgba(255,255,255,0.1);
    display: grid; place-items: center;
    color: white;
}
.contact__list .ic svg { width: 20px; height: 20px; }
.contact__list .lbl {
    font-family: var(--font-en);
    font-size: 11px;
    color: var(--blue-500);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.contact__list .val {
    font-size: 15.5px;
    font-weight: 500;
    color: white;
    margin-top: 2px;
    word-break: break-all;
}

.contact__form {
    padding: 56px 8px;
}
.form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 18px;
}
.field { display: block; }
.field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-700);
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}
.field input, .field select, .field textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--paper);
    border: 1px solid var(--ink-200);
    border-radius: var(--r-md);
    font-family: inherit;
    font-size: 15px;
    color: var(--ink-900);
    transition: border-color .2s, background .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none;
    border-color: var(--blue-700);
    background: white;
    box-shadow: 0 0 0 4px rgba(30, 136, 229, 0.12);
}
.field textarea {
    min-height: 130px;
    resize: vertical;
    line-height: 1.6;
}
.form__submit {
    margin-top: 8px;
    width: 100%;
    justify-content: center;
    padding: 17px 26px;
    font-size: 15px;
}
.form__note {
    margin-top: 14px;
    font-size: 12.5px;
    color: var(--ink-400);
    text-align: center;
}

/* ======================================================================
   CTA 條·橫跨全寬的行動呼籲
   ====================================================================== */
.ctastrip {
    padding: 80px 0;
    background:
            linear-gradient(95deg, var(--blue-800) 0%, var(--blue-700) 50%, var(--teal-600) 130%);
    color: white;
    position: relative;
    overflow: hidden;
}
.ctastrip::before {
    content: "";
    position: absolute; inset: 0;
    background-image:
            linear-gradient(to right, rgba(255,255,255,0.06) 1px, transparent 1px),
            linear-gradient(to bottom, rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(95deg, black, transparent 75%);
    -webkit-mask-image: linear-gradient(95deg, black, transparent 75%);
    pointer-events: none;
}
.ctastrip__inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}
.ctastrip__title {
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 800;
    line-height: 1.3;
    margin: 0;
    max-width: 820px;
    text-wrap: balance;
}
.ctastrip .btn--primary {
    background: white;
    color: var(--blue-800);
    box-shadow: 0 12px 28px -8px rgba(0,0,0,0.25);
}
.ctastrip .btn--primary:hover {
    background: var(--ink-900);
    color: white;
}

/* ======================================================================
   頁腳 Footer
   品牌 · Services · Company · Contact · Legal 五欄佈局
   ====================================================================== */
.footer {
    background: var(--ink-900);
    color: var(--ink-300);
    padding: 72px 0 32px;
}
.footer__grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.1fr 0.9fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; } }

.footer__brand .brand__zh { color: white; }
.footer__brand .brand__en { color: var(--ink-400); }
.footer__tag {
    margin-top: 20px;
    font-size: 14px;
    line-height: 1.75;
    color: var(--ink-300);
    max-width: 340px;
}
.footer__col h4 {
    font-size: 12px;
    font-weight: 600;
    color: white;
    margin: 0 0 18px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-family: var(--font-en);
}
.footer__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.footer__col a {
    color: var(--ink-300);
    font-size: 14px;
    transition: color .2s;
}
.footer__col a:hover { color: var(--teal-500); }
.footer__bottom {
    padding-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}
.footer__copyright {
    font-size: 13px;
    color: var(--ink-400);
    font-family: var(--font-en);
}
.footer__motto {
    font-size: 13px;
    color: var(--ink-400);
}
.footer__motto strong { color: var(--teal-500); font-weight: 600; }

/* ===== 平板 / 桁口較小的筆記型 (⊤960px) ===== */
@media (max-width: 960px) {
    .hero { padding: 64px 0 80px; }
    .hero__inner { grid-template-columns: 1fr; gap: 56px; }
    .hero__visual { max-width: 420px; margin: 0 auto; }
    .section { padding: 80px 0; }
    .about__grid { grid-template-columns: 1fr; gap: 48px; }
    .nav__menu { display: none; }
    .footer__grid { grid-template-columns: 1fr 1fr; }
    .form__row { grid-template-columns: 1fr; }
    .contact__info, .contact__form { padding: 36px 24px; }
}

/* ===== 平板 / 手機橫向 (⊤720px) ===== */
@media (max-width: 720px) {
    .container { padding: 0 20px; }
    .nav__inner { height: 64px; gap: 12px; }
    .brand { min-width: 0; gap: 10px; }
    .brand__mark { width: 38px; height: 38px; }
    .brand__text { min-width: 0; }
    .brand__zh { font-size: 14.5px !important; letter-spacing: 0.04em; }
    .brand__en { font-size: 9px !important; letter-spacing: 0.05em; }
    .nav__cta {
        padding: 9px 14px;
        font-size: 13px;
        gap: 6px;
        flex-shrink: 0;
    }
    .nav__cta svg { width: 13px; height: 13px; }

    .hero { padding: 48px 0 64px; }
    .hero__title { font-size: 38px; }
    .hero__lede { font-size: 15.5px; }
    .hero__metrics { gap: 18px; }
    .metric__num { font-size: 24px; }
    .metric__label { font-size: 12px; }

    .section { padding: 64px 0; }
    .section__head { margin-bottom: 48px; }
    .section__title { font-size: 28px; }
    .section__lede { font-size: 15px; }

    .services { gap: 16px; }
    .svc { padding: 28px 24px; }
    .svc__h { font-size: 19px; }

    .inds { grid-template-columns: 1fr; gap: 12px; }
    .ind { padding: 20px 22px; }

    .advs { grid-template-columns: 1fr; }
    .adv { padding: 28px 26px; }

    .contact__info { padding: 40px 28px; }
    .contact__h { font-size: 24px; }

    .footer { padding: 56px 0 28px; }
    .footer__grid { grid-template-columns: 1fr; gap: 36px; padding-bottom: 36px; }
    .footer__col h4 { margin-bottom: 14px; }
    .footer__col ul { gap: 10px; }
    .footer__col a, .footer__col li { font-size: 13.5px; word-break: break-all; }
    .footer__bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
    .footer__copyright, .footer__motto { font-size: 12px; }

    .ctastrip { padding: 56px 0; }
    .ctastrip__inner { flex-direction: column; align-items: flex-start; gap: 24px; }
    .ctastrip__title { font-size: 22px; }
}

/* ===== 手機直向 (⊤480px) ===== */
@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .nav__inner { height: 60px; }
    .brand__zh { font-size: 13px !important; }
    .brand__en { font-size: 8.5px !important; letter-spacing: 0.04em; }
    .brand__mark { width: 34px; height: 34px; }

    /* 手機直向·CTA 按鈕收兩成圓形圖示以節省橫向空間 */
    .nav__cta {
        width: 42px;
        height: 42px;
        padding: 0;
        justify-content: center;
    }
    .nav__cta .cta-text { display: none; }
    .nav__cta svg { width: 16px; height: 16px; }

    .hero__title { font-size: 32px; }
    .hero__ctas { flex-direction: column; align-items: stretch; }
    .hero__ctas .btn { justify-content: center; }

    .hero__metrics { grid-template-columns: repeat(3, 1fr); gap: 12px; padding-top: 24px; }
    .metric__num { font-size: 20px; }
    .metric__label { font-size: 11px; }

    .section__title { font-size: 24px; }

    .svc { padding: 24px 20px; }
    .ind { padding: 18px 20px; }
    .ind__icon { width: 38px; height: 38px; }

    .hv__photo { width: 100%; height: 100%; }

    .contact__info { padding: 32px 22px; }
    .contact__h { font-size: 22px; }
    .contact__list li { grid-template-columns: 38px 1fr; gap: 12px; }
    .contact__list .ic { width: 38px; height: 38px; }
    .contact__list .val { font-size: 14px; }
}

/* Reveal 動畫·限於視覺重點區塊 (Services、Why Us) */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .8s ease, transform .8s ease;
}
.reveal.in {
    opacity: 1;
    transform: translateY(0);
}

/* ======================================================================
   回到頂部按鈕 Back-to-Top
   滾動超過 320px 後出現於右下角
   ====================================================================== */
.to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background: var(--ink-900);
    color: white;
    display: grid;
    place-items: center;
    z-index: 49;
    box-shadow: 0 12px 28px -8px rgba(7, 23, 47, 0.35), 0 4px 10px -4px rgba(7, 23, 47, 0.18);
    opacity: 0;
    transform: translateY(12px) scale(0.92);
    pointer-events: none;
    transition: opacity 0.28s ease, transform 0.28s ease, background 0.2s ease;
}
.to-top.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
.to-top:hover {
    background: var(--blue-800);
    transform: translateY(-2px) scale(1);
}
.to-top:active {
    transform: translateY(0) scale(0.96);
}
.to-top svg {
    width: 18px;
    height: 18px;
}
/* 外圍呼吸光环·上滾時吸引視線 */
.to-top::before {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px solid rgba(0, 191, 166, 0.45);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.to-top.is-visible::before {
    opacity: 1;
    animation: toTopRing 2.2s ease-out infinite;
}
@keyframes toTopRing {
    0% { transform: scale(0.85); opacity: 0.7; }
    100% { transform: scale(1.25); opacity: 0; }
}
@media (max-width: 480px) {
    .to-top {
        right: 16px;
        bottom: 16px;
        width: 46px;
        height: 46px;
    }
}