@charset "UTF-8";
/* 鉉宸有限公司 acμmen.tools — 官方網站
   Token：紙 #fbfbf9、面 #f1f1ee、墨 #14181f、文 #565c68、線 #d8dadd、藍 #0f2748
   字：Noto Serif TC 600 標題；Noto Sans TC 400/500 內文 */

:root {
  --paper: #fbfbf9;
  --tint: #f1f1ee;
  --ink: #14181f;
  --text: #46515c;
  --line: #d8dadd;
  --blue: #0f2748;
  --blue-2: #1c3c6a;
  --accent: #c2432a;
  --accent-2: #a5361f;
  --serif: "Noto Serif TC", "Songti TC", "PMingLiU", serif;
  --sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  --container: 1280px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --space-section: clamp(4rem, 9vw, 7rem);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 1.0625rem; line-height: 1.8; color: var(--text); background: var(--paper); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
svg { display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
table { border-collapse: collapse; width: 100%; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -100px; padding: 0.5rem 0.9rem; background: var(--ink); color: #fff; z-index: 200; }
.skip-link:focus { top: 1rem; }
.container { width: min(100% - var(--gutter) * 2, var(--container)); margin-inline: auto; }
.container.narrow > * { max-width: 44rem; }

/* 字級：56 / 32 / 22 / 17 / 14 */
h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(2.25rem, 4.2vw, 3.5rem); line-height: 1.3; color: var(--ink); letter-spacing: 0; }
h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(1.6rem, 2.4vw, 2rem); line-height: 1.3; color: var(--ink); }
h3 { font-family: var(--sans); font-weight: 500; font-size: 1.375rem; line-height: 1.4; color: var(--ink); }
.lead { font-size: 1.125rem; }
p + p { margin-top: 1.25rem; }
.narrow h2 + p, .section-head h2 + p { margin-top: 1.25rem; }
.section-head { max-width: 44rem; margin-bottom: 2.5rem; }
.link { color: var(--accent); font-weight: 500; text-decoration: underline; text-underline-offset: 0.3em; text-decoration-thickness: 1px; }
.link:hover { color: var(--accent-2); }
.btn { display: inline-block; padding: 0.8rem 1.4rem; border-radius: 2px; background: var(--accent); color: #fff; font-weight: 500; transition: background-color 0.2s; }
.btn:hover { background: var(--accent-2); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; margin-top: 2rem; }
.note { max-width: 44rem; margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: 0.95rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; height: var(--header-h); background: rgba(251, 251, 249, 0.94); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 100%; }
.brand { display: flex; align-items: center; gap: 0.7rem; color: var(--blue); }
.brand-mark { width: 40px; height: 40px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 1.05rem; letter-spacing: 0.04em; }
.brand-sub { font-size: 0.72rem; color: var(--text); letter-spacing: 0.06em; }
.site-nav { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); }
.site-nav a { font-size: 0.95rem; font-weight: 500; color: var(--ink); white-space: nowrap; }
.site-nav a:not(.nav-cta):hover { color: var(--blue); text-decoration: underline; text-underline-offset: 0.35em; text-decoration-thickness: 1px; }
.nav-cta { padding: 0.55rem 1.05rem; border-radius: 2px; background: var(--accent); color: #fff !important; }
.nav-cta:hover { background: var(--accent-2); }
.nav-toggle { display: none; position: relative; width: 44px; height: 44px; z-index: 110; color: var(--ink); }
.nav-toggle span { position: absolute; left: 11px; width: 22px; height: 2px; background: currentColor; transition: transform 0.25s, top 0.25s; }
.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child { top: 25px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* Hero */
.hero { padding: clamp(4rem, 9vw, 7.5rem) 0 clamp(3rem, 7vw, 5.5rem); }
.hero--image { position: relative; color: #fff; background: #0b1a33; padding: clamp(6rem, 14vw, 11rem) 0 clamp(5rem, 10vw, 8rem); }
.hero--image :focus-visible { outline-color: #fff; }
.hero--image .hero-copy { max-width: 40rem; }
.hero--image h1 { color: #fff; }
.hero--image .lead { color: rgba(255, 255, 255, 0.82); }
.hero--image .link { color: #fff; }
.hero--image .link:hover { color: rgba(255, 255, 255, 0.8); }
.hero--image .hero-figure .diagram { background: #fff; padding: clamp(0.75rem, 2vw, 1.5rem); box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.6); }
.hero--image .hero-figure figcaption { color: rgba(255, 255, 255, 0.7); }
.hero--events { background: #0b1a33 url("../assets/img/events/bg-events.jpg") right center / cover no-repeat; }
.hero--events::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 26, 51, 0.92) 0%, rgba(11, 26, 51, 0.75) 45%, rgba(11, 26, 51, 0.15) 100%); pointer-events: none; }
@media (max-width: 960px) { .hero--events { background-position: center 85%; } .hero--events::after { background: linear-gradient(180deg, rgba(11, 26, 51, 0.94) 0%, rgba(11, 26, 51, 0.85) 60%, rgba(11, 26, 51, 0.5) 100%); } }
.hero--events .container { position: relative; z-index: 1; }
.crumb--light { color: rgba(255, 255, 255, 0.6); }
.hero--scada { background: #243544 url("../assets/img/scada/bg-scada.jpg") right center / auto 100% no-repeat; }
.hero--scada::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(36, 53, 68, 0.85) 0%, rgba(36, 53, 68, 0.55) 40%, rgba(36, 53, 68, 0) 65%); pointer-events: none; }
.hero--scada .container { position: relative; z-index: 1; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
.gallery .figure { margin-top: 0; max-width: none; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.hero h1 + .lead { margin-top: 1.5rem; max-width: 28em; }
.hero-figure figcaption, .figure figcaption { margin-top: 0.75rem; font-size: 0.875rem; color: var(--text); }
.diagram { width: 100%; height: auto; }
.hero--compact { padding-bottom: clamp(2rem, 5vw, 4rem); }
.crumb { font-size: 0.875rem; margin-bottom: 1.25rem; }
.crumb a { text-decoration: underline; text-underline-offset: 0.3em; text-decoration-thickness: 1px; }
.hero--compact h1 + .lead { margin-top: 1.5rem; }
.hero-copy > *, .hero-figure { animation: rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) both; }
.hero-copy > :nth-child(2) { animation-delay: 0.08s; }
.hero-copy > :nth-child(3) { animation-delay: 0.16s; }
.hero-figure { animation-delay: 0.2s; }
@keyframes rise { from { transform: translateY(10px); } to { transform: none; } }

/* Sections */
.section { padding: var(--space-section) 0; }
.section--tinted { background: var(--tint); }
.section + .section:not(.section--tinted) { border-top: 1px solid var(--line); }
.section--tinted + .section { border-top: 0; }

/* Tiles（首頁服務拼貼） */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 2rem; }
.tile { display: flex; flex-direction: column; color: var(--text); }
.tile-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--tint); border: 1px solid var(--line); }
.tile-media img, .tile-media svg { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.tile:hover .tile-media img, .tile:hover .tile-media svg { transform: scale(1.02); }
.tile-body { padding-top: 1.1rem; display: flex; flex-direction: column; gap: 0.4rem; }
.tile-body h3 { font-family: var(--serif); font-weight: 600; font-size: 1.35rem; color: var(--ink); }
.tile-body p { font-size: 0.95rem; }
.tile-body .link { align-self: flex-start; margin-top: 0.35rem; }
.why-list { display: grid; gap: 1.75rem; }
.why-list > div { padding-top: 1.25rem; border-top: 1px solid var(--line); }
.why-list h3 { font-size: 1.125rem; font-weight: 500; margin-bottom: 0.4rem; }
.why-list p { font-size: 1rem; }
.why-list .proof { margin-top: 0.5rem; font-size: 0.9rem; color: var(--ink); }
.deliverable { margin-top: 0.6rem; font-size: 0.85rem; color: var(--ink); padding-top: 0.5rem; border-top: 1px solid var(--line); }

/* Service index */
.index-section { padding-top: 0; }
.service-index { border-top: 1px solid var(--ink); }
.service-index li { border-bottom: 1px solid var(--line); }
.service-index a { display: grid; grid-template-columns: minmax(0, 0.45fr) minmax(0, 0.55fr); gap: 1.5rem; align-items: baseline; padding: 1.5rem 0; }
.service-index .name { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; color: var(--ink); transition: color 0.2s; }
.service-index .desc { color: var(--text); }
.service-index a:hover .name { color: var(--blue); }

/* Definition lists */
.defs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 4rem; max-width: 64rem; }
.defs > div { padding-top: 1rem; border-top: 1px solid var(--line); }
.defs dt { font-weight: 500; color: var(--ink); font-size: 1.125rem; margin-bottom: 0.4rem; }
.defs dd { font-size: 1rem; }
.defs--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; max-width: none; }
.defs--list { grid-template-columns: 1fr; gap: 0; max-width: 44rem; }
.defs--list > div { display: grid; grid-template-columns: minmax(0, 12rem) minmax(0, 1fr); gap: 1rem 2rem; padding: 1.25rem 0; }
.defs--list dt { margin: 0; }
.figure--diagram .diagram { border: 1px solid var(--line); background: #fff; padding: clamp(0.75rem, 2vw, 1.5rem); }

/* Figures */
.figure { margin-top: 3rem; max-width: 64rem; }
.figure--shot img { border: 1px solid var(--line); background: #fff; }
.spec-line { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; margin: 1.5rem 0 1.25rem; font-size: 0.95rem; }
.spec-line span { color: var(--ink); }

/* Steps (真正的順序，允許編號) */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.5rem 2rem; border-top: 1px solid var(--ink); padding-top: 1.5rem; }
.step-num { display: block; font-family: var(--serif); font-size: 1.5rem; color: var(--ink); margin-bottom: 0.75rem; }
.steps h3 { font-size: 1.125rem; margin-bottom: 0.35rem; }
.steps p { font-size: 0.95rem; }
.steps--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2rem 1.5rem; }
.section--flush { padding-top: 0; }
.figure--wide { max-width: none; margin-top: 0; }

/* Tabs (產品畫面) */
.shots-tabs { display: flex; flex-wrap: wrap; gap: 0 1.75rem; border-bottom: 1px solid var(--line); margin-bottom: 2rem; }
.shots-tabs [role="tab"] { padding: 0.6rem 0; margin-bottom: -1px; border-bottom: 2px solid transparent; font-weight: 500; color: var(--text); transition: color 0.2s, border-color 0.2s; }
.shots-tabs [role="tab"]:hover { color: var(--ink); }
.shots-tabs [role="tab"][aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.shots-panels .figure { margin-top: 0; }
.shots-panels img { background: #fff; }

/* Contact */
.contact { background: var(--tint); border-top: 1px solid var(--line); }
.contact-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.contact-inner h2 + p { margin-top: 1.25rem; max-width: 32em; }
.contact-list { display: grid; gap: 1.5rem; }
.contact-list li { display: flex; flex-direction: column; gap: 0.15rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.contact-list span { font-size: 0.875rem; }
.contact-list a { font-family: var(--serif); font-weight: 600; font-size: clamp(1.5rem, 2.6vw, 2rem); color: var(--ink); }
.contact-list a:hover { color: var(--blue); }

/* Table */
.table-wrap { overflow-x: auto; border-top: 1px solid var(--ink); max-width: 64rem; }
th, td { padding: 1rem 1.25rem 1rem 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); font-size: 1rem; }
th { font-weight: 500; color: var(--ink); font-size: 0.875rem; }
td:first-child { color: var(--ink); font-weight: 500; white-space: nowrap; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 3rem 0 2.5rem; font-size: 0.95rem; }
.footer-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 2rem 3rem; align-items: start; }
.footer-logo { width: 96px; height: auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; }
.footer-links a:hover, .footer-contact a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 0.3em; }
.footer-contact { display: grid; gap: 0.25rem; color: var(--ink); }
.footer-copy { grid-column: 1 / -1; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: 0.875rem; }

/* Responsive */
@media (max-width: 960px) {
  :root { --header-h: 64px; }
  .nav-toggle { display: block; }
  .site-nav { position: fixed; inset: 0; z-index: 105; flex-direction: column; justify-content: safe center; align-items: center; gap: 1.5rem; padding: calc(var(--header-h) + 1rem) 1.5rem 2rem; overflow-y: auto; background: var(--paper); opacity: 0; visibility: hidden; transition: opacity 0.25s, visibility 0s 0.25s; }
  .site-nav.is-open { opacity: 1; visibility: visible; transition: opacity 0.25s; }
  .site-nav a { font-family: var(--serif); font-size: 1.5rem; }
  .site-nav a.nav-cta { font-family: var(--sans); font-size: 1rem; padding: 0.8rem 1.6rem; }
  .hero-inner, .contact-inner, .gallery { grid-template-columns: 1fr; }
  .defs--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps, .steps--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  :root { --space-section: 4rem; }
  body { font-size: 1rem; }
  h1 { font-size: 2.25rem; }
  h1 br { display: none; }
  .defs, .defs--4 { grid-template-columns: 1fr; gap: 1.5rem; }
  .tiles { grid-template-columns: 1fr; }
  .defs--list > div { grid-template-columns: 1fr; gap: 0.25rem; }
  .service-index a { grid-template-columns: 1fr; gap: 0.25rem; }
  .steps, .steps--5 { grid-template-columns: 1fr; }
  .actions .btn { width: 100%; text-align: center; }
  td:first-child { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-copy > *, .hero-figure { animation: none; }
  * { transition-duration: 0.01ms !important; }
}
