/* 2026-11-02 13:39:11 +08:00：重現原站色彩、版面、響應式排列與動態效果。 */
:root {
  color-scheme: light;
  --page-yellow: #fbc40f;
  --contact-yellow: #fccf3d;
  --footer-yellow: #f1bd24;
  --navy: #0d0c34;
  --text: #252525;
  --pink: #ee2878;
  --green: #13bd2b;
  --coral: #f05555;
  --hero-green: #e4f572;
  --pill: #454545;
  --header-height: 90px;
}

/* 2026-11-02：全站基礎字體、漸層底色與錨點位移。 */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 12px);
}

body {
  min-width: 320px;
  margin: 0;
  color: #000;
  background: linear-gradient(180deg, #fbc40f 0%, #fff 100%);
  font-family: Arial, "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body:has(.lightbox[open]) {
  overflow: hidden;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

button {
  font: inherit;
}

.visually-hidden,
.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 12px 16px;
  color: #fff;
  background: var(--navy);
  border-radius: 4px;
}

:focus-visible {
  outline: 3px solid #0757d5;
  outline-offset: 3px;
}

/* 2026-11-02：固定頁首透明起始，捲動後轉為原站黃色。 */
.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  width: 100%;
  margin-bottom: -90px;
  background: transparent;
  transition: background-color 220ms ease, box-shadow 220ms ease;
}

.site-header.is-scrolled {
  background: rgba(251, 198, 23, 0.98);
  box-shadow: 0 2px 9px rgba(105, 77, 0, 0.12);
}

.header-inner {
  display: grid;
  grid-template-columns: minmax(155px, 20%) minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  width: min(100%, 1440px);
  min-height: var(--header-height);
  padding: 0 5%;
  margin: 0 auto;
}

.brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 82px;
  text-decoration: none;
}

.brand-map {
  position: absolute;
  inset: 3px 18px 0 32px;
  background: url("../images/台灣地圖.png") center / contain no-repeat;
  opacity: 0.82;
}

.brand-name {
  position: relative;
  z-index: 1;
  color: var(--navy);
  font-size: 46px;
  font-weight: 700;
  letter-spacing: -2.5px;
  line-height: 1;
}

.primary-nav {
  justify-self: end;
}

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0;
  margin: 0;
  list-style: none;
}

.primary-nav li {
  display: flex;
  align-items: center;
}

.primary-nav li:not(:last-child)::after {
  content: "|";
  padding: 0 11px;
  color: #555;
  font-size: 14px;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 54px;
  padding: 3px 8px 0;
  color: var(--navy);
  font-size: 21px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.nav-link::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--pink);
  content: "";
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 180ms ease;
}

.nav-link:hover::after,
.nav-link.is-active::after,
.nav-link:focus-visible::after {
  transform: scaleX(1);
}

.consult-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 153px;
  min-height: 44px;
  padding: 8px 16px;
  color: #fff;
  background: var(--green);
  border-radius: 8px;
  box-shadow: 5px 6px 10px rgba(91, 82, 82, 0.5);
  font-size: 19px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.consult-button:hover {
  box-shadow: 4px 5px 8px rgba(73, 66, 66, 0.48);
  transform: translateY(-1px);
}

.line-mark {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.header-spacer {
  display: none;
}

/* 2026-11-02：公司簡介主視覺與原站亮綠色底板。 */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: calc(var(--header-height) + 520px);
  padding: var(--header-height) 10% 0;
  margin: 0 auto;
}

.hero::before {
  position: absolute;
  z-index: -1;
  top: calc(var(--header-height) + 12px);
  left: 0;
  width: 71.5%;
  height: calc(100% - var(--header-height) - 12px);
  background: var(--hero-green);
  content: "";
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 55%) minmax(0, 45%);
  align-items: center;
  gap: 0;
  width: min(100%, 1240px);
  min-height: 520px;
  margin: 0 auto;
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding: 14px 16px 24px 0;
  animation: enter-from-left 760ms ease-out 80ms both;
}

.hero-title {
  min-height: 1.2em;
  margin: 0 0 20px;
  color: #000;
  font-size: 38px;
  font-weight: 600;
  line-height: 1.25;
}

