:root {
  /* 強化主文字與次要文字，提高辨識度 */
  --ink: #050b14;          /* 純深藍黑，視覺體驗比純黑更自然且對比極高 */
  --ink-2: #0e1726;
  --muted: #3a4556;        /* 【重點優化】原 #687386 太淺，大幅加深文字以改善讀取效率 */
  --line: #cdd5e1;         /* 【重點優化】邊線加深，讓卡片與區塊邊界明確 */
  --surface: #edf1f7;      /* 【重點優化】背景略微加深，與白色卡片形成清晰層次 */
  --white: #ffffff;
  
  /* 品牌色系調整：提升對比度與飽和度 */
  --brand: #0d2a63;        /* 深藍色加深，確保按鈕上的白字非常清晰 */
  --brand-2: #144ba3;      /* 醒目藍加深 */
  --brand-soft: #dbe7f9;   /* 軟背景加深，確保裡面的藍字讀得清 */
  --red: #c0001f;
  
  --radius: 24px;
  --shadow: 0 10px 30px rgba(5, 11, 20, .12); /* 強化陰影感，增強區塊立體度 */
  --max: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: Inter, "Noto Sans TC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.8; /* 略微加寬行高，方便眼睛追蹤行數 */
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }

.container { width: min(var(--max), calc(100% - 48px)); margin-inline: auto; }
.section { padding: 120px 0; scroll-margin-top: 90px; }
.section.alt { background: var(--surface); }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head.center { margin-inline: auto; text-align: center; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 14px; color: var(--brand-2); font-size: .85rem; font-weight: 800; /* 略微放大字體 */
  letter-spacing: .15em; text-transform: uppercase;
}
.kicker::before { content: ""; width: 28px; height: 3px; background: currentColor; } /* 加厚引導線 */
.section-title { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.2; letter-spacing: -.02em; margin-bottom: 18px; color: var(--ink); }
.section-lead { font-size: 1.15rem; color: var(--muted); font-weight: 500; }

/* Navbar */
.navbar {
  position: fixed; inset: 0 0 auto; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  min-height: 76px; padding: 0 28px;
  background: rgba(255,255,255,.98); /* 提高不透明度，防止背景透出干擾閱讀 */
  backdrop-filter: blur(18px);
  border-bottom: 2px solid var(--line); /* 邊框加厚加深 */
  transition: .25s ease;
}
.navbar.scrolled { min-height: 66px; box-shadow: 0 10px 30px rgba(10,20,40,.12); }
.logo { display:flex; align-items:center; gap: 12px; text-decoration:none; font-size: 1rem; font-weight: 800; letter-spacing: .08em; color: var(--ink); }
.logo img { object-fit: contain; object-position: center; }
.nav-links { list-style:none; display:flex; align-items:center; gap: 34px; }
.nav-links a { text-decoration:none; color: #1c283d; font-size:.95rem; font-weight:700; padding: 8px 0; position:relative; } /* 【優化】加深未選取狀態的顏色與字重 */
.nav-links a:hover, .nav-links a.active { color: var(--brand-2); }
.nav-links a.active::after { content:""; position:absolute; left:0; right:0; bottom:0; height:3px; background:var(--brand-2); border-radius:99px; }
.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center; /* 搭配 min-width 必須加上置中 */
  gap: 8px;
  padding: 10px 24px;
  min-width: 140px; /* 設定最小寬度 */
  background: var(--brand);
  color: white !important;
  border-radius: 999px;
  font-weight: 800;
}
.nav-cta::after { display:none!important;}
.nav-toggle { display:none; border:0; background:transparent; width:44px; height:44px; cursor:pointer; }
.nav-toggle span { display:block; width:22px; height:3px; margin:4px auto; background:var(--ink); border-radius:4px; }
.mobile-menu { display:none; }

