/* 八麟光電科技 — 官網樣式 */
:root {
  --navy: #061423;
  --navy-2: #0B2036;
  --navy-3: #12304F;
  --ink: #0D1B2C;
  --ink-2: #33455B;
  --muted: #66778B;
  --line: #E1E7EF;
  --bg: #FFFFFF;
  --bg-soft: #F3F6FA;
  --blue: #0A5CFF;
  --blue-dark: #0848C9;
  --cyan: #38B6FF;
  --green: #22C08A;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(13,27,44,.06), 0 8px 24px rgba(13,27,44,.06);
  --shadow-lg: 0 2px 4px rgba(13,27,44,.06), 0 20px 48px rgba(13,27,44,.12);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", "Noto Sans CJK TC", sans-serif;
  --font-en: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.75;
  color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 .5em; font-weight: 700; letter-spacing: .01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 20px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: #fff; padding: 8px 14px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); flex-shrink: 0; }
.brand:hover { text-decoration: none; }
.brand img { width: 42px; height: 42px; }
.brand-name { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name b { font-size: 1.05rem; letter-spacing: .06em; }
.brand-name small { font-family: var(--font-en); font-size: .66rem; letter-spacing: .14em; color: var(--muted); }

.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav > a, .nav .dd > button {
  font: inherit; font-size: .95rem; font-weight: 500; color: var(--ink-2);
  padding: 8px 12px; border-radius: 8px; background: none; border: 0; cursor: pointer;
}
.nav > a:hover, .nav .dd > button:hover { background: var(--bg-soft); color: var(--ink); text-decoration: none; }
.nav a[aria-current="page"], .nav .dd.active > button { color: var(--blue); font-weight: 700; }
.nav .btn { margin-left: 8px; }
.nav > a.btn-primary { background: var(--blue); color: #fff; font-weight: 700; }
.nav > a.btn-primary:hover { background: var(--blue-dark); color: #fff; }
.nav .lang { font-family: var(--font-en); font-size: .85rem; border: 1px solid var(--line); }

.dd { position: relative; }
.dd > button::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 7px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-3px) rotate(45deg); }
.dd-menu {
  position: absolute; top: calc(100% + 8px); left: -12px; width: 520px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s;
}
.dd:hover .dd-menu, .dd:focus-within .dd-menu, .dd.open .dd-menu { opacity: 1; visibility: visible; transform: none; }
.dd-menu a { display: flex; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--ink); }
.dd-menu a:hover { background: var(--bg-soft); text-decoration: none; }
.dd-menu svg { flex-shrink: 0; margin-top: 3px; }
.dd-menu b { display: block; font-size: .95rem; }
.dd-menu small { display: block; color: var(--muted); font-size: .78rem; line-height: 1.4; }
.dd-menu .all { grid-column: 1 / -1; justify-content: center; font-size: .9rem; color: var(--blue); border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; }

.menu-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 8px; width: 44px; height: 44px; cursor: pointer; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { display: block; width: 20px; height: 2px; background: var(--ink); margin: 0 auto; position: relative; transition: .2s; }
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; }
.menu-toggle span::before { top: -6px; } .menu-toggle span::after { top: 6px; }
.nav-open .menu-toggle span { background: transparent; }
.nav-open .menu-toggle span::before { top: 0; transform: rotate(45deg); }
.nav-open .menu-toggle span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 1080px) {
  .menu-toggle { display: block; }
  .nav {
    position: fixed; inset: 72px 0 0 0; flex-direction: column; align-items: stretch; gap: 2px;
    padding: 16px 20px 40px; background: #fff; overflow-y: auto; display: none;
  }
  .nav-open .nav { display: flex; }
  .nav-open { overflow: hidden; }
  .nav-open .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
  .nav { height: calc(100vh - 72px); height: calc(100dvh - 72px); }
  .nav > a, .nav .dd > button { padding: 14px 12px; font-size: 1.05rem; text-align: left; width: 100%; }
  .nav .btn { margin: 12px 0 0; text-align: center; }
  .dd-menu { position: static; width: auto; grid-template-columns: 1fr; box-shadow: none; border: 0; padding: 0 0 8px 12px; opacity: 1; visibility: visible; transform: none; display: none; }
  .dd.open .dd-menu { display: grid; }
  .dd:hover .dd-menu { display: none; } .dd.open:hover .dd-menu { display: grid; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 700; font-size: .95rem; line-height: 1;
  padding: 14px 22px; border-radius: 10px; border: 1.5px solid transparent; cursor: pointer;
  transition: background .15s, transform .15s, box-shadow .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 6px 18px rgba(10,92,255,.28); }
.btn-primary:hover { background: var(--blue-dark); }
.btn-ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.08); }
.btn-line { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-line:hover { border-color: var(--blue); color: var(--blue); }
.btn-sm { padding: 10px 16px; font-size: .88rem; }
.arrow::after { content: "→"; font-family: var(--font-en); transition: transform .15s; }
a:hover .arrow::after, .btn:hover.arrow::after { transform: translateX(3px); }

/* ---------- Sections ---------- */
section { padding-block: clamp(64px, 9vw, 112px); }
.soft { background: var(--bg-soft); }
.dark { background: var(--navy); color: #DCE6F2; }
.dark h2, .dark h3 { color: #fff; }
.eyebrow {
  display: inline-block; font-family: var(--font-en); font-size: .78rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: var(--blue); margin-bottom: 12px;
}
.dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--cyan); }
.sec-head { max-width: 760px; margin-bottom: 48px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head p { color: var(--muted); font-size: 1.05rem; }
.dark .sec-head p { color: #9DB1C8; }
.sec-head.split { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(1000px 600px at 85% 20%, rgba(56,182,255,.20), transparent 60%),
              linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  padding-block: clamp(72px, 10vw, 128px) clamp(64px, 8vw, 104px);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: linear-gradient(180deg, #000 30%, transparent 95%);
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #6CC8FF, #38B6FF 40%, #4F8BFF); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 1.12rem; color: #B7C7DA; max-width: 560px; margin-bottom: 28px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 36px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.chips li { font-size: .82rem; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); color: #CFE0F2; }
.hero-visual { position: relative; }
.hero-visual .photo { border-radius: 20px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.5); border: 1px solid rgba(255,255,255,.1); aspect-ratio: 4 / 3.3; }
.hero-visual .photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-card {
  position: absolute; left: -28px; bottom: -24px; display: flex; align-items: center; gap: 12px;
  background: rgba(10,26,44,.88); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px; padding: 14px 18px; font-size: .88rem; color: #CFE0F2; box-shadow: 0 16px 40px rgba(0,0,0,.4);
}
.hero-card b { display: block; color: #fff; font-family: var(--font-en); font-size: 1.3rem; line-height: 1.1; }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(34,192,138,.6); animation: pulse 2s infinite; flex-shrink: 0; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(34,192,138,0); } 100% { box-shadow: 0 0 0 0 rgba(34,192,138,0); } }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-card { left: 12px; bottom: -18px; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; color: #fff; overflow: hidden;
  background-color: var(--navy); background-position: center; background-size: cover;
  padding-block: clamp(56px, 8vw, 96px);
}
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.8rem); }
.page-hero p { color: #B7C7DA; font-size: 1.08rem; max-width: 680px; margin: 0; }
.crumbs { font-size: .85rem; color: #8FA5BE; margin-bottom: 16px; }
.crumbs a { color: #B7C7DA; }
.crumbs span { margin-inline: 6px; opacity: .6; }

/* ---------- Stats bar ---------- */
.stats { background: var(--navy-2); color: #fff; padding-block: 0; border-top: 1px solid rgba(255,255,255,.06); }
.stats ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.stats li { padding: 28px 20px; border-left: 1px solid rgba(255,255,255,.08); }
.stats li:first-child { border-left: 0; }
.stats b { display: block; font-family: var(--font-en); font-size: 2rem; line-height: 1.1; color: #fff; }
.stats b small { font-size: 1rem; color: var(--cyan); margin-left: 2px; }
.stats span { font-size: .88rem; color: #9DB1C8; }
@media (max-width: 760px) { .stats ul { grid-template-columns: 1fr 1fr; } .stats li:nth-child(3) { border-left: 0; } .stats li { border-top: 1px solid rgba(255,255,255,.08); } }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 24px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

.card {
  position: relative; display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: box-shadow .2s, transform .2s, border-color .2s; color: var(--ink);
}
a.card:hover { text-decoration: none; box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: #C9D5E4; }
.card .media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-soft); }
.card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
a.card:hover .media img { transform: scale(1.04); }
.card .body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card .body p { color: var(--muted); font-size: .94rem; }
.card .more { margin-top: auto; font-weight: 700; font-size: .9rem; color: var(--blue); }
.card-en { font-family: var(--font-en); font-size: .72rem; letter-spacing: .14em; color: var(--blue); font-weight: 700; text-transform: uppercase; }
.icon-badge { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #EAF1FF; color: var(--blue); margin-bottom: 14px; }
.card .icon-badge { position: absolute; top: 16px; left: 16px; background: rgba(255,255,255,.95); box-shadow: var(--shadow); }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 16px; padding: 0; list-style: none; }
.tags li { font-family: var(--font-en); font-size: .74rem; font-weight: 500; padding: 3px 9px; border-radius: 6px; background: var(--bg-soft); color: var(--ink-2); border: 1px solid var(--line); }
.dark .tags li { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); color: #CFE0F2; }

/* ---------- Process ---------- */
.process { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 0; counter-reset: s; }
.process li { position: relative; padding: 0 10px; text-align: center; }
.process li::before {
  counter-increment: s; content: counter(s, decimal-leading-zero);
  display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%;
  font-family: var(--font-en); font-weight: 700; color: var(--cyan); background: var(--navy-2); border: 1px solid rgba(56,182,255,.35);
  position: relative; z-index: 1;
}
.process li::after { content: ""; position: absolute; top: 28px; left: 50%; width: 100%; height: 1px; background: linear-gradient(90deg, rgba(56,182,255,.5), rgba(56,182,255,.1)); }
.process li:last-child::after { display: none; }
.process b { display: block; color: #fff; font-size: 1rem; }
.process small { display: block; font-family: var(--font-en); font-size: .7rem; letter-spacing: .1em; color: #7F96B0; }
.process p { font-size: .82rem; color: #9DB1C8; margin: 8px 0 0; line-height: 1.6; }
@media (max-width: 960px) {
  .process { grid-template-columns: 1fr; gap: 0; }
  .process li { display: grid; grid-template-columns: 56px 1fr; column-gap: 16px; text-align: left; padding: 0 0 24px; }
  .process li::before { grid-row: span 3; margin: 0; }
  .process li::after { top: 56px; left: 28px; width: 1px; height: calc(100% - 56px); }
  .process p { margin-top: 2px; }
}

/* ---------- Split / feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.split.rev > :first-child { order: 2; }
.split .photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.split .photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.rev > :first-child { order: 0; } }
.checks { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 12px; }
.checks.two { grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .checks.two { grid-template-columns: 1fr; } }
.checks li { position: relative; padding-left: 32px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: #E3EEFF url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%230A5CFF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100%;
}
.dark .checks li::before { background-color: rgba(56,182,255,.15); }

/* ---------- Demos ---------- */
.demo-card { background: var(--navy-2); border: 1px solid rgba(255,255,255,.08); color: #DCE6F2; }
a.demo-card:hover { border-color: rgba(56,182,255,.5); box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.demo-card .media { aspect-ratio: 16 / 10; background: #000; }
.demo-card .media img { object-position: top left; }
.demo-card .body p { color: #9DB1C8; }
.demo-card h3 { color: #fff; }
.demo-card .more { color: var(--cyan); }
.live { display: inline-flex; align-items: center; gap: 8px; font-size: .76rem; font-family: var(--font-en); letter-spacing: .12em; color: var(--green); font-weight: 700; margin-bottom: 8px; }
.live .pulse { width: 8px; height: 8px; }

/* ---------- Articles ---------- */
.post-meta { font-size: .82rem; color: var(--muted); display: flex; gap: 10px; align-items: center; margin-bottom: 8px; flex-wrap: wrap; }
.pill { font-size: .74rem; font-weight: 700; color: var(--blue); background: #EAF1FF; padding: 2px 10px; border-radius: 999px; }
.article { max-width: 760px; margin: 0 auto; font-size: 1.04rem; }
.article h2 { font-size: 1.45rem; margin-top: 2.2em; padding-top: .2em; }
.article h3 { margin-top: 1.6em; }
.article figure { margin: 2em 0; }
.article figure img { border-radius: var(--radius); width: 100%; }
.article figcaption { font-size: .82rem; color: var(--muted); margin-top: 8px; text-align: center; }
.article table { width: 100%; border-collapse: collapse; font-size: .92rem; margin: 1.4em 0; }
.article th, .article td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.article th { background: var(--bg-soft); }
.table-scroll { overflow-x: auto; }
.callout { border-left: 4px solid var(--blue); background: #F0F5FF; padding: 16px 20px; border-radius: 0 10px 10px 0; margin: 1.6em 0; font-size: .96rem; }
.callout b { color: var(--blue); }
.article code { font-family: ui-monospace, Consolas, monospace; font-size: .9em; background: var(--bg-soft); padding: 1px 6px; border-radius: 4px; }
.article pre { background: var(--navy); color: #DCE6F2; padding: 18px 20px; border-radius: 10px; overflow-x: auto; font-size: .88rem; line-height: 1.6; }
.article pre code { background: none; padding: 0; color: inherit; }
.toc { background: var(--bg-soft); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 2em; font-size: .95rem; }
.toc b { display: block; margin-bottom: 6px; }
.toc ol { margin: 0; }

/* ---------- Service detail ---------- */
.svc-layout { display: grid; grid-template-columns: 1fr 340px; gap: 48px; align-items: start; }
.svc-aside { position: sticky; top: 96px; display: grid; gap: 16px; }
.aside-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: #fff; }
.aside-box h3 { font-size: 1rem; }
.aside-box nav a { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: .94rem; }
.aside-box nav a:last-child { border-bottom: 0; }
.aside-box nav a[aria-current="page"] { color: var(--blue); font-weight: 700; }
.aside-cta { background: linear-gradient(135deg, var(--blue), #2C8BFF); color: #fff; border: 0; }
.aside-cta h3 { color: #fff; }
.aside-cta p { color: #E1ECFF; font-size: .92rem; }
.aside-cta .btn { background: #fff; color: var(--blue); width: 100%; }
@media (max-width: 960px) { .svc-layout { grid-template-columns: 1fr; } .svc-aside { position: static; } }
.product { display: grid; grid-template-columns: 280px 1fr; gap: 28px; padding: 28px 0; border-top: 1px solid var(--line); }
.product:first-of-type { border-top: 0; }
.product img { border-radius: 12px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
@media (max-width: 640px) { .product { grid-template-columns: 1fr; } }
.product h3 { margin-bottom: 6px; }
.product p { color: var(--ink-2); }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 56px 18px 22px; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-family: var(--font-en); font-size: 1.4rem; color: var(--blue); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 22px 20px; color: var(--ink-2); }
.faq details > div p:last-child { margin: 0; }

/* ---------- Timeline ---------- */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 70px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline li { display: grid; grid-template-columns: 70px 1fr; gap: 32px; padding-bottom: 28px; position: relative; }
.timeline li::after { content: ""; position: absolute; left: 65px; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--blue); }
.timeline b { font-family: var(--font-en); font-size: 1.1rem; color: var(--blue); }
.timeline p { margin: 0; }

/* ---------- Info table ---------- */
.info { width: 100%; border-collapse: collapse; }
.info th, .info td { padding: 14px 0; border-bottom: 1px solid var(--line); text-align: left; font-size: .96rem; }
.info th { width: 120px; color: var(--muted); font-weight: 500; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 380px 1fr; gap: 40px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 18px; }
.contact-list li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.contact-list .icon-badge { margin: 0; }
.contact-list small { display: block; color: var(--muted); font-size: .8rem; }
.contact-list a, .contact-list span { color: var(--ink); font-weight: 500; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; }
.map iframe { width: 100%; height: 100%; border: 0; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: clamp(22px, 4vw, 40px); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
label { display: block; font-size: .9rem; font-weight: 700; margin-bottom: 6px; }
label .req { color: #E5484D; }
input, select, textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: 12px 14px; border: 1.5px solid var(--line);
  border-radius: 10px; background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(10,92,255,.12); }
textarea { min-height: 150px; resize: vertical; }
.form-note { font-size: .84rem; color: var(--muted); margin-top: 12px; }
.form-status { margin-top: 16px; padding: 14px 16px; border-radius: 10px; font-size: .95rem; }
.form-status.ok { background: #E6F8F0; color: #0B6B47; }
.form-status.err { background: #FDECEC; color: #A1262B; }
.hp { position: absolute; left: -9999px; opacity: 0; }

/* ---------- CTA band ---------- */
.cta-band { padding-block: 0; }
.cta-box {
  position: relative; overflow: hidden; border-radius: 24px; padding: clamp(36px, 6vw, 64px);
  background: radial-gradient(600px 300px at 90% 0%, rgba(56,182,255,.35), transparent 60%), linear-gradient(120deg, #0848C9, #0A5CFF 50%, #1F7BFF);
  color: #fff; display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap;
}
.cta-box h2 { color: #fff; margin-bottom: 8px; }
.cta-box p { color: #DCE8FF; margin: 0; max-width: 560px; }
.cta-box .btn-primary { background: #fff; color: var(--blue); box-shadow: none; }
.cta-box .btn-ghost { border-color: rgba(255,255,255,.5); }
.cta-box .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-wrap { padding-block: clamp(56px, 8vw, 96px); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #9DB1C8; font-size: .92rem; padding-block: 64px 28px; }
.site-footer a { color: #C6D4E4; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot-brand .brand { color: #fff; margin-bottom: 14px; }
.foot-brand .brand-name small { color: #7F96B0; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 48px; padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .82rem; color: #7F96B0; }

/* ---------- Misc ---------- */
.lead-lg { font-size: 1.15rem; color: var(--ink-2); }
.muted { color: var(--muted); }
.center { text-align: center; }
.mt-40 { margin-top: 40px; }
.note { font-size: .82rem; color: var(--muted); }
.kpi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 24px 0; }
.kpi div { background: var(--bg-soft); border-radius: 12px; padding: 16px; }
.kpi b { display: block; font-family: var(--font-en); font-size: 1.6rem; color: var(--blue); line-height: 1.2; }
.kpi span { font-size: .85rem; color: var(--muted); }
.scenario { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding-block: 48px; border-top: 1px solid var(--line); }
.scenario:first-child { border-top: 0; padding-top: 0; }
.scenario:nth-child(even) > .photo { order: 2; }
.scenario .photo img { border-radius: var(--radius); aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.scenario dl { display: grid; grid-template-columns: 80px 1fr; gap: 8px 16px; margin: 16px 0; font-size: .95rem; }
.scenario dt { font-weight: 700; color: var(--muted); }
.scenario dd { margin: 0; }
@media (max-width: 860px) { .scenario { grid-template-columns: 1fr; gap: 20px; } .scenario:nth-child(even) > .photo { order: 0; } }
.credits td, .credits th { font-size: .85rem; }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } .pulse { animation: none; } }

/* ---------- 照片庫相簿 ---------- */
.gallery-head { margin: 56px 0 20px; }
.gallery-head h2 { margin-bottom: 4px; }
.gallery-head p { color: var(--muted); margin: 0; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.gallery figure { margin: 0; }
.gallery a { display: block; border-radius: 12px; overflow: hidden; background: var(--bg-soft); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .4s; }
.gallery a:hover img { transform: scale(1.04); }
.gallery figcaption { font-size: .85rem; color: var(--muted); margin-top: 8px; line-height: 1.5; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(6,20,35,.9); }
.lightbox img { max-width: 94vw; max-height: 84vh; width: auto; border-radius: 10px; margin: 0 auto; }
.lightbox p { color: #DCE6F2; text-align: center; margin: 12px 0 0; font-size: .95rem; }
.lightbox button { position: fixed; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 1.6rem; cursor: pointer; }

/* ---------- 多語言 ---------- */
html:lang(ja) { --font: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", Meiryo, "Noto Sans JP", sans-serif; }
html:lang(zh-Hans) { --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", sans-serif; }
html:lang(ja) h1, html:lang(ja) h2, html:lang(ja) h3 { word-break: auto-phrase; }
html:lang(de) h1, html:lang(de) h2, html:lang(de) h3 { hyphens: auto; overflow-wrap: break-word; }
html:lang(ru) h1, html:lang(ru) h2, html:lang(ru) h3 { hyphens: auto; overflow-wrap: break-word; }
html:lang(en) .card .body p, html:lang(de) .card .body p, html:lang(ru) .card .body p { hyphens: auto; }

.lang-dd > button { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line) !important; font-size: .85rem !important; }
.lang-dd > button svg { flex-shrink: 0; }
.lang-dd .dd-menu { width: 180px; grid-template-columns: 1fr; left: auto; right: 0; }
.lang-dd .dd-menu a { padding: 9px 12px; }
.lang-dd .dd-menu a[aria-current] { color: var(--blue); background: #EAF1FF; }
.lang-dd .dd-menu b { font-weight: 500; }
@media (max-width: 1080px) {
  .lang-dd > button { width: auto !important; margin-top: 8px; }
  .lang-dd .dd-menu { width: auto; padding-left: 12px; }
}
.foot-langs { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: .85rem; color: #7F96B0; }
.foot-langs svg { margin-right: 2px; }
.lang-note { background: #F0F5FF; border-left: 4px solid var(--blue); padding: 10px 14px; border-radius: 0 8px 8px 0; font-size: .92rem; }

/* ---------- 語言建議提示列 ---------- */
.lang-bar { background: var(--navy-2); color: #DCE6F2; font-size: .92rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.lang-bar .wrap { display: flex; align-items: center; gap: 12px; padding-block: 10px; flex-wrap: wrap; }
.lang-bar span { flex: 1 1 220px; }
.lang-bar .btn { padding: 8px 14px; }
.lang-bar button { background: none; border: 0; color: #9DB1C8; font-size: 1.4rem; line-height: 1; cursor: pointer; padding: 4px 8px; }
.lang-bar button:hover { color: #fff; }

/* ---------- 聯絡表單：專案資訊問卷 ---------- */
.q-block { border: 1px dashed #C9D5E4; border-radius: 12px; padding: 18px 18px 20px; margin: 0; min-width: 0; background: var(--bg-soft); }
.q-block[hidden] { display: none; }
.q-block legend { font-weight: 700; padding: 0 8px; font-size: .95rem; }
.lbl { display: block; font-size: .9rem; font-weight: 700; margin-bottom: 6px; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
label.opt { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-weight: 500; font-size: .9rem; background: #fff; border: 1.5px solid var(--line); border-radius: 999px; padding: 6px 12px; cursor: pointer; }
label.opt:has(input:checked) { border-color: var(--blue); color: var(--blue); background: #EAF1FF; }
label.opt input { width: auto; margin: 0; accent-color: var(--blue); }

/* ---------- 工程工具 ---------- */
.calc-jump { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.calc-jump .btn { display: inline-flex; align-items: center; gap: 8px; }
.calc { border: 1px solid var(--line); border-radius: 18px; padding: clamp(20px, 4vw, 40px); margin-bottom: 40px; box-shadow: var(--shadow); scroll-margin-top: 96px; background: #fff; }
.calc-head p { color: var(--muted); max-width: 760px; }
.calc-body { display: grid; grid-template-columns: 1.25fr 1fr; gap: 32px; align-items: start; margin-top: 12px; }
@media (max-width: 900px) { .calc-body { grid-template-columns: 1fr; } }
.calc-in { gap: 14px; }
.calc-in input, .calc-in select { padding: 10px 12px; }
.calc-in label { font-size: .84rem; }
.calc-out { background: var(--navy); color: #DCE6F2; border-radius: 14px; padding: 22px; position: sticky; top: 96px; }
@media (max-width: 900px) { .calc-out { position: static; } }
.calc-out .kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.calc-out .kpis div { background: rgba(255,255,255,.06); border-radius: 10px; padding: 12px 14px; min-width: 0; }
.calc-out .kpis span { display: block; font-size: .8rem; color: #9DB1C8; line-height: 1.4; }
.calc-out .kpis b { display: block; font-family: var(--font-en); font-size: 1.35rem; color: #fff; line-height: 1.3; overflow-wrap: anywhere; }
.calc-out .kpis small { font-size: .78rem; color: #9DB1C8; font-weight: 500; }
.calc-out .kpis div:nth-child(4) b, .calc-out .kpis div:last-child:nth-child(3) b { color: #6CC8FF; }
.calc-out .kpis div:last-child:nth-child(3) { grid-column: 1 / -1; }
.calc-out .lbl { color: #9DB1C8; font-weight: 500; font-size: .8rem; }
.calc-out .btn-line { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); margin-top: 6px; }
.calc-out .btn-line:hover { border-color: #fff; color: #fff; }
.calc-warn { font-size: .82rem; color: #FFD58A; margin: 0 0 12px; }
.share-bar { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: rgba(255,255,255,.08); gap: 2px; }
.share-bar span { transition: width .3s; }
.s-sleep i, .share-bar .s-sleep { background: #6CC8FF; }
.s-active i, .share-bar .s-active { background: #22C08A; }
.s-tx i, .share-bar .s-tx { background: #FFB547; }
.share-legend { list-style: none; padding: 0; margin: 10px 0 16px; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .85rem; }
.share-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; }
.tool-callout { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tool-callout svg { color: var(--blue); flex-shrink: 0; }
.tool-callout b { flex: 1 1 240px; }
