:root { color-scheme: light; --paper: #f7f8f5; --surface: #fff; --ink: #162d32; --muted: #63747a; --line: #dbe3df; --accent: #26786f; --dark: #142b30; --content: 1180px; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang HK", "Noto Sans CJK TC", sans-serif; font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { display: block; max-width: 100%; }
::selection { color: var(--ink); background: #b7dfd1; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.lang-zh { display: none; }
html[lang="zh-Hant"] .lang-zh { display: inline; }
html[lang="zh-Hant"] .lang-en { display: none; }
.container { width: min(calc(100% - 64px), var(--content)); margin-inline: auto; }
.skip-link { position: absolute; z-index: 20; top: -60px; left: 18px; padding: 10px 16px; background: var(--ink); color: white; }
.skip-link:focus { top: 12px; }
.site-header { position: sticky; z-index: 10; top: 0; background: rgba(247, 248, 245, .95); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); }
.header-inner { display: flex; align-items: center; min-height: 75px; gap: 36px; }
.brand { display: inline-flex; align-items: center; gap: 15px; flex-shrink: 0; }
.brand-mark { display: grid; place-items: center; width: 39px; height: 39px; background: var(--ink); color: white; font-weight: 800; font-size: 16px; line-height: 1; letter-spacing: -.09em; border-radius: 5px; }
.brand-dot { color: #91cdbf; }
.brand-name { font-size: 12px; font-weight: 800; letter-spacing: .14em; white-space: nowrap; }
.nav { display: flex; align-items: center; justify-content: center; gap: clamp(20px, 3vw, 43px); margin-left: auto; }
.nav a { color: #506168; font-size: 13px; font-weight: 600; white-space: nowrap; transition: color .2s; }
.nav a:hover, .footer-inner a:hover { color: var(--accent); }
.language-switch { display: flex; align-items: center; gap: 7px; flex-shrink: 0; margin-left: 12px; padding: 5px 6px; border: 1px solid var(--line); border-radius: 5px; color: #9caaa8; font-size: 11px; }
.language-switch button { border: 0; background: none; color: #8b999b; cursor: pointer; padding: 2px 3px; font-size: 11px; font-weight: 700; letter-spacing: .06em; }
.language-switch button[aria-pressed="true"] { color: var(--ink); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.045em; }
h1 em, h2 em { color: var(--accent); font-style: normal; }
.no-wrap { white-space: nowrap; }
.eyebrow, .section-kicker, .compact-category, .image-label, .card-action, .contact-label, .footer-inner, .detail-label { font-size: 11px; font-weight: 750; letter-spacing: .14em; line-height: 1.45; }
.eyebrow { display: flex; align-items: center; gap: 11px; color: var(--accent); margin-bottom: 17px; }
.eyebrow-line { width: 24px; height: 1px; background: currentColor; }
.section-kicker { color: var(--accent); margin-bottom: 11px; }
.meta-indicator { width: 7px; height: 7px; flex: none; border-radius: 50%; background: #71b49d; box-shadow: 0 0 0 4px #dff0e8; }

.home-intro { padding-block: 30px; }
.intro-grid { display: grid; grid-template-columns: minmax(0, 1.28fr) minmax(0, .72fr); gap: 75px; align-items: end; }
.home-intro h1 { max-width: 760px; margin: 0; font-size: clamp(36px, 4vw, 54px); font-weight: 680; }
.intro-aside p { max-width: 410px; margin-bottom: 24px; color: #4c6065; font-size: 15px; line-height: 1.75; }
.intro-meta { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: 11px; }
.intro-link { display: table; margin-top: 16px; border-bottom: 1px solid currentColor; padding-bottom: 2px; color: var(--accent); font-size: 12px; font-weight: 700; }
.intro-link:hover { color: var(--ink); }

.work-section { padding-block: 28px 48px; background: white; border-top: 1px solid var(--line); }
.compact-heading { display: flex; align-items: end; justify-content: space-between; gap: 35px; margin-bottom: 19px; }
.compact-heading h2, .summary-grid h2 { margin-bottom: 0; font-size: clamp(29px, 3vw, 40px); font-weight: 670; }
.compact-heading > p { max-width: 360px; margin-bottom: 2px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.compact-project-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.compact-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--line); background: white; box-shadow: 0 6px 18px rgba(18, 47, 48, .07); transition: transform .2s, border-color .2s, box-shadow .2s; }
a.compact-card:hover { transform: translateY(-5px); border-color: #9bbeb1; box-shadow: 0 16px 28px rgba(18, 47, 48, .15); }
.compact-image { position: relative; height: 126px; overflow: hidden; background: #eaf0eb; }
.compact-image img { width: 100%; height: 100%; object-fit: contain; }
.compact-image-dark { background: #303e4b; }
.compact-image-robot { background: #e9ebea; }
.compact-image-board img { padding: 8px 16px; mix-blend-mode: multiply; }
.image-label { position: absolute; left: 11px; bottom: 10px; padding: 5px 7px 4px; background: rgba(255, 255, 255, .91); color: #34525a; font-size: 9px; }
.compact-content { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 14px 16px; }
.compact-category { color: var(--accent); font-size: 9px; }
.compact-content h3 { margin: 7px 0 6px; font-size: 17px; font-weight: 650; }
.compact-content p { color: var(--muted); font-size: 12px; line-height: 1.55; margin-bottom: 12px; }
.card-action { margin-top: auto; color: var(--accent); font-size: 10px; }
.card-action { border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.compact-symbol { display: grid; place-items: center; height: 126px; background: #eaf0eb; color: var(--accent); font-size: 58px; line-height: 1; }

.summary-section { padding-block: 35px; border-bottom: 1px solid var(--line); }
.summary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.home-expertise { padding-bottom: 32px; }
.home-expertise .detail-body { padding-block: 18px 22px; }
.home-expertise .detail-body:last-child { padding-bottom: 0; }
.home-expertise .detail-body h3 { margin: 0; font-size: 24px; }
.summary-copy { max-width: 560px; margin-bottom: 0; color: #52666b; font-size: 15px; line-height: 1.85; }
.about-section { background: #eef3ef; }
.contact-section { padding-block: 35px; background: white; color: var(--ink); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 65px; align-items: end; }
.contact-section .section-kicker { color: var(--accent); }
.contact-section h2 { margin-bottom: 8px; font-size: 32px; }
.contact-section p:not(.section-kicker) { color: var(--muted); font-size: 14px; margin-bottom: 0; }
.contact-links a, .contact-line { display: grid; grid-template-columns: 68px minmax(0, 1fr) 18px; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.contact-links a:first-child { border-top: 1px solid var(--line); }
.contact-links a:hover .contact-value { color: var(--accent); }
.contact-label { color: var(--accent); font-size: 10px; }
.contact-value { overflow-wrap: anywhere; font-size: clamp(15px, 1.7vw, 20px); font-weight: 550; letter-spacing: -.02em; transition: color .2s; }
.contact-links [aria-hidden="true"] { color: var(--accent); }
.site-footer { background: var(--paper); border-top: 1px solid var(--line); color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 65px; font-size: 10px; }
.footer-inner a { color: var(--accent); transition: color .2s; }

.detail-main { background: white; }
.detail-overview { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(260px, .8fr); gap: 44px; align-items: center; padding-block: 32px 24px; }
.detail-overview-text { grid-template-columns: 1fr; }
.detail-overview figure { margin: 0; min-width: 0; }
.detail-back { display: inline-block; margin-bottom: 20px; color: var(--accent); font-size: 12px; font-weight: 700; }
.detail-back:hover { text-decoration: underline; }
.detail-hero h1 { max-width: 750px; margin-bottom: 14px; font-size: clamp(32px, 3.3vw, 46px); font-weight: 680; }
.detail-lead { max-width: 680px; margin-bottom: 14px; color: #52666b; font-size: 15px; line-height: 1.7; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.detail-meta span { color: var(--accent); font-size: 11px; font-weight: 650; }
.detail-meta span + span::before { content: "·"; margin-right: 8px; color: var(--muted); }
.detail-image { display: grid; place-items: center; min-height: 210px; background: #f0f3f0; }
.detail-image img { width: 100%; max-height: 270px; height: auto; object-fit: contain; }
.detail-image-light { background: #f0f3f0; }
.detail-image-light img { max-width: 100%; margin-block: 0; }
.detail-image-robot { background: #e9ebea; }
.detail-caption { margin: 0; padding: 6px 0 0; color: var(--muted); font-size: 11px; }
.detail-body { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 38px; padding-block: 22px 30px; border-top: 1px solid var(--line); }
.detail-body h2 { margin: 0; font-size: 24px; }
.detail-body p { color: #52666b; font-size: 14px; line-height: 1.7; margin-bottom: 12px; }
.detail-body h3 { margin: 20px 0 10px; font-size: 18px; }
.detail-points { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.detail-points li { display: grid; grid-template-columns: 155px 1fr; gap: 18px; border-bottom: 1px solid var(--line); padding: 10px 0; color: #5b7072; font-size: 13px; line-height: 1.6; }
.detail-points strong { color: var(--ink); font-weight: 650; }
.detail-inline-link { color: var(--accent); border-bottom: 1px solid currentColor; white-space: nowrap; }
.detail-inline-link:hover { color: var(--ink); }
.evidence-note { margin-top: 13px; font-size: 12px !important; }
.detail-credit { margin-top: 16px; padding: 12px 0 0; border-top: 1px solid var(--line); }
.detail-credit p { margin-bottom: 6px; font-size: 12px; }
.detail-credit a { color: var(--accent); font-size: 12px; font-weight: 650; border-bottom: 1px solid currentColor; }
.detail-thumbs { display: flex; gap: 12px; margin-top: 15px; }
.detail-thumbs img { width: min(48%, 170px); height: 110px; object-fit: contain; background: #f0f3f0; }
.pcb-points li { grid-template-columns: 170px minmax(0, 1fr); }
.pcb-gallery, .drawing-gallery { padding-block: 28px 36px; border-top: 1px solid var(--line); background: white; }
.pcb-gallery-heading, .drawing-gallery-heading { max-width: 820px; margin-bottom: 20px; }
.pcb-gallery-heading h2, .drawing-gallery-heading h2 { margin-bottom: 8px; font-size: 24px; }
.pcb-gallery-heading > p:last-child, .drawing-gallery-heading > p:last-child { margin-bottom: 0; color: #52666b; font-size: 13px; line-height: 1.65; }
.pcb-set { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 38px; padding-block: 18px; border-top: 1px solid var(--line); }
.pcb-set h3 { margin-bottom: 0; font-size: 16px; }
.pcb-gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pcb-gallery-grid figure, .drawing-grid figure { min-width: 0; margin: 0; }
.pcb-gallery-grid a, .drawing-grid a { display: block; background: #f2f5f2; }
.pcb-gallery-grid img, .drawing-grid img { width: 100%; height: 165px; object-fit: contain; }
.pcb-gallery-grid figcaption, .drawing-grid figcaption { padding-top: 5px; color: var(--muted); font-size: 11px; }
.drawing-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.drawing-grid .drawing-wide { grid-column: span 2; }
.drawing-grid .drawing-wide img { height: 165px; }
.detail-next { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding-block: 20px 32px; color: var(--accent); font-size: 12px; font-weight: 700; }
.detail-next a:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .header-inner { gap: 20px; }
  .brand-name { display: none; }
  .nav { gap: 18px; }
  .intro-grid { gap: 35px; }
  .compact-project-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .detail-overview { grid-template-columns: minmax(0, 1fr) minmax(230px, .8fr); gap: 22px; }
}
@media (max-width: 680px) {
  html { scroll-padding-top: 118px; }
  .container { width: min(calc(100% - 36px), var(--content)); }
  .header-inner { flex-wrap: wrap; min-height: 0; padding-top: 13px; column-gap: 16px; row-gap: 11px; }
  .brand { margin-right: auto; }
  .brand-name { display: inline; }
  .language-switch { margin-left: 0; }
  .nav { order: 3; justify-content: space-between; width: 100%; padding-bottom: 12px; margin: 0; gap: 10px; }
  .nav a { font-size: 12px; }
  .home-intro { padding-block: 25px; }
  .intro-grid, .summary-grid, .contact-grid, .detail-body { grid-template-columns: 1fr; gap: 19px; }
  .home-intro h1 { font-size: clamp(38px, 9vw, 54px); }
  .intro-aside p { margin-bottom: 15px; font-size: 14px; }
  .work-section { padding-block: 26px 40px; }
  .compact-heading { display: block; margin-bottom: 20px; }
  .compact-heading > p { margin: 10px 0 0; }
  .compact-project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .compact-image, .compact-symbol { height: 105px; }
  .compact-content { padding: 15px; }
  .compact-content h3 { font-size: 17px; }
  .compact-content p { font-size: 11px; }
  .summary-section { padding-block: 45px; }
  .contact-section { padding-block: 32px; }
  .contact-grid { gap: 30px; }
  .footer-inner { flex-wrap: wrap; justify-content: space-between; padding-block: 20px; min-height: 0; }
  .footer-inner > span:nth-child(2) { display: none; }
  .detail-overview { grid-template-columns: 1fr; gap: 12px; padding-block: 24px 20px; }
  .detail-back { margin-bottom: 15px; }
  .detail-hero h1 { font-size: clamp(32px, 8vw, 42px); }
  .detail-lead { font-size: 14px; }
  .detail-image { min-height: 0; }
  .detail-image img { max-height: 150px; }
  .detail-body { padding-block: 20px 28px; }
  .detail-points li { grid-template-columns: 1fr; gap: 3px; }
  .pcb-points li { grid-template-columns: 1fr; }
  .pcb-gallery, .drawing-gallery { padding-block: 24px 32px; }
  .pcb-set { grid-template-columns: 1fr; gap: 10px; }
  .pcb-gallery-grid { gap: 10px; }
  .pcb-gallery-grid img { height: 130px; }
  .drawing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .drawing-grid .drawing-wide { grid-column: span 2; }
  .drawing-grid img { height: 135px; }
  .drawing-grid .drawing-wide img { height: 170px; }
  .detail-thumbs img { height: 140px; }
}
@media (max-width: 340px) {
  .compact-project-grid { grid-template-columns: 1fr; }
  .compact-image, .compact-symbol { height: 120px; }
  .contact-links a, .contact-line { grid-template-columns: 1fr 20px; }
  .contact-label { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