/* Hero */
.hero {
  min-height: 780px; padding: 150px 0 70px; color:white; position:relative; overflow:hidden;
  display:flex; align-items:flex-end;
  background:
    linear-gradient(90deg, rgba(3,10,22,.95) 0%, rgba(3,10,22,.78) 47%, rgba(3,10,22,.35) 100%), /* 壓暗背景以突出文字 */
    linear-gradient(0deg, rgba(3,10,22,.85) 0%, rgba(3,10,22,0) 50%),
    url('/img/bg.jpg') center/cover no-repeat;
}
.hero-inner { width:min(var(--max), calc(100% - 48px)); margin:auto; }
.hero-copy { max-width: 820px; padding-bottom: 20px; }
.hero .kicker { color:#b8d5ff; }
.hero .kicker::before { background:#b8d5ff; }
.hero h1 { font-size:clamp(3rem, 6vw, 5.7rem); line-height:1.08; letter-spacing:-.03em; max-width:900px; margin-bottom:24px; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.hero p { max-width:800px; color:#ffffff; font-size:1.15rem; line-height:1.8; margin-bottom:32px; text-shadow: 0 1px 4px rgba(0,0,0,0.6); } /* 【優化】將文字調為純白並加強陰影 */
.hero-actions { display:flex; flex-wrap:wrap; gap:12px; }
.btn { display:inline-flex; align-items:center; justify-content:center; gap:10px; min-height:52px; padding:0 24px; border-radius:999px; border:2px solid transparent; text-decoration:none; font-size:.95rem; font-weight:800; transition:.25s ease; }
.btn-primary { background:#fff; color:var(--ink); }
.btn-primary:hover { transform:translateY(-2px); box-shadow:0 10px 30px rgba(0,0,0,.25); }
.btn-dark { background:var(--brand-2); color:white; }
.btn-dark:hover { background:var(--brand); transform:translateY(-2px); }
.btn-ghost { border-color:rgba(255,255,255,.6); color:white; background:rgba(0,0,0,.3); }
.btn-ghost:hover { background:rgba(255,255,255,.2); }
.hero-stats { margin-top:74px; display:grid; grid-template-columns:repeat(4,1fr); border-top:1px solid rgba(255,255,255,.3); }
.hero-stat { padding:22px 16px 4px 0; border-right:1px solid rgba(255,255,255,.2); }
.hero-stat:not(:first-child) { padding-left:26px; }
.hero-stat:last-child { border-right:0; }
.hero-stat strong { display:block; font-size:clamp(1.8rem, 2.5vw, 2.4rem); line-height:1.1; color:#fff; }
.hero-stat span { color:#dce6f5; font-size:.9rem; font-weight: 600; } /* 【優化】加深文字色以防吃字 */

/* Home credibility strip */
.proof-strip { margin-top:-42px; position:relative; z-index:3; }
.proof-grid { display:grid; grid-template-columns:repeat(4,1fr); background:white; border:2px solid var(--line); border-radius:20px; box-shadow:var(--shadow); overflow:hidden; }
.proof-item { padding:28px 26px; border-right:1px solid var(--line); }
.proof-item:last-child { border-right:0; }
.proof-item strong { display:block; font-size:1.15rem; margin-bottom:5px; color: var(--ink); }
.proof-item span { color:var(--muted); font-size:.92rem; font-weight: 500; }

/* Cards */
.card-grid { display:grid; gap:20px; }
.card-grid.four { grid-template-columns:repeat(4,1fr); }
.card-grid.three { grid-template-columns:repeat(3,1fr); }
.card {
  text-decoration:none; color:inherit;
  background:white; border:1px solid var(--line); border-radius:var(--radius); overflow:hidden;
  transition:.28s ease;
}
.card:hover { transform:translateY(-6px); box-shadow:var(--shadow); border-color:var(--brand-2); }
.card-body { padding:28px; }
.eyebrow { color:var(--brand-2); font-size:.8rem; font-weight:800; letter-spacing:.12em; text-transform:uppercase; margin-bottom:10px; }
.card h3 { font-size:1.4rem; line-height:1.3; margin-bottom:12px; color: var(--ink); }
.card p { color:var(--muted); font-size:1rem; line-height: 1.6; }

.icon-number { 
  width:44px; height:44px; display:grid; place-items:center; border-radius:12px; 
  background:var(--brand-soft); color:var(--brand); font-weight:900; font-size: 1.1rem; margin-bottom:20px; 
  border: 1px solid rgba(18, 58, 132, 0.15); /* 加加邊框強化感 */
}

/* Process */
.process { display:grid; grid-template-columns:repeat(4,1fr); gap:0; margin-top:46px; border:2px solid var(--line); border-radius:24px; overflow:hidden; background:white; }
.process-step { padding:32px; position:relative; }
.process-step + .process-step { border-left:1px solid var(--line); }
.process-step .num { font-size:.85rem; font-weight:900; color:var(--brand-2); letter-spacing:.16em; }
.process-step h3 { margin:12px 0 8px; font-size:1.2rem; color: var(--ink); }
.process-step p { color:var(--muted); font-size:.95rem; }
.process-step::after { content:"→"; position:absolute; right:-14px; top:50%; transform:translateY(-50%); width:30px; height:30px; border:2px solid var(--line); background:white; border-radius:50%; display:grid; place-items:center; color:var(--brand-2); font-weight: 800; z-index:2; }
.process-step:last-child::after { display:none; }

/* Cases */
.case-card img { aspect-ratio: 4/3; width:100%; object-fit:cover; background:#d9e2ec; }
.case-card .case-meta { display:flex; flex-wrap:wrap; gap:8px; margin:16px 0; }
.tag { display:inline-flex; padding:6px 12px; border-radius:999px; background:#dce4f0; color:#182538; font-size:.8rem; font-weight:800; } /* 【優化】加深標籤背景與文字對比 */
.case-footer { display:flex; justify-content:space-between; align-items:center; gap:18px; margin-top:24px; padding-top:16px; border-top:1px solid var(--line); }
.text-link { color:var(--brand-2); text-decoration:underline; font-weight:800; font-size:.95rem; text-underline-offset: 4px; } /* 添加下劃線增強識別度 */
.text-link:hover { color:var(--brand); }
.notice { margin-top:22px; padding:16px 20px; background:#eaf0f8; border:1px solid #b8cae0; border-radius:14px; color:#1a2b42; font-size:.9rem; font-weight: 500; } /* 【優化】提示框明顯化 */

/* Capability page */
.page-hero { padding:170px 0 90px; background:linear-gradient(180deg,#e8eff8 0%, #fff 100%); }
.page-hero .hero-inner { width:min(var(--max), calc(100% - 48px)); }
.page-hero h1 { max-width:900px; font-size:clamp(2.9rem, 5vw, 5rem); line-height:1.08; letter-spacing:-.03em; margin-bottom:24px; color: var(--ink); }
.page-hero p { max-width:820px; color:var(--muted); font-size:1.15rem; font-weight: 500; }
.capability-list { display:grid; gap:22px; }
.capability {
  display: grid;
  /* 圖片欄固定約 45%，文字欄約 55%，左右版型一致 */
  grid-template-columns: 0.92fr 1.08fr;
  gap: 42px;
  align-items: center;
  padding: 20px 0;
}
.capability + .capability { border-top:2px solid var(--line); padding-top:60px; }
/* reverse：交換欄位寬度，讓「圖片」永遠落在 0.92fr，避免圖左窄、圖右寬 */
.capability.reverse {
  grid-template-columns: 1.08fr 0.92fr;
}
.capability.reverse .cap-media { order: 2; }
.capability.reverse .cap-content { order: 1; }
.cap-media {
  border-radius: 24px;
  overflow: hidden;
  background: #d9e2ec;
  border: 1px solid var(--line);
  min-height: 320px;
  display: grid;
  place-items: center;
  /* 固定比例，避免不同圖片造成高度差很大 */
  aspect-ratio: 4 / 3;
}
.cap-media img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: center;
}
/* 直式機台圖：改 contain，完整顯示不裁切（留白由背景填滿） */
#sidegate-hr .cap-media {
  background: #f0f4fa;
  aspect-ratio: auto; /* 解除 4:3 比例限制，允許直式內容延展 */
  padding: 32px 24px; /* 將原本寫在 img 的留白移至外層容器 */
}

#sidegate-hr .cap-media img {
  width: 100%;
  height: auto;       /* 讓圖片高度依比例自然顯示 */
  max-height: 480px;  /* 設定最大高度，避免直圖過長佔用太多版面 */
  object-fit: contain;
  object-position: center;
  padding: 0;         /* 清除原本 img 的 padding */
}
.cap-content .index { font-size:.85rem; font-weight:900; color:var(--brand-2); letter-spacing:.15em; text-transform:uppercase; }
.cap-content h2 { font-size:2.2rem; line-height:1.2; letter-spacing:-.02em; margin:10px 0 16px; color: var(--ink); }
.cap-content p { color:var(--muted); font-size: 1.05rem; margin-bottom:14px; }
.cap-tags { display:flex; flex-wrap:wrap; gap:8px; margin-top:22px; }

/* Industry page */
.industry-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:22px; }
.industry-card {
  text-decoration:none; aspect-ratio: 16 / 9; position:relative; overflow:hidden; border-radius:24px;
  background:#060d17; /* 預設底色（未指定時的 fallback） */
  color:white;
}
/* 四個產業各自的品牌識別底色 */
#medical    { background:#182a88; } /* 醫療：深藍 */
#packaging  { background:#ffa51f; } /* 包裝：亮橘 */
#logistics  { background:#008348; } /* 物流：綠 */
#industrial { background:#552583; } /* 工業與車用：紫 */

/* 【調整】遮罩只集中在文字所在的底部，上半部幾乎不加暗，讓圖片與底色維持原本鮮豔度 */
.industry-card::after { content:""; position:absolute; inset:0; z-index:1; background:linear-gradient(0deg,rgba(3,8,16,.92) 0%, rgba(3,8,16,0) 45%); pointer-events:none; }

/* 圖片絕對定位鋪滿卡片並置中，不再受個別圖片原始尺寸影響；拿掉原本的暗化透明度 */
.industry-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.industry-card .industry-body { position:absolute; z-index:3; left:30px; right:30px; bottom:76px; pointer-events: none; }
.industry-card h3 { font-size:2rem; margin:6px 0 8px; color: #fff; text-shadow: 0 2px 6px rgba(0,0,0,.85); }
.industry-card .eyebrow { color:#bcd4ff; text-shadow: 0 1px 4px rgba(0,0,0,.85); }
.industry-card p { color:#eef2f8; text-shadow: 0 1px 4px rgba(0,0,0,.85); font-size: .95rem; max-width: 92%; }
/* 底圖為「色塊 + 斜線切割 + 右側產品照」版型時使用：把文字欄限制在左側色塊內，避免蓋到斜線右邊的產品圖 */
.industry-card.split-right .industry-body { right: auto; width: 38%; }
.industry-card.split-right p { max-width: 100%; text-shadow: none; }

/* About */
.about-intro { display:grid; grid-template-columns:1.15fr .85fr; gap:56px; align-items:center; }
.about-intro .approach-text h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.1rem);
  line-height: 1.3;
  margin: 0 0 16px;
  color: var(--ink);
}
.about-intro .approach-text h3 {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 28px 0 10px;
  color: var(--ink);
}
.about-intro p {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.8;
  margin: 0;
}
.value-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:16px; }
.value-card {
  border:1.5px solid var(--line);
  border-radius:18px;
  padding:22px;
  background:white;
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.value-card:hover {
  border-color: var(--brand-2);
  box-shadow: 0 10px 28px rgba(0, 120, 200, 0.1);
  transform: translateY(-2px);
}
.value-card strong { display:block; margin-bottom:8px; font-size: 1.1rem; color: var(--ink); }
.value-card span { color:var(--muted); font-size:.92rem; line-height: 1.55; }
.timeline { position:relative; margin-top:40px; padding-left:28px; border-left:3px solid var(--brand-2); }
.timeline-item { position:relative; padding:0 0 36px 24px; }
.timeline-item::before { content:""; position:absolute; width:14px; height:14px; border-radius:50%; background:var(--brand-2); left:-36px; top:6px; box-shadow:0 0 0 4px white; }
.timeline-year { font-size:.85rem; letter-spacing:.14em; color:var(--brand-2); font-weight:900; }
.timeline-item h3 { margin:5px 0 8px; font-size: 1.25rem; color: var(--ink); }
.timeline-item p { color:var(--muted); font-size: .98rem; }
.capability-table { display:grid; grid-template-columns:1fr 1fr; border:2px solid var(--line); border-radius:20px; overflow:hidden; }
.capability-row { display:grid; grid-template-columns:1fr auto; gap:20px; padding:18px 22px; background:white; border-bottom:1px solid var(--line); }
.capability-row:nth-child(odd) { background:#f4f7fc; } /* 強化雙色相間交替 */
.capability-row:nth-last-child(-n+2) { border-bottom:0; }
.capability-row strong { font-size:.98rem; color: var(--ink); }
.capability-row span { color:var(--muted); font-size:.9rem; font-weight: 500; }
.cert-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.cert-card { border:1px solid var(--line); border-radius:20px; overflow:hidden; background:white; }
.cert-card img { width:100%; aspect-ratio: 3/4; object-fit:contain; background:#f4f7fc; padding:24px; }
.cert-card p { padding:16px 20px 20px; color:var(--muted); font-size:.9rem; font-weight: 600; }
.global-panel { display:grid; grid-template-columns:1.15fr .85fr; gap:30px; align-items:stretch; }
.global-map, .contact-panel { border:2px solid var(--line); border-radius:24px; overflow:hidden; background:#07101e; }
.global-map img { width:100%; height:100%; min-height:310px; object-fit:cover; }
.contact-panel { padding:34px; background:var(--ink); color:white; }
.contact-panel h3 { font-size:1.8rem; margin-bottom:12px; color: #fff; }
.contact-panel p { color: #e1e7f0; font-size: 1rem; margin-bottom:20px; }
.contact-list { list-style:none; display:grid; gap:12px; margin:22px 0 26px; }
.contact-list strong { display:inline-block; min-width:60px; color:#ffffff; font-weight: 800; }
.contact-list span, .contact-list a { color:#d0daea; text-decoration:none; font-weight: 500; }

/* Footer */
.site-footer { background:#040912; color:#c5d0e0; padding:62px 0 28px; } /* 強化底欄對比 */
.footer-content { display:grid; grid-template-columns:1fr auto; gap:40px; align-items:start; }
.footer-brand h2 { color:white; letter-spacing:.14em; font-size:1.3rem; margin-bottom:8px; }
.footer-brand p { font-size:.9rem; color: #a4b3c7; }
.footer-links { display:flex; gap:22px; flex-wrap:wrap; justify-content:flex-end; }
.footer-links a { text-decoration:none; font-size:.9rem; color: #d0daea; font-weight: 600; }
.footer-links a:hover { color: #ffffff; text-decoration: underline; }
.footer-bottom { margin-top:44px; padding-top:20px; border-top:1px solid rgba(255,255,255,.15); display:flex; justify-content:space-between; gap:16px; font-size:.8rem; color: #94a3b8; }

/* Section side index */
.section-progress { position:fixed; right:18px; top:50%; transform:translateY(-50%); z-index:90; display:none; }
.section-progress.visible { display:block; }
.progress-list { position:relative; list-style:none; display:grid; gap:12px; padding:8px 0; }
.progress-item a { display:flex; align-items:center; gap:9px; text-decoration:none; color:#2c3b52; font-size:.75rem; writing-mode:vertical-rl; font-weight: 700; opacity:.8; } /* 加深導覽文字 */
.progress-item.active a { color:var(--brand-2); opacity:1; font-weight: 900; }
.progress-dot { width:8px; height:8px; border-radius:50%; background:currentColor; display:block; }
.progress-track-fill { display:none; }

/* Responsive */
@media (max-width: 1040px) {
  .nav-links { gap:22px; }
  .hero-stats, .proof-grid, .card-grid.four, .process { grid-template-columns:repeat(2,1fr); }
  .proof-item:nth-child(2), .proof-item:nth-child(4) { border-right:0; }
  .proof-item:nth-child(-n+2) { border-bottom:1px solid var(--line); }
  .about-intro, .global-panel { grid-template-columns:1fr; gap:40px; }
  .capability-table { grid-template-columns:1fr; }
  .capability-row:nth-last-child(-n+2) { border-bottom:1px solid var(--line); }
  .capability-row:last-child { border-bottom:0; }
}
@media (max-width: 820px) {
  .navbar { padding:0 18px; }
  .nav-links { display:none; }
  .nav-toggle { display:block; }
  .mobile-menu { position:fixed; inset:0; display:flex; flex-direction:column; padding:90px 28px 28px; background:white; transform:translateX(100%); transition:.3s ease; z-index:999; }
  .mobile-menu.open { transform:translateX(0); }
  .mobile-menu > a, .mobile-menu a.mobile-sublink { padding:14px 0; border-bottom:1px solid var(--line); text-decoration:none; font-size:1.15rem; font-weight:800; color: var(--ink); }
  .mobile-menu .mobile-contact { margin-top:24px; border-bottom:0; }
  .hero { min-height:720px; }
  .hero-stats { margin-top:50px; }
  .capability, .capability.reverse { grid-template-columns:1fr; }
  .capability.reverse .cap-media, .capability.reverse .cap-content { order:initial; }
  .industry-grid, .card-grid.three, .cert-grid, .footer-content { grid-template-columns:1fr; }
  .footer-links { justify-content:flex-start; }
  .section { padding:86px 0; }
  .section-progress { display:none!important; }
  /* 單欄版型下卡片變矮，文字若換行太多會頂到底圖上方的標題，
     這裡把文字框「釘」在卡片下半部固定區域內，並限制最多行數，
     不管文字怎麼換行都不會往上長到蓋住標題 */
  .industry-card.split-right .industry-body {
    width: 38%; right: auto;
    top: 45%; bottom: 14px;
    display: flex; flex-direction: column; justify-content: flex-start;
    overflow: hidden;
  }
  .industry-card.split-right p {
    font-size: .82rem; line-height: 1.32; margin: 0;
    display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden;
  }
  /* 手機模式把按鈕移到右側產品照上方，騰出左側文字空間；PC 維持在左下角原位 */
  .industry-card.split-right .industry-more {
    left: auto; right: 16px; bottom: 16px;
    font-size: .76rem; padding: 7px 14px; white-space: nowrap;
    background: rgba(10,14,26,.55); border-color: rgba(255,255,255,.65);
    backdrop-filter: blur(2px);
  }
}
@media (max-width: 600px) {
  .container, .hero-inner, .page-hero .hero-inner { width:min(var(--max), calc(100% - 32px)); }
  .hero { min-height:690px; padding-top:120px; }
  .hero h1 { font-size:clamp(2.8rem, 14vw, 4rem); }
  .hero p { font-size:1rem; }
  .hero-stats, .proof-grid, .card-grid.four, .process, .value-grid { grid-template-columns:1fr; }
  .hero-stat, .hero-stat:not(:first-child) { padding-left:0; padding-right:0; border-right:0; border-bottom:1px solid rgba(255,255,255,.2); }
  .hero-stat:last-child { border-bottom:0; }
  .proof-item { padding:22px 24px; border-right:0; border-bottom:1px solid var(--line); }
  .proof-item:last-child { border-bottom:0; }
  .proof-item:nth-child(-n+2) { border-bottom:1px solid var(--line); }
  .proof-item:last-child { border-bottom:0; }
  .process-step + .process-step { border-left:0; border-top:1px solid var(--line); }
  .process-step::after { display:none; }
  .case-footer { align-items:flex-start; flex-direction:column; }
  .page-hero { padding:135px 0 70px; }
  .cap-media { min-height:260px; }
  .industry-card .industry-body { left:22px; right:22px; }
  .industry-card.split-right .industry-body { width: 40%; top: 47%; bottom: 12px; }
  .industry-card.split-right p { font-size: .76rem; -webkit-line-clamp: 5; }
  .industry-card.split-right .industry-more { font-size: .68rem; padding: 6px 10px; right: 12px; bottom: 12px; }
  .contact-panel { padding:24px; }
  .footer-bottom { flex-direction:column; }
}
/* 假 YouTube 播放縮圖卡片 */
.video-card {
  display: block;
  text-decoration: none;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
  transition: .28s ease;
}
.video-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--brand-2);
}

.video-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease, filter .35s ease;
}
.video-card:hover .video-thumb img {
  transform: scale(1.04);
  filter: brightness(.85);
}

.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .25s ease;
  pointer-events: none; /* 讓整張卡片都可點擊，不侷限在按鈕範圍 */
}
.play-btn svg { width: 68px; height: 48px; }
.video-card:hover .play-btn {
  transform: translate(-50%, -50%) scale(1.12);
}
/* 輪播區塊優化 */
.equipment-carousel-wrapper {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}
.carousel {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  border: 2px solid var(--line);
}
.carousel-viewport {
  width: 100%;
  overflow: hidden;
}
.carousel-track {
  display: flex;
  padding: 0;
  margin: 0;
  list-style: none;
  transition: transform 0.4s ease-in-out;
  will-change: transform;
  align-items: stretch;
}
.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}
.carousel-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}
/* 設備輪播：每格鎖死寬高，圖絕對填滿並裁切，絕不溢到下一張 */
.equipment-carousel-wrapper .carousel {
  overflow: hidden;
}
.equipment-carousel-wrapper .carousel-viewport {
  overflow: hidden;
  width: 100%;
}
.equipment-carousel-wrapper .carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  background: #0a1220;
  overflow: hidden;
  position: relative;
}
.equipment-carousel-wrapper .carousel-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  display: block;
}
@media (max-width: 820px) {
  .equipment-carousel-wrapper .carousel-slide {
    aspect-ratio: 4 / 3;
  }
}
@media (max-width: 600px) {
  .equipment-carousel-wrapper .carousel-slide {
    aspect-ratio: 3 / 2;
  }
}
/* 導覽圓點樣式（加強半透明度與對比） */
.carousel-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
  background: rgba(0, 0, 0, 0.4); /* 添加底色讓白圈更清楚 */
  padding: 6px 14px;
  border-radius: 999px;
}
.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s ease;
}
.carousel-dot.active {
  background: #ffffff;
  width: 28px;
  border-radius: 6px;
}
/* ========== Dropdown Navbar ========== */
.has-dropdown { position: relative; }
.dropdown-trigger { display: inline-flex; align-items: center; gap: 4px; }
.dropdown-arrow { font-size: .7em; opacity: .7; transition: transform .2s; }
.has-dropdown:hover .dropdown-arrow,
.has-dropdown.open .dropdown-arrow { transform: rotate(180deg); }
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  min-width: 180px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(5,11,20,.14);
  list-style: none;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
  z-index: 1100;
  /* 上方隱形橋接區，避免滑鼠移過去時中斷 hover */
  margin-top: 0;
}
/* 用偽元素做 hover 橋接，滑鼠從觸發到選單不會「掉落」 */
.dropdown-menu::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: -16px;
  height: 16px;
}
.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu,
.has-dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(4px);
}
.dropdown-menu li a {
  display: block;
  padding: 10px 20px;
  color: #1c283d;
  font-size: .92rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.dropdown-menu li a:hover {
  background: var(--brand-soft);
  color: var(--brand-2);
}
.dropdown-menu li a.active { color: var(--brand-2); }

/* Mobile：二層選單直接縮排顯示，不需下拉 */
.mobile-menu a.mobile-sublink {
  padding-left: 20px !important;
  font-size: 1.02rem !important;
  font-weight: 700 !important;
  color: var(--muted) !important;
  border-bottom: 1px solid var(--line);
}
.mobile-menu a.mobile-sublink.active {
  color: var(--brand-2) !important;
}

/* ========== Cert strip on homepage ========== */
.cert-strip-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 40px 36px;
  background: linear-gradient(135deg, #07101e 0%, #0d2a63 100%);
  border: 2px solid var(--line);
  border-radius: 24px;
  min-height: 310px;
}
.cert-strip-panel .kicker { color: #9bc4ff; }
.cert-strip-panel .kicker::before { background: #9bc4ff; }
.cert-strip-panel h2 {
  color: #ffffff;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  line-height: 1.45;
  font-weight: 800;
  letter-spacing: -.01em;
  margin: 0 0 12px;
}
.cert-strip-panel p {
  color: #b8c9e0;
  font-size: .95rem;
  margin: 0;
  font-weight: 500;
}
.cert-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.cert-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px;
  color: #e8f0ff;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .02em;
}

/* ========== Equipment gallery (About us) ========== */
.equip-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}
.equip-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  min-height: 280px;
  background: #0a1220;
  border: 1px solid var(--line);
}
.equip-card img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  display: block;
}
/* 柔化遮罩：最深不透明度降低，漸層拉長，黑邊會變不明顯 */
.equip-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(3, 10, 22, 0.78) 0%,
    rgba(3, 10, 22, 0.55) 28%,
    rgba(3, 10, 22, 0.28) 55%,
    rgba(3, 10, 22, 0.08) 78%,
    transparent 100%
  );
  pointer-events: none;
}
.equip-card .equip-info {
  position: absolute;
  z-index: 2;
  left: 0; top: 0; bottom: 0;
  width: 55%;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  /* 補一點文字陰影，遮罩變淡後仍保持可讀 */
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}
.equip-card .equip-info h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: #fff;
  letter-spacing: -.01em;
}
.equip-card .equip-info ul {
  list-style: none;
  display: grid;
  gap: 6px;
}
.equip-card .equip-info li {
  font-size: .88rem;
  font-weight: 600;
  color: #d4e0f0;
  line-height: 1.4;
}
.equip-card .equip-info li strong {
  color: #7eb3ff;
  font-weight: 800;
  margin-right: 4px;
}
/* 右側對齊卡片：方向相反 */
.equip-card.right-align::after {
  background: linear-gradient(
    270deg,
    rgba(3, 10, 22, 0.78) 0%,
    rgba(3, 10, 22, 0.55) 28%,
    rgba(3, 10, 22, 0.28) 55%,
    rgba(3, 10, 22, 0.08) 78%,
    transparent 100%
  );
}
.equip-card.right-align .equip-info {
  left: auto; right: 0;
  text-align: right;
  align-items: flex-end;
}
@media (max-width: 1040px) {
  .equip-gallery { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .equip-card .equip-info { width: 70%; }
}
@media (max-width: 600px) {
  .equip-card .equip-info {
    width: 100%;
    background: linear-gradient(0deg, rgba(3, 10, 22, 0.88) 0%, rgba(3, 10, 22, 0.35) 100%);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  }
  .equip-card.right-align .equip-info {
    text-align: left;
    align-items: flex-start;
  }
}

/* ========== Hot Runner page extras ========== */
.hr-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 12px;
}
.hr-feature {
  background: white;
  border: 1.5px solid var(--line);
  border-radius: 20px;
  padding: 28px 26px;
  transition: .25s ease;
}
.hr-feature:hover { border-color: var(--brand-2); box-shadow: var(--shadow); }
.hr-feature .index {
  font-size: .8rem; font-weight: 900; color: var(--brand-2);
  letter-spacing: .14em; text-transform: uppercase; margin-bottom: 10px;
}
.hr-feature h3 { font-size: 1.35rem; margin-bottom: 10px; color: var(--ink); }
.hr-feature p { color: var(--muted); font-size: .98rem; margin-bottom: 10px; }
.hr-feature ul { list-style: none; display: grid; gap: 8px; margin-top: 14px; }
.hr-feature li {
  position: relative; padding-left: 18px; color: var(--muted); font-size: .92rem; font-weight: 500;
}
.hr-feature li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--brand-2);
}
.hr-hero-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hr-tag {
  display: inline-flex; padding: 8px 16px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand); font-size: .85rem; font-weight: 800;
  border: 1px solid rgba(18,58,132,.12);
}
.hr-section-media {
  border-radius: 20px; overflow: hidden; border: 1px solid var(--line);
  background: #d9e2ec; margin: 28px 0 8px;
}
.hr-section-media img {
  width: 100%; max-height: 380px; object-fit: cover; display: block;
}
.hr-short-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px;
}
.hr-short-card {
  background: white; border: 1.5px solid var(--line); border-radius: 16px;
  padding: 22px 20px; text-align: center;
}
.hr-short-card strong {
  display: block; font-size: 1.05rem; color: var(--ink); margin-bottom: 6px;
}
.hr-short-card span { color: var(--muted); font-size: .88rem; font-weight: 500; }

@media (max-width: 1040px) {
  .hr-feature-grid { grid-template-columns: 1fr; }
  .hr-short-grid { grid-template-columns: 1fr 1fr; }
  .equip-gallery { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .cert-strip-panel { min-height: auto; padding: 32px 24px; }
  .hr-short-grid { grid-template-columns: 1fr; }
  .equip-card .equip-info { width: 70%; }
}
@media (max-width: 600px) {
  .equip-card .equip-info { width: 100%; background: linear-gradient(0deg, rgba(3,10,22,.92) 0%, rgba(3,10,22,.4) 100%); }
  .equip-card.right-align .equip-info { text-align: left; align-items: flex-start; }
}


/* ========== Industry modal ========== */
.industry-card { cursor: default; }
.industry-more {
  position: absolute;
  z-index: 4;
  left: 30px;
  bottom: 28px;
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1.5px solid rgba(255,255,255,.55);
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: .88rem;
  font-weight: 800;
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s;
  font-family: inherit;
}
.industry-more:hover {
  background: rgba(255,255,255,.22);
  border-color: #fff;
  transform: translateY(-1px);
}
.industry-more svg { width: 16px; height: 16px; }

.industry-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(5, 11, 20, .55);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s;
}
.industry-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}
.industry-modal {
  width: min(720px, 100%);
  max-height: min(88vh, 820px);
  overflow: auto;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(5,11,20,.28);
  transform: translateY(16px) scale(.98);
  transition: transform .28s ease;
}
.industry-modal-overlay.open .industry-modal {
  transform: translateY(0) scale(1);
}
.industry-modal-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 28px 18px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.industry-modal-header .modal-kicker {
  color: var(--brand-2);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.industry-modal-header h2 {
  font-size: 1.55rem;
  line-height: 1.25;
  color: var(--ink);
  margin: 0;
}
.industry-modal-close {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  background: #f4f7fc;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--ink);
  transition: background .2s, border-color .2s;
}
.industry-modal-close:hover {
  background: var(--brand-soft);
  border-color: var(--brand-2);
  color: var(--brand-2);
}
.industry-modal-close svg { width: 18px; height: 18px; }
.industry-modal-body {
  padding: 22px 28px 32px;
  display: grid;
  gap: 22px;
}
.modal-group {
  background: #f4f7fc;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 20px 16px;
}
.modal-group h3 {
  display: inline-block;
  font-size: .95rem;
  font-weight: 800;
  color: #fff;
  background: var(--brand-2);
  padding: 6px 14px;
  border-radius: 8px;
  margin: 0 0 14px;
}
.modal-group ul {
  list-style: none;
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
}
.modal-group li {
  position: relative;
  padding-left: 16px;
  color: var(--ink);
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.45;
}
.modal-group li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-2);
}
/* 各產業標題色調 */
.modal-group.medical h3 { background: #182a88; }
.modal-group.packaging h3 { background: #e08a00; }
.modal-group.logistics h3 { background: #008348; }
.modal-group.industrial h3 { background: #552583; }

@media (max-width: 600px) {
  .industry-modal-header { padding: 22px 18px 14px; }
  .industry-modal-header h2 { font-size: 1.25rem; }
  .industry-modal-body { padding: 16px 18px 24px; }
}


/* Section head with lead image (solutions page) */
.section-head-with-image {
  max-width: none;
  margin-bottom: 64px;
}
.section-head-visual {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #f4f7fc;
  margin-bottom: 48px;
  max-width: 100%;
  line-height: 0;
}
.section-head-visual img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: center;
  display: block;
}
.section-head-with-image .section-title {
  max-width: 900px;
  margin-bottom: 20px;
}
.section-head-with-image .section-lead {
  max-width: 900px;
  margin-bottom: 36px;
}
.section-divider {
  border: 0;
  border-top: 2px solid var(--line);
  margin: 0;
  width: 100%;
}


/* ========== Homepage value circle ========== */
.value-circle-section {
  background: linear-gradient(
    90deg,
    #1e3a5f 0%,
    #2a5285 12%,
    #4a7ec2 28%,
    #6b9edc 42%,
    #7aabe3 50%,
    #6b9edc 58%,
    #4a7ec2 72%,
    #2a5285 88%,
    #1e3a5f 100%
  );
  color: #fff;
  position: relative;
  overflow: hidden;
}
.value-circle-section::before {
  content: none;
}
.value-circle-section .container { position: relative; z-index: 1; }
.value-circle-section .kicker { color: #9bc4ff; }
.value-circle-section .kicker::before { background: #9bc4ff; }
.value-circle-section .section-title { color: #fff; }
.value-circle-section .section-lead { color: #b8c9e0; }
.value-circle-section .section-head {
  max-width: 760px;
  margin-bottom: 40px;
}
.value-circle-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 1080px;
  margin: 0 auto 36px;
  padding: 8px 0;
}
.value-circle-img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.4));
}
.value-circle-legend {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px 14px;
  max-width: 100%;
  margin: 0;
  padding: 0;
}
.value-circle-legend li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 999px;
  color: #0e1a3a;
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .01em;
  box-shadow: 0 4px 14px rgba(5, 15, 40, 0.18);
}
.value-circle-legend .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(255,255,255,.15);
}
@media (max-width: 820px) {
  .value-circle-wrap { max-width: 100%; padding: 0; margin-bottom: 28px; }
  .value-circle-legend { gap: 8px; }
  .value-circle-legend li { font-size: .8rem; padding: 7px 12px; }
}