﻿:root {
  --ink: #202426;
  --muted: #606a70;
  --line: #dde3e0;
  --paper: #faf9f6;
  --green: #1f5b4d;
  --copper: #9a6247;
  --dark: #101112;
  font-family: "Microsoft JhengHei", "Noto Sans TC", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); line-height: 1.75; }
body.home-page { background: var(--dark); overflow-x: hidden; }
a { color: inherit; }
img { display: block; max-width: 100%; }
.wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
header { position: absolute; top: 0; left: 0; z-index: 10; width: 100%; background: transparent; border-bottom: 0; pointer-events: none; }
.topbar { display: flex; align-items: center; justify-content: flex-start; min-height: 0; padding-top: 18px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 42px; padding: 6px 12px; color: white; background: rgba(10,12,12,.55); border: 1px solid rgba(255,255,255,.25); border-radius: 7px; font-weight: 800; text-decoration: none; backdrop-filter: blur(8px); pointer-events: auto; }
.brand span:last-child { display: none; }
.brand::after { content: "回首頁"; }
.mark { display: grid; place-items: center; width: 42px; height: 42px; color: white; background: var(--green); border-radius: 7px; }
nav { display: none; gap: 18px; color: var(--muted); font-size: 15px; }
nav a { text-decoration: none; }
nav a.active { color: var(--green); font-weight: 800; }
section { padding: 84px 0; }
.home-page .hero { position: relative; display: block; min-height: 100vh; padding: 0; background: #050505; color: white; overflow: hidden; }
.home-page .hero-copy { position: relative; z-index: 2; display: grid; align-content: center; width: min(620px, calc(100vw - 80px)); min-height: 100vh; padding: 48px 0 48px max(40px, calc((100vw - 1120px) / 2)); }
.hero { display: grid; grid-template-columns: minmax(430px, .9fr) minmax(560px, 1.1fr); min-height: 610px; background: var(--dark); color: white; }
.hero-copy { display: grid; align-content: center; padding: 84px 56px 84px max(56px, calc((100vw - 1120px) / 2)); }
.hero-copy p { max-width: 560px; color: rgba(255,255,255,.82); font-size: 20px; }
.home-page .hero-copy > p:not(.eyebrow) { font-size: 26px; line-height: 1.9; }
.hero h1 { margin: 0 0 18px; font-size: 56px; line-height: 1.15; white-space: nowrap; letter-spacing: 0; }
.home-page .hero h1 { max-width: 100%; color: #9ccc65; font-size: clamp(44px, 6vw, 72px); white-space: nowrap; }
.hero-media { min-width: 0; background: #050505; overflow: hidden; }
.hero-img { width: 100%; height: 100%; object-fit: cover; object-position: center center; }
.home-page .hero-media { position: absolute; z-index: 1; inset: 0; min-height: 100vh; pointer-events: none; }
.home-page .hero-img { width: 100%; height: 100vh; object-fit: cover; object-position: 76% center; transform: translateX(-4%) scale(.98); transform-origin: center; }
.home-menu { display: flex; flex-wrap: nowrap; gap: 7px; width: 100%; max-width: 500px; margin-top: 32px; color: white; }
.home-menu a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 11px; color: white; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.24); border-radius: 7px; text-decoration: none; font-weight: 800; font-size: 14px; white-space: nowrap; backdrop-filter: blur(8px); }
.home-menu a:hover { background: rgba(31,91,77,.9); border-color: rgba(255,255,255,.34); }
.counter-box { position: absolute; z-index: 4; right: 38px; bottom: 34px; display: flex; justify-content: center; gap: 5px; width: max-content; padding: 6px 8px; background: #111; border: 1px solid rgba(255,255,255,.16); border-radius: 7px; box-shadow: 0 12px 28px rgba(0,0,0,.26), inset 0 0 14px rgba(255,255,255,.05); }
.counter-box span { display: grid; place-items: center; width: 26px; height: 38px; color: #f7fbf7; background: linear-gradient(180deg, #303833 0%, #0a0d0b 48%, #171e19 100%); border: 1px solid rgba(255,255,255,.14); border-radius: 5px; font-family: "Consolas", "Courier New", monospace; font-size: 27px; font-weight: 700; line-height: 1; text-shadow: 0 0 8px rgba(113,255,196,.38); }
.page-head { padding: 90px 0 54px; background: #15191b; color: white; }
.eyebrow { margin: 0 0 10px; color: var(--copper); font-weight: 900; font-size: 14px; }
.hero .eyebrow, .page-head .eyebrow { color: #f0b08c; }
h1, h2, h3 { line-height: 1.25; letter-spacing: 0; }
h1 { margin: 0; font-size: 48px; }
h2 { margin: 0 0 14px; font-size: 36px; }
h3 { margin: 0 0 10px; font-size: 21px; }
p { margin-top: 0; }
.muted { color: var(--muted); }
.page-head .muted { color: rgba(255,255,255,.78); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.btn { display: inline-flex; justify-content: center; align-items: center; min-height: 46px; padding: 11px 18px; border-radius: 7px; font-weight: 800; text-decoration: none; border: 1px solid transparent; }
.btn.primary { color: white; background: var(--green); }
.btn.ghost { color: white; border-color: rgba(255,255,255,.65); }
.btn.light { background: white; border-color: var(--line); }
.grid-4, .grid-3, .grid-2 { display: grid; gap: 16px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card { background: white; border: 1px solid var(--line); border-radius: 8px; padding: 26px; }
.card strong { color: var(--green); font-size: 24px; }
.band { background: #eef3f0; }
.section-head { max-width: 760px; margin-bottom: 28px; }
.service-head { padding: 72px 0; }
.service-head-inner { display: grid; grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr); gap: 42px; align-items: center; }
.service-photo { position: relative; overflow: hidden; margin: 0; border-radius: 8px; box-shadow: 0 24px 70px rgba(0,0,0,.26); }
.service-photo::after { content: ""; position: absolute; z-index: 2; right: 0; bottom: 0; width: 190px; height: 58px; background: #101415; }
.service-photo img { position: relative; z-index: 1; width: 100%; aspect-ratio: 16/10; object-fit: contain; object-position: right center; transform: none; background: #111617; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.service-card { min-height: 250px; padding: 28px; background: white; border: 1px solid var(--line); border-radius: 8px; }
.service-card span { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; margin-bottom: 22px; color: white; background: var(--green); border-radius: 7px; font-weight: 900; }
.service-card p { color: var(--muted); }
.service-note { display: grid; grid-template-columns: .8fr 1.2fr; gap: 38px; align-items: start; }
.service-note ul { margin: 0; padding-left: 22px; color: var(--muted); font-size: 18px; }
.process-head { background: #111617; }
.process-flow { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.process-step { display: grid; grid-template-columns: 58px 1fr; gap: 20px; min-height: 190px; padding: 28px; background: white; border: 1px solid var(--line); border-radius: 8px; }
.process-step span { display: grid; place-items: center; width: 48px; height: 48px; color: white; background: var(--green); border-radius: 7px; font-weight: 900; }
.process-step p { margin: 0; color: var(--muted); }
.process-note { max-width: 760px; }
.process-note p { color: var(--muted); font-size: 18px; }
.about-head { background: #111617; }
.about-head-inner { display: grid; grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr); gap: 42px; align-items: center; }
.about-photo { overflow: hidden; margin: 0; border-radius: 8px; box-shadow: 0 24px 70px rgba(0,0,0,.28); background: #0c0f10; }
.about-photo img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.about-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 34px; align-items: start; }
.about-layout p { color: var(--muted); font-size: 18px; }
.about-card { padding: 30px; background: white; border: 1px solid var(--line); border-radius: 8px; }
.about-card ul { margin: 0; padding-left: 22px; color: var(--muted); }
.about-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.about-values article { min-height: 210px; padding: 28px; background: white; border: 1px solid var(--line); border-radius: 8px; }
.about-values strong { color: var(--green); font-size: 28px; }
.about-values p { color: var(--muted); }
.contact-head { background: #111617; }
.contact-head-inner { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 42px; align-items: center; }
.contact-card { padding: 28px; border: 1px solid rgba(255,255,255,.14); border-radius: 8px; }
.dark-card { background: rgba(255,255,255,.07); color: white; }
.contact-card p { margin: 0 0 10px; color: rgba(255,255,255,.78); }
.contact-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: start; }
.contact-list { display: grid; gap: 12px; }
.contact-list article { display: grid; grid-template-columns: 52px 1fr; gap: 16px; padding: 22px; background: white; border: 1px solid var(--line); border-radius: 8px; }
.contact-list strong { display: grid; place-items: center; width: 42px; height: 42px; color: white; background: var(--green); border-radius: 7px; }
.contact-list p { margin: 0; color: var(--muted); }
.map-section { padding-top: 0; }
.map-frame { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: white; box-shadow: 0 18px 46px rgba(25,31,34,.1); }
.map-frame iframe { display: block; width: 100%; height: 460px; border: 0; }
.work-category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.work-category { display: grid; overflow: hidden; color: inherit; background: white; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }
.work-category:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(25,31,34,.12); }
.work-category img { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: #111; }
.work-category div { padding: 24px; }
.work-category h2 { margin-bottom: 8px; font-size: 30px; }
.work-category p:last-child { margin: 0; color: var(--muted); }
.work-category.is-pending { opacity: .72; }
.subnav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.subnav a { display: inline-flex; align-items: center; min-height: 36px; padding: 7px 12px; color: white; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22); border-radius: 999px; font-size: 14px; font-weight: 800; text-decoration: none; }
.case-section { margin-bottom: 26px; padding: 28px; background: white; border: 1px solid var(--line); border-radius: 8px; }
.case-section:last-child { margin-bottom: 0; }
.case-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.case-head h2 { margin: 0; font-size: 30px; }
.case-head span { flex: 0 0 auto; color: var(--green); font-weight: 900; }
.case-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.case-photo { position: relative; display: block; overflow: hidden; padding: 0; background: #111; border: 0; border-radius: 8px; cursor: pointer; }
.case-photo img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .18s ease; }
.case-photo:hover img { transform: scale(1.03); }
.case-photo span { position: absolute; left: 10px; bottom: 10px; min-width: 44px; padding: 4px 8px; color: white; background: rgba(0,0,0,.62); border: 1px solid rgba(255,255,255,.24); border-radius: 999px; font-size: 13px; font-weight: 900; text-align: center; }
.work-link { display: block; overflow: hidden; padding: 0; color: inherit; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }
.work-link:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(25,31,34,.12); }
.work-link img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.work-link div { padding: 24px; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.photo-tile { display: grid; gap: 8px; padding: 0; background: white; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; text-align: left; cursor: pointer; }
.photo-tile img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.photo-tile span { padding: 0 16px 16px; color: var(--muted); font-weight: 800; }
.taglist, .case-links { display: flex; flex-wrap: wrap; gap: 8px; }
.tag, .case-link { display: inline-flex; align-items: center; min-height: 34px; padding: 6px 12px; background: #eef3f0; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; text-decoration: none; }
.process { counter-reset: step; }
.process .card::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 22px; color: white; background: var(--green); border-radius: 50%; font-weight: 900; }
.dark { background: #171d20; color: white; }
.dark p, .dark li { color: rgba(255,255,255,.76); }
.contact-box { margin-top: 92px; background: white; border: 1px solid var(--line); border-radius: 8px; padding: 28px; }
footer { padding: 28px 0; background: #171d20; color: rgba(255,255,255,.75); }
.lightbox { position: fixed; inset: 0; z-index: 30; display: none; place-items: center; overflow: hidden; padding: 28px; background: rgba(8,10,11,.92); }
.lightbox.is-open { display: grid; }
.lightbox figure { width: min(1180px, 100%); margin: 0; color: white; }
  .lightbox img { width: 100%; max-height: 82vh; object-fit: contain; background: #111; transform-origin: center; transition: transform .12s ease; cursor: zoom-in; touch-action: none; user-select: none; -webkit-user-drag: none; }
.lightbox figcaption { margin-top: 12px; color: rgba(255,255,255,.82); font-weight: 800; text-align: center; }
.lightbox button { position: absolute; top: 18px; right: 18px; width: 48px; height: 48px; color: white; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.4); border-radius: 8px; font-size: 34px; line-height: 1; cursor: pointer; }
@media (max-width: 900px) {
  nav { display: none; }
  .hero, .grid-4, .grid-3, .grid-2, .gallery, .work-category-grid, .case-gallery, .service-head-inner, .service-grid, .service-note, .process-flow, .about-head-inner, .about-layout, .about-values, .contact-head-inner, .contact-layout { grid-template-columns: 1fr; }
  .home-page .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero { min-height: auto; }
  .hero-copy { padding: 72px 24px; }
  .home-page .hero-copy { padding: 56px 24px 36px; }
  .hero h1 { font-size: 42px; white-space: normal; }
  .home-page .hero h1 { font-size: clamp(40px, 11vw, 52px); white-space: nowrap; }
  .home-page .hero-copy > p:not(.eyebrow) { font-size: 21px; }
  .hero-media, .home-page .hero-media { min-height: 340px; }
  .home-page .hero-img { height: 340px; object-position: 68% center; transform: translateX(-14%) scale(1.12); }
  .home-menu { display: flex; flex-wrap: wrap; width: 100%; margin-top: 26px; }
  .counter-box { right: 24px; bottom: 24px; }
  .counter-box span { width: 22px; height: 34px; font-size: 24px; }
  .contact-box { margin-top: 0; }
  .case-section { padding: 20px; }
  .case-head { display: block; }
}
