:root { --ink: #173340; --muted: #58707a; --line: #dbe4e6; --paper: #f6f9f9; --accent: #087b83; }
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Noto Sans TC", "Segoe UI", sans-serif; line-height: 1.75; }
a { color: var(--accent); }
.site-header, .site-footer, .content-page {
  width: 100%;
  margin-inline: 0;
  padding-inline: clamp(1rem, 4vw, 4rem);
}
.site-header { min-height: 5rem; display: flex; align-items: center; gap: 1.5rem; border-bottom: 1px solid var(--line); }
.brand { color: var(--ink); font-weight: 700; text-decoration: none; white-space: nowrap; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 1rem; }
.site-header nav a, .language-switcher a { text-decoration: none; }
.language-switcher { margin-left: auto; display: flex; gap: .55rem; white-space: nowrap; }
.content-page { padding-block: 3rem 5rem; }
.content-page article { max-width: 52rem; padding: clamp(1.5rem, 4vw, 3.5rem); background: #fff; border: 1px solid var(--line); border-radius: 1rem; }
/* Keep the reading column comfortable while the page shell remains full-bleed. */
@media (min-width: 120rem) { .content-page article { max-width: 68rem; } }
.breadcrumb { display: flex; gap: .5rem; color: var(--muted); font-size: .9rem; margin-bottom: 1.25rem; }
h1 { line-height: 1.28; margin: 0 0 1rem; font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { margin-top: 2.75rem; line-height: 1.35; }
.intro { padding: 1rem 1.25rem; border-left: .25rem solid var(--accent); background: #f0f7f7; font-size: 1.08rem; }
.rich-content { margin-top: 2rem; }
.rich-content img, .rich-content video { max-width: 100% !important; height: auto !important; }
.rich-content iframe { max-width: 100% !important; }
.rich-content table { display: block; max-width: 100%; overflow-x: auto; }
.rich-content h2 { font-size: 1.4rem; margin: 2.25rem 0 .75rem; }
.rich-content h2:first-child { margin-top: 0; }
.rich-content p { margin: 0 0 1.15rem; }
.rich-content ul { margin: 0 0 1.15rem; padding-left: 1.4rem; display: grid; gap: .5rem; }
.rich-content li { line-height: 1.7; }
.home-mission h2 { font-size: 1.4rem; margin: 2rem 0 .75rem; }
.home-mission ul { margin: 0 0 1rem; padding-left: 1.4rem; display: grid; gap: .5rem; }
.home-mission li { line-height: 1.7; }
.contact-details dl { display: grid; gap: 1rem; }
.contact-details dl div { padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.contact-details dt { font-weight: 700; }.contact-details dd { margin: .25rem 0 0; }
.site-footer { padding-block: 2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.site-footer p { margin: .3rem 0; }
@media (max-width: 44rem) { .site-header { padding-block: 1rem; align-items: flex-start; flex-wrap: wrap; }.language-switcher { margin-left: 0; } }

/* Phase 2 catalogue */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.product-page article, .catalog-page article { max-width: none; }
.provenance { display: flex; flex-wrap: wrap; gap: 1.25rem; margin: 1rem 0 0; color: var(--muted); font-size: .9rem; }
.usage-note { margin-top: 3rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
.gallery-track { display: flex; gap: 1rem; margin: 0; padding: 0 0 1rem; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; contain: paint; }
.gallery-slide { flex: 0 0 min(100%, 26rem); scroll-snap-align: start; }
.gallery-open { display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: .75rem; background: #fff; cursor: zoom-in; }
.gallery-image, .product-card-image { display: block; width: 100%; height: auto; border-radius: .7rem; }
.gallery-lightbox { max-width: min(92vw, 60rem); border: 0; border-radius: 1rem; padding: 1rem; }
.gallery-lightbox::backdrop { background: rgb(23 51 64 / .78); }
.gallery-close { float: right; border: 1px solid var(--line); border-radius: 999px; padding: .3rem .9rem; background: var(--paper); cursor: pointer; }
.gallery-frame { margin: 2rem 0 0; }
.gallery-frame img { display: block; width: 100%; height: auto; }
.product-video video { width: 100%; height: auto; border-radius: .75rem; background: #000; }
.spec-table { width: 100%; border-collapse: collapse; margin-top: 1rem; }
.spec-table th, .spec-table td { padding: .6rem .8rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.spec-table th { width: 34%; font-weight: 600; background: #f0f7f7; }
.spec-table-raw { margin: 1.5rem 0; overflow-x: auto; }
.spec-table-raw table { width: 100%; border-collapse: collapse; }
.spec-table-raw th, .spec-table-raw td { padding: .5rem .7rem; border: 1px solid var(--line); }
.spec-source { margin-top: .75rem; color: var(--muted); font-size: .85rem; }
.datasheet-link { font-weight: 600; }
.product-grid, .node-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); margin: 1.25rem 0 0; padding: 0; list-style: none; }
.product-card a, .node-card a { display: block; height: 100%; padding: 1rem; border: 1px solid var(--line); border-radius: .9rem; background: #fff; color: inherit; text-decoration: none; }
.product-card h3, .node-card h3 { margin: .75rem 0 .35rem; font-size: 1.05rem; }
.product-card p, .node-card p { margin: 0; color: var(--muted); font-size: .9rem; }
.catalog-products .count { color: var(--muted); font-size: .9rem; font-weight: 400; }
.cta-button { display: inline-block; padding: .7rem 1.4rem; border-radius: 999px; background: var(--accent); color: #fff; text-decoration: none; }

/* Phase 3 news and event records */
.news-categories ul { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0; padding: 0; list-style: none; }
.news-categories a { display: block; padding: .35rem .8rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; }
.news-grid, .speaker-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); margin: 2rem 0 0; padding: 0; list-style: none; }
.news-card a, .speaker-grid > li { display: block; height: 100%; padding: 1rem; border: 1px solid var(--line); border-radius: .9rem; background: #fff; color: inherit; text-decoration: none; }
.news-card-image, .speaker-grid img { display: block; width: 100%; height: auto; border-radius: .65rem; }
.news-card h2, .speaker-grid h3 { margin: .75rem 0 .35rem; font-size: 1.1rem; line-height: 1.4; }
.news-card p, .news-byline, .event-date, .event-agenda span { color: var(--muted); }
.news-category { margin: 0; color: var(--accent); font-size: .9rem; font-weight: 700; }
.article-toc { margin: 2rem 0; padding: 1rem 1.25rem; border-left: .25rem solid var(--accent); background: #f0f7f7; }
.article-toc ol { margin: 0; padding-left: 1.25rem; }
.article-toc .toc-level-3, .article-toc .toc-level-4, .article-toc .toc-level-5, .article-toc .toc-level-6 { margin-left: 1rem; }
.news-gallery, .event-gallery { margin-top: 2rem; }
.event-agenda { display: grid; gap: .75rem; padding-left: 1.5rem; }
.event-agenda time { display: inline-block; min-width: 8rem; color: var(--muted); }

/* Phase 4 — homepage (zh `/`, en `/en`) */
.home-page { padding-block: 0 5rem; }
.home-hero { line-height: 0; }
.home-hero-link { display: block; }
.home-hero-media, .home-hero-image { display: block; width: 100%; height: auto; }
.home-page-inner {
  width: 100%;
  margin-inline: 0;
  padding-inline: clamp(1rem, 4vw, 4rem);
  padding-top: clamp(2.5rem, 6vw, 4rem);
}
.home-mission { max-width: 44rem; }
.home-mission h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); line-height: 1.15; letter-spacing: -.01em; margin: 0 0 1.25rem; }
.home-mission p { margin: 0 0 1rem; }
.home-mission .cta-button { margin-top: .5rem; }
.home-highlights h2 { margin-top: 3.5rem; }
.home-highlight-grid { margin-top: 1.5rem; gap: 1.5rem; }
@media (min-width: 48rem) { .home-highlight-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .home-highlight-grid { grid-template-columns: repeat(4, 1fr); } }
.home-highlight-card a { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.home-highlight-image { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.home-highlight-brand { display: block; margin: 1.1rem 1.1rem 0; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.home-highlight-card h3 { margin: .3rem 1.1rem 1.1rem; font-size: 1.1rem; }

/* Nav submenus — pure CSS, no JavaScript.
   Desktop (>44rem, matches the existing .site-header mobile breakpoint): submenu is an
   absolutely positioned dropdown revealed on :hover and :focus-within, so keyboard users
   tabbing onto the parent link (or any child link) can open and use it without a mouse.
   Mobile/touch (<=44rem): a tap on a link navigates immediately and never fires :hover,
   so a hover-only dropdown would be permanently unreachable on touch devices. Instead the
   submenu is rendered as a plain, always-visible inline list under its parent — no hidden
   state to toggle, so there is nothing a touch user can fail to open. */
.nav-list { display: flex; flex-wrap: wrap; gap: 1rem; list-style: none; margin: 0; padding: 0; }
.nav-list > .nav-item > a { font-weight: 700; }
.nav-item { position: relative; }
.submenu { list-style: none; margin: 0; padding: 0; }
.submenu a { text-decoration: none; color: var(--muted); font-size: .9rem; font-weight: 400; }
@media (min-width: 44.0625rem) {
  .submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 20;
    min-width: 13rem;
    margin-top: .35rem;
    padding: .5rem 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: .6rem;
    box-shadow: 0 .6rem 1.5rem rgb(23 51 64 / .14);
  }
  .submenu li { padding: 0; }
  .submenu a { display: block; padding: .5rem 1.1rem; white-space: nowrap; }
  .nav-item.has-submenu:hover > .submenu,
  .nav-item.has-submenu:focus-within > .submenu { display: block; }
}
@media (max-width: 44rem) {
  .submenu { display: flex; flex-wrap: wrap; gap: .4rem .9rem; padding: .35rem 0 .5rem 1.25rem; border-left: 2px solid var(--line); margin-left: .1rem; }
}

/* Restored legacy hero banner + interleaved image/text sections for the
   company/operations/quality/esg static pages (values measured off the
   legacy site mirror; see task brief for the source screenshots). */
.page-hero { position: relative; height: 250px; margin: 0 0 2rem; overflow: hidden; border-radius: .75rem; }
.page-hero__image { display: block; width: 100%; height: 100%; object-fit: cover; }
.page-hero__overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgb(23 51 64 / .3); }
.page-hero__title { margin: 0; padding: 0 1rem; color: #fff; font-size: 44px; font-weight: 400; letter-spacing: 8px; text-align: center; line-height: 1.3; }
.page-hero__underline { display: block; width: 3rem; height: 2px; margin: .9rem auto 0; background: rgb(255 255 255 / .85); }
@media (max-width: 40rem) {
  .page-hero { height: 160px; }
  .page-hero__title { font-size: 1.5rem; letter-spacing: 4px; }
}

.media-row { display: flex; align-items: center; gap: 1.5rem; padding: 40px 0; max-width: 1200px; margin: 0 auto; }
.media-row-odd { flex-direction: row; }
.media-row-even { flex-direction: row-reverse; }
.media-row__text { flex: 0 0 50%; padding: 0 20px; min-width: 0; }
.media-row__text h2:first-child { margin-top: 0; }
.media-row__figure { flex: 0 1 auto; width: 50%; }
.media-row__image { display: block; width: 100%; object-fit: cover; border-radius: .75rem; }
@media (max-width: 40rem) {
  .media-row.media-row-odd, .media-row.media-row-even { flex-direction: column; }
  .media-row__text, .media-row__figure { flex: 0 0 100%; width: 100%; padding: 0; }
  .media-row__figure { margin-top: 1rem; }
}