.headline-char {
  display: inline-block;
  transform-origin: 50% 90%;
}

.headline-replay .headline-char {
  animation: headline-swirl 760ms cubic-bezier(0.18, 0.76, 0.3, 1);
  animation-delay: calc(var(--char-index) * 42ms);
}

@keyframes headline-swirl {
  0% {
    opacity: 0;
    filter: blur(5px);
    transform: rotate3d(1, 1, 0, -90deg) scale(0.45);
  }
  72% {
    opacity: 1;
    filter: blur(0);
    transform: rotate3d(1, 1, 0, 9deg) scale(1.05);
  }
  100% {
    opacity: 1;
    filter: none;
    transform: rotate3d(1, 1, 0, 0) scale(1);
  }
}

.hero-description {
  max-width: 610px;
  margin: 0;
  color: var(--text);
  font-size: 23px;
  font-weight: 400;
  letter-spacing: 0.8px;
  line-height: 1.28;
}

.hero-description strong {
  font-weight: 700;
}

.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 5px;
  padding: 0;
  margin: 14px 0 0;
  list-style: none;
}

.service-tag {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 5px 14px;
  color: #fff;
  background: var(--pill);
  border-radius: 30px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  transition: background-color 180ms ease, color 180ms ease;
}

.service-tag.is-highlight {
  color: #fff;
  background: var(--coral);
}

.more-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 7px 20px;
  margin-top: 32px;
  color: #fff;
  background: var(--coral);
  border-radius: 2px;
  box-shadow: 7px 4px 10px rgba(60, 58, 58, 0.5);
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
  animation: enter-from-bottom 700ms ease-out 320ms both;
}

.more-button:hover {
  box-shadow: 5px 3px 8px rgba(60, 58, 58, 0.45);
  transform: translateY(-1px);
}

.more-button span {
  font-size: 22px;
  line-height: 1;
}

.hero-image-link {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-width: 440px;
  justify-self: end;
  animation: enter-from-right 760ms ease-out 150ms both;
}

.hero-image {
  width: 100%;
  aspect-ratio: 1.86 / 1;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 12px 11px 10px rgba(10, 10, 10, 0.5);
}

/* 2026-11-02 13:34:26：重現主視覺左右淡入與原站捲動揭露。 */
@keyframes enter-from-left {
  from {
    opacity: 0;
    transform: translateX(-28px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes enter-from-right {
  from {
    opacity: 0;
    transform: translateX(28px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes enter-from-bottom {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.has-reveal .section-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 680ms ease, transform 680ms ease;
}

.has-reveal .section-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 2026-11-02：產品說明、四欄照片牆與原站 3:2 圖片比例。 */
.products {
  padding: 0 10% 120px;
  margin: 80px auto 0;
}

.product-inner {
  width: min(100%, 1240px);
  margin: 0 auto;
}

.products h2,
.contact h2 {
  margin: 0 0 16px;
  color: #000;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.35;
}

.product-copy {
  margin-bottom: 18px;
  color: var(--text);
  font-size: 19px;
  font-weight: 400;
  line-height: 1.8;
}

.product-copy p {
  margin: 0 0 2px;
}

.product-copy strong {
  font-weight: 700;
}

.product-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
}

.gallery-item {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: zoom-in;
  text-align: left;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: inherit;
  transition: filter 800ms ease, transform 800ms ease;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  filter: brightness(1.21);
}

/* 2026-11-02：聯絡資訊區的黃色底色、資訊欄、QR Code 與地圖。 */
.contact {
  padding: 3% 10%;
  background: var(--contact-yellow);
}

.contact-inner {
  display: grid;
  grid-template-columns: minmax(260px, 40%) minmax(180px, 30%) minmax(190px, 30%);
  align-items: start;
  gap: 18px;
  width: min(100%, 1240px);
  margin: 0 auto;
}

.contact-details {
  min-width: 0;
}

.contact-list {
  display: grid;
  gap: 2px;
  padding: 0;
  margin: 0;
  color: var(--text);
  font-size: 16px;
  line-height: 1.45;
  list-style: none;
}

.contact-list li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 6px;
}

.contact-list svg {
  width: 15px;
  height: 15px;
  margin-top: 4px;
  color: #252525;
  fill: currentColor;
}

.contact-list a {
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact-list a:hover {
  text-decoration: underline;
}

.contact-note {
  max-width: 420px;
  margin: 18px 0 0;
  color: #000;
  font-size: 19px;
  line-height: 1.6;
}

.line-qr {
  display: flex;
  justify-content: center;
  padding-top: 2px;
}

.line-qr a {
  display: inline-block;
}

.line-qr img {
  width: 180px;
  height: 180px;
  object-fit: cover;
}

.map-frame {
  width: 100%;
  max-width: 340px;
  height: 300px;
  justify-self: end;
  overflow: hidden;
  background: #e8e5dc;
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* 2026-11-02：原站小字頁尾。 */
.site-footer {
  padding: 6px 10%;
  color: #3a3a3a;
  background: var(--footer-yellow);
  font-size: 12px;
  line-height: 1.5;
}

.site-footer p {
  width: min(100%, 1240px);
  margin: 0 auto;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* 2026-11-02：產品相片燈箱與前後切換控制。 */
.lightbox {
  width: 100vw;
  max-width: none;
  height: 100vh;
  max-height: none;
  padding: 0;
  overflow: hidden;
  color: #fff;
  background: rgba(0, 0, 0, 0.94);
  border: 0;
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.94);
}

.lightbox[open] {
  display: grid;
  place-items: center;
}

.lightbox-shell {
  position: relative;
  display: grid;
  grid-template-rows: 56px minmax(0, 1fr);
  width: 100%;
  height: 100%;
}

.lightbox-toolbar {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 6px 24px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent);
}

.lightbox-count {
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.lightbox-tools {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lightbox-tool,
.lightbox-arrow {
  display: grid;
  place-items: center;
  padding: 0;
  color: #fff;
  background: rgba(45, 45, 45, 0.7);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 160ms ease, transform 160ms ease;
}

.lightbox-tool {
  width: 38px;
  height: 38px;
}

.lightbox-tool:hover,
.lightbox-arrow:hover {
  background: rgba(110, 110, 110, 0.85);
  transform: scale(1.06);
}

.lightbox-tool svg,
.lightbox-arrow svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.lightbox-arrow {
  position: absolute;
  z-index: 2;
  top: 50%;
  width: 48px;
  height: 48px;
  transform: translateY(-50%);
}

.lightbox-arrow:hover {
  transform: translateY(-50%) scale(1.06);
}

.lightbox-previous {
  left: 24px;
}

.lightbox-next {
  right: 24px;
}

.lightbox-figure {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 0;
  padding: 64px 86px 32px;
  margin: 0;
  overflow: auto;
}

.lightbox-image {
  max-width: 100%;
  max-height: calc(100vh - 104px);
  object-fit: contain;
  cursor: zoom-in;
  transition: transform 220ms ease;
  user-select: none;
}

.lightbox-figure.is-zoomed {
  place-items: start center;
  cursor: zoom-out;
}

.lightbox-figure.is-zoomed .lightbox-image {
  max-width: none;
  max-height: none;
  cursor: zoom-out;
  transform: scale(1.5);
  transform-origin: center top;
}

/* 2026-11-02：平板版欄寬與頁邊距。 */
@media (max-width: 1024px) {
  :root {
    --header-height: 86px;
  }

  .header-inner {
    grid-template-columns: minmax(130px, 20%) minmax(0, 1fr) auto;
    gap: 12px;
    padding: 0 3%;
  }

  .nav-link {
    padding-right: 5px;
    padding-left: 5px;
    font-size: 19px;
  }

  .primary-nav li:not(:last-child)::after {
    padding-right: 7px;
    padding-left: 7px;
  }

  .consult-button {
    min-width: 138px;
    padding-right: 12px;
    padding-left: 12px;
    font-size: 18px;
  }

  .hero {
    padding-right: 5%;
    padding-left: 5%;
  }

  .hero-description {
    font-size: 20px;
  }

  .products,
  .contact {
    padding-right: 5%;
    padding-left: 5%;
  }
}

/* 2026-11-02：窄螢幕沿用原站兩列頁首、單欄主視覺和雙欄產品圖。 */
@media (max-width: 767px) {
  :root {
    --header-height: 146px;
  }

  html {
    scroll-padding-top: calc(var(--header-height) + 8px);
  }

  .site-header {
    margin-bottom: -146px;
  }

  .header-inner {
    grid-template-columns: 1fr auto;
    grid-template-rows: 82px 56px;
    gap: 0 12px;
    min-height: var(--header-height);
    padding: 0 7%;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
    width: 120px;
    height: 74px;
    justify-content: flex-start;
  }

  .brand-map {
    inset: 0 18px 0 32px;
  }

  .brand-name {
    font-size: 44px;
  }

  .consult-button {
    grid-column: 2;
    grid-row: 1;
    min-width: 143px;
    min-height: 42px;
    font-size: 18px;
  }

  .primary-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: center;
  }

  .primary-nav ul {
    justify-content: center;
  }

  .primary-nav li:not(:last-child)::after {
    padding-right: 8px;
    padding-left: 8px;
    font-size: 13px;
  }

  .nav-link {
    min-height: 42px;
    padding: 2px 2px 0;
    font-size: 18px;
  }

  .hero {
    display: block;
    min-height: 0;
    padding: var(--header-height) 3% 0;
  }

  .hero::before {
    top: var(--header-height);
    width: 95%;
    height: calc(100% - var(--header-height));
  }

  .hero-inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    min-height: 0;
  }

  .hero-copy {
    padding: 24px 0 0;
  }

  .hero-title {
    margin-bottom: 22px;
    font-size: 30px;
  }

  .hero-description {
    max-width: none;
    font-size: 19px;
    letter-spacing: 0.4px;
    line-height: 1.55;
  }

  .desktop-break {
    display: none;
  }

  .service-list {
    gap: 5px;
    margin-top: 14px;
  }

  .service-tag {
    min-height: 31px;
    padding: 5px 12px;
    font-size: 13px;
  }

  .more-button {
    min-height: 42px;
    margin-top: 32px;
    font-size: 19px;
  }

  .hero-image-link {
    width: 100%;
    max-width: none;
    margin: 48px 0 0;
  }

  .hero-image {
    aspect-ratio: 1.86 / 1;
  }

  .products {
    padding: 0 3% 50px;
    margin-top: 40px;
  }

  .products h2,
  .contact h2 {
    margin-bottom: 16px;
    font-size: 29px;
  }

  .product-copy {
    margin-bottom: 18px;
    font-size: 19px;
    line-height: 1.8;
  }

  .product-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .contact {
    padding: 8% 6%;
  }

  .contact-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .contact-list {
    font-size: 16px;
  }

  .contact-note {
    font-size: 19px;
  }

  .line-qr {
    justify-content: flex-start;
  }

  .map-frame {
    max-width: none;
    height: 320px;
    justify-self: stretch;
  }

  .site-footer {
    padding: 8px 3%;
    font-size: 12px;
  }

  .lightbox-toolbar {
    padding: 8px 12px;
  }

  .lightbox-tools {
    gap: 6px;
  }

  .lightbox-tool {
    width: 36px;
    height: 36px;
  }

  .lightbox-arrow {
    width: 40px;
    height: 40px;
  }

  .lightbox-previous {
    left: 8px;
  }

  .lightbox-next {
    right: 8px;
  }

  .lightbox-figure {
    padding: 68px 48px 28px;
  }

  .lightbox-image {
    max-height: calc(100vh - 112px);
  }
}

/* 2026-11-02：極窄手機保留完整導覽與觸控空間。 */
@media (max-width: 380px) {
  .header-inner {
    padding-right: 5%;
    padding-left: 5%;
  }

  .nav-link {
    font-size: 16px;
  }

  .primary-nav li:not(:last-child)::after {
    padding-right: 6px;
    padding-left: 6px;
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-description {
    font-size: 18px;
  }

  .service-tag {
    padding-right: 10px;
    padding-left: 10px;
    font-size: 12px;
  }
}

/* 2026-11-02：減少動態效果偏好尊重系統設定。 */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
