/* FEMCO 1949 – Pipes & Tubes (steel) page. Scoped to .fm-page; loaded only on services/steel. */
/* ============================================================
   FEMCO 鋼鐵事業部 — 單頁式內容版
   視覺語彙對齊 femco.com.tw/1949femco/zh_tw
   ============================================================ */





.fm-page {
  --cyan: #08ACF2;
  --cyan-2: #2FC1FF;
  --cyan-deep: #0876A0;
  --steel: #4682B4;
  --navy: #12384F;
  --navy-deep: #0B2434;
  --ink: #2F3A40;
  --text: #4C5253;
  --muted: #5F6E74;
  --line: #E4EBEE;
  --bg: #F3F6F6;
  --white: #fff;
  --shadow: 0 18px 50px rgba(13, 45, 66, .10);

  font-family: "Roboto", "Noto Sans TC", "Microsoft JhengHei", "PingFang TC", "Heiti TC", sans-serif;
  font-size: 16px;
  line-height: 1.85;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.fm-page * { box-sizing: border-box; }
.fm-page img { display: block; max-width: 100%; }
.fm-page h1, .fm-page h2, .fm-page h3, .fm-page h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -.01em;
}
.fm-page p { margin: 0; }
:where(.fm-page) a { color: inherit; text-decoration: none; }
.fm-page ul, .fm-page ol { margin: 0; padding: 0; list-style: none; }
.fm-page svg { display: block; }
.fm-page iframe { display: block; }
.fm-container { width: min(1200px, calc(100% - 48px)); margin-inline: auto; }
.fm-section { position: relative; padding: 100px 0; }
.fm-skip {
  position: absolute; left: 18px; top: -70px; z-index: 999;
  background: var(--navy); color: #fff; padding: 10px 18px; border-radius: 4px;
  font-size: 14px; transition: top .2s;
}
.fm-skip:focus { top: 14px; }

/* ---------- 共用文字 ---------- */
.fm-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: "Roboto", sans-serif; font-size: 12px; font-weight: 700;
  line-height: 1.4; letter-spacing: .22em; text-transform: uppercase;
  color: var(--cyan-deep);
}
.fm-eyebrow::before { content: ""; width: 30px; height: 2px; background: var(--cyan); flex: none; }
.fm-eyebrow .cn { font-family: "Noto Sans TC", "Microsoft JhengHei", sans-serif; letter-spacing: .12em; font-weight: 500; }
.fm-eyebrow--light { color: #B9E5F9; }
.fm-eyebrow--light::before { background: #6FD6FF; }
.fm-section-head { max-width: 760px; }
.fm-section-head--center { margin-inline: auto; text-align: center; }
.fm-section-head--center .fm-eyebrow { justify-content: center; }
.fm-title { margin: 18px 0 16px; font-size: clamp(28px, 3.4vw, 42px); letter-spacing: -.015em; }
.fm-desc { font-size: 15.5px; line-height: 1.95; color: var(--muted); }

/* ---------- 按鈕 ---------- */
.fm-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 15px 28px; border: 1px solid transparent; border-radius: 4px;
  font-family: inherit; font-size: 14px; font-weight: 700; line-height: 1.3; letter-spacing: .03em;
  cursor: pointer; text-align: center; transition: background .25s, color .25s, border-color .25s, transform .25s, box-shadow .25s;
}
.fm-btn svg { width: 16px; height: 16px; flex: none; }
.fm-page .fm-btn--primary { background: var(--cyan); color: #06293B; }
.fm-page .fm-btn--primary:hover { background: var(--cyan-2); color: #06293B; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(8, 172, 242, .30); }
.fm-page .fm-btn--ghost { border-color: rgba(255, 255, 255, .55); color: #fff; }
.fm-page .fm-btn--ghost:hover { background: rgba(255, 255, 255, .13); border-color: #fff; color: #fff; }
.fm-page .fm-btn--dark { background: var(--navy); color: #fff; }
.fm-page .fm-btn--dark:hover { background: #1B4A66; color: #fff; transform: translateY(-2px); }
.fm-page a:focus-visible, .fm-page button:focus-visible, .fm-page summary:focus-visible,
.fm-page input:focus-visible, .fm-page select:focus-visible, .fm-page textarea:focus-visible {
  outline: 3px solid rgba(47, 193, 255, .55); outline-offset: 2px;
}

/* ---------- Hero ---------- */
.fm-hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(88vh, 840px);
  display: flex; align-items: center;
  padding: 118px 0 176px;
  background: var(--navy-deep); color: #fff;
}
.fm-hero__bg {
  position: absolute; inset: 0; z-index: -2;
  background: url("../img/steel/hero.jpg") 18% center / cover no-repeat;
  transform: scale(1.02);
}
.fm-hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(92deg, rgba(7, 26, 38, .95) 0%, rgba(7, 26, 38, .86) 38%, rgba(7, 26, 38, .50) 70%, rgba(7, 26, 38, .20) 100%),
    linear-gradient(0deg, rgba(7, 26, 38, .45) 0%, transparent 45%);
}
.fm-hero__content { max-width: 800px; }
.fm-hero h1 {
  margin: 24px 0 24px;
  color: #fff; font-size: clamp(40px, 5.2vw, 64px);
  line-height: 1.16; letter-spacing: -.025em; font-weight: 700;
}
.fm-hero__lead { max-width: 610px; font-size: 16.5px; line-height: 1.95; color: rgba(255, 255, 255, .82); }
.fm-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.fm-hero__meta {
  display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center;
  margin-top: 46px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .20);
  font-family: "Roboto", sans-serif; font-size: 11.5px; letter-spacing: .12em;
  text-transform: uppercase; color: rgba(255, 255, 255, .66);
}
.fm-hero__meta span { display: inline-flex; align-items: center; gap: 10px; }
.fm-hero__meta span + span::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--cyan-2); }

/* ---------- 數據帶 ---------- */
.fm-stats { position: relative; z-index: 3; margin-top: -78px; }
.fm-stats__card {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border-radius: 10px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(10, 40, 60, .15);
}
.fm-stat { padding: 30px 34px 28px; border-left: 1px solid var(--line); }
.fm-stat:first-child { border-left: 0; }
.fm-stat__num {
  display: flex; align-items: baseline; gap: 4px;
  font-family: "Roboto", sans-serif; font-size: 36px; font-weight: 700; line-height: 1.1;
  letter-spacing: -.03em; color: #1B4A66;
}
.fm-stat__num small { font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--cyan-deep); }
.fm-stat__label { margin-top: 8px; font-size: 12.5px; line-height: 1.65; color: var(--muted); letter-spacing: .02em; text-wrap: balance; }

/* ---------- 關於 ---------- */
.fm-about__grid { display: grid; grid-template-columns: 1.04fr .96fr; gap: 78px; align-items: center; }
.fm-about__lead { margin-top: 22px; font-size: 18px; line-height: 1.95; color: #33434A; font-weight: 500; }
.fm-about__body { margin-top: 16px; font-size: 15px; line-height: 1.95; color: var(--muted); }
.fm-about__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 26px; margin-top: 28px; }
.fm-about__list li { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.7; color: #4F5D63; }
.fm-about__list svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--cyan-deep); }
.fm-about__list b { color: var(--ink); font-weight: 700; }
.fm-about__quote {
  margin: 30px 0 0; padding: 2px 0 2px 18px;
  border-left: 3px solid var(--cyan);
  font-size: 14.5px; line-height: 1.85; color: #3B4A50; font-weight: 500;
}
.fm-about__media { position: relative; margin: 0; }
.fm-about__media::before {
  content: ""; position: absolute; top: -18px; right: -18px; width: 170px; height: 170px;
  border-top: 2px solid var(--cyan); border-right: 2px solid var(--cyan);
}
.fm-carousel { position: relative; border-radius: 8px; overflow: hidden; }
.fm-carousel__viewport { position: relative; height: 520px; background: var(--navy-deep); }
.fm-carousel__slide {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0;
  transition: opacity .85s ease;
}
.fm-carousel__slide.is-active { opacity: 1; }
.fm-carousel__arrow {
  position: absolute; top: 50%; z-index: 3; transform: translateY(-50%);
  width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(8, 30, 44, .55); color: #fff; cursor: pointer;
  opacity: 0; transition: opacity .25s, background .25s;
}
.fm-carousel:hover .fm-carousel__arrow,
.fm-carousel:focus-within .fm-carousel__arrow { opacity: 1; }
.fm-carousel__arrow:hover { background: var(--cyan-deep); }
.fm-carousel__arrow svg { width: 18px; height: 18px; }
.fm-carousel__arrow--prev { left: 14px; }
.fm-carousel__arrow--prev svg { transform: rotate(180deg); }
.fm-carousel__arrow--next { right: 14px; }
.fm-carousel__dots {
  position: absolute; top: 18px; right: 18px; z-index: 3;
  display: flex; gap: 8px;
}
.fm-carousel__dot {
  width: 10px; height: 10px; padding: 0; border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .9); background: transparent;
  cursor: pointer; transition: background .25s, border-color .25s, transform .25s;
}
.fm-carousel__dot:hover { background: rgba(255, 255, 255, .6); }
.fm-carousel__dot.is-active { background: var(--cyan-2); border-color: var(--cyan-2); transform: scale(1.2); }
@media (hover: none) { .fm-carousel__arrow { opacity: 1; } }
.fm-about__caption {
  position: absolute; left: 20px; bottom: 20px; right: 20px;
  display: flex; align-items: flex-start; gap: 10px;
  padding: 13px 16px; border-radius: 4px;
  background: rgba(8, 30, 44, .80); backdrop-filter: blur(6px);
  color: rgba(255, 255, 255, .92); font-size: 12.5px; line-height: 1.65; letter-spacing: .02em;
}
.fm-about__caption > span[aria-hidden="true"] { width: 6px; height: 6px; background: var(--cyan-2); flex: none; margin-top: 7px; }
.fm-about__caption > [data-fm-caption] { flex: 1 1 auto; min-width: 0; }

/* ---------- 產品 ---------- */
.fm-products { background: var(--bg); }
.fm-products__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; margin-top: 52px; }
.fm-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid #E4EBEE; border-radius: 10px;
  transition: transform .35s, box-shadow .35s, border-color .35s;
}
.fm-card:hover { transform: translateY(-4px); border-color: #CFE3EC; box-shadow: var(--shadow); }
.fm-card__media { position: relative; height: 236px; overflow: hidden; background: #0D2838; }
.fm-card__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7, 26, 38, .28) 0%, transparent 42%, rgba(7, 26, 38, .18) 100%);
}
.fm-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.fm-card:hover .fm-card__media img { transform: scale(1.045); }
/* odd last card (e.g. the 5th product) spans the row, image beside text */
@media (min-width: 761px) {
  .fm-products__grid > .fm-card:last-child:nth-child(odd) { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
  .fm-products__grid > .fm-card:last-child:nth-child(odd) .fm-card__media { height: auto; min-height: 320px; }
}
.fm-card__num {
  position: absolute; z-index: 1; top: 16px; left: 16px;
  padding: 7px 10px; border: 1px solid rgba(255, 255, 255, .30); border-radius: 3px;
  background: rgba(7, 26, 38, .55); backdrop-filter: blur(4px);
  font-family: "Roboto", sans-serif; font-size: 11px; font-weight: 700; letter-spacing: .18em; color: #fff;
}
.fm-card__body { display: flex; flex-direction: column; flex: 1; padding: 30px 32px 32px; }
.fm-card__en { font-family: "Roboto", sans-serif; font-size: 10.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--cyan-deep); }
.fm-card h3 { margin: 10px 0 12px; font-size: 23px; }
.fm-card__text { font-size: 14px; line-height: 1.9; color: var(--muted); }
.fm-spec { margin: 20px 0 0; border-top: 1px solid var(--line); }
.fm-spec__row { display: grid; grid-template-columns: 84px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13px; line-height: 1.65; }
.fm-spec dt { padding-top: 2px; font-size: 11.5px; letter-spacing: .04em; color: #5F6E74; }
.fm-spec dd { margin: 0; color: #3B4A50; }
.fm-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.fm-tag { padding: 5px 10px; border: 1px solid #D6ECF6; border-radius: 3px; background: #EDF7FC; font-size: 11.5px; letter-spacing: .02em; color: #2C5F7C; }
.fm-card__note { margin-top: 16px; font-size: 12.5px; line-height: 1.8; color: var(--muted); }
.fm-card__note b { color: #3B4A50; font-weight: 700; }
.fm-more { margin-top: 16px; padding-top: 12px; border-top: 1px dashed #DCE6EA; }
.fm-more summary { display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; font-size: 12.5px; font-weight: 700; color: var(--cyan-deep); }
.fm-more summary::-webkit-details-marker { display: none; }
.fm-more summary::after { content: "+"; margin-left: auto; font-size: 16px; font-weight: 400; color: #9AA8AD; transition: transform .25s; }
.fm-more[open] summary::after { content: "–"; }
.fm-more__body { padding-top: 10px; font-size: 12.5px; line-height: 1.85; color: var(--muted); }
.fm-products__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px; margin-top: 44px; font-size: 12.5px; color: var(--muted); }

/* ---------- 引言大圖 ---------- */
.fm-quote {
  position: relative; overflow: hidden; padding: 118px 0;
  background: url("../img/steel/quote.jpg") center 55% / cover no-repeat; color: #fff;
}
.fm-quote::before { content: ""; position: absolute; inset: 0; background: linear-gradient(92deg, rgba(8, 29, 42, .94) 0%, rgba(8, 29, 42, .80) 55%, rgba(8, 29, 42, .50) 100%); }
.fm-quote::after {
  content: "1974"; position: absolute; right: -16px; bottom: -54px;
  font-family: "Roboto", sans-serif; font-size: 220px; font-weight: 700; line-height: 1;
  letter-spacing: -.05em; color: rgba(255, 255, 255, .06); pointer-events: none;
}
.fm-quote__inner { position: relative; z-index: 1; max-width: 900px; }
.fm-quote blockquote { margin: 22px 0 0; font-size: clamp(22px, 2.7vw, 32px); font-weight: 500; line-height: 1.75; letter-spacing: .005em; color: #fff; }
.fm-quote__by { display: flex; align-items: center; gap: 12px; margin-top: 26px; font-family: "Roboto", sans-serif; font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: #BFE6F8; }
.fm-quote__by::before { content: ""; width: 36px; height: 1px; background: rgba(191, 230, 248, .75); }

/* ---------- 工程實績 ---------- */
.fm-projects__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px 48px; }
.fm-projects__head .fm-section-head { max-width: 740px; }
.fm-projects__hint { flex: none; padding-bottom: 6px; font-family: "Roboto", sans-serif; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: #5F6E74; }
.fm-timeline { margin-top: 50px; }
.fm-timeline__item { position: relative; display: grid; grid-template-columns: 130px 20px 1fr; gap: 0 26px; padding-bottom: 30px; }
.fm-timeline__item:last-child { padding-bottom: 0; }
.fm-timeline__year { padding-top: 1px; text-align: right; font-family: "Roboto", sans-serif; font-size: 21px; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; color: #1B4A66; }
.fm-timeline__node { position: relative; display: flex; justify-content: center; }
.fm-timeline__node::before { content: ""; position: absolute; top: 9px; bottom: -30px; width: 1px; background: #D8E5EA; }
.fm-timeline__item:last-child .fm-timeline__node::before { display: none; }
.fm-timeline__node::after { content: ""; position: relative; z-index: 1; width: 11px; height: 11px; margin-top: 5px; border: 2px solid var(--cyan); border-radius: 50%; background: #fff; }
.fm-timeline__body { padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.fm-timeline__item:last-child .fm-timeline__body { padding-bottom: 0; border-bottom: 0; }
.fm-timeline__body h3 { font-size: 16.5px; font-weight: 600; line-height: 1.65; color: #2F3A40; }
.fm-timeline__meta { margin-top: 4px; font-size: 12.5px; line-height: 1.7; color: var(--muted); }
.fm-record-group { margin-top: 54px; border: 1px solid var(--line); border-radius: 10px; background: #F6F9FA; padding: 8px 30px 10px; }
.fm-record-group__title { padding: 16px 0 6px; font-family: "Roboto", sans-serif; font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #5F6E74; }
.fm-acc { border-bottom: 1px solid #E1EAEE; }
.fm-acc:last-child { border-bottom: 0; }
.fm-acc summary { display: flex; align-items: center; gap: 14px; padding: 18px 0; cursor: pointer; list-style: none; font-size: 14.5px; font-weight: 600; color: #2F3A40; }
.fm-acc summary::-webkit-details-marker { display: none; }
.fm-acc summary::before { content: "+"; display: grid; place-items: center; flex: none; width: 22px; height: 22px; border: 1px solid #C9D9E0; border-radius: 50%; font-size: 14px; font-weight: 400; color: var(--cyan-deep); }
.fm-acc[open] summary::before { content: "–"; }
.fm-acc summary span { margin-left: auto; font-size: 11.5px; font-weight: 400; letter-spacing: .05em; color: #5F6E74; }
.fm-acc__body { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 40px; padding: 0 0 18px 36px; }
.fm-record { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 8px 0; border-top: 1px dashed #E2EAED; font-size: 13px; line-height: 1.65; }
.fm-record__name { color: #3B4A50; }
.fm-record__client { flex: none; max-width: 44%; text-align: right; font-size: 11.5px; color: #5F6E74; }
.fm-partners { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 18px 28px; margin-top: 52px; padding-top: 32px; border-top: 1px solid var(--line); }
.fm-partners__label { flex: none; padding-top: 5px; font-family: "Roboto", sans-serif; font-size: 10.5px; font-weight: 700; line-height: 1.6; letter-spacing: .18em; text-transform: uppercase; color: #5F6E74; }
.fm-partners__list { display: flex; flex-wrap: wrap; gap: 9px; }
.fm-partners__list span { padding: 6px 12px; border: 1px solid #E5ECEF; border-radius: 3px; background: #F4F7F8; font-size: 12.5px; color: #55636A; }

/* ---------- 認證 ---------- */
.fm-cert {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(135deg, #3F7799 0%, #356582 48%, #2A516E 100%);
}
.fm-cert::before {
  content: ""; position: absolute; top: -260px; right: -200px;
  width: 720px; height: 720px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .12) 0%, transparent 65%);
}
.fm-cert .fm-title { color: #fff; }
.fm-cert .fm-eyebrow--light { color: #E6F5FD; }
.fm-cert__head { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 30px; }
.fm-cert__head .fm-desc { max-width: 620px; color: #F2FAFE; }
.fm-cert__statement {
  position: relative; z-index: 1; display: flex; align-items: center; gap: 22px;
  margin-top: 44px; padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, .22); border-bottom: 1px solid rgba(255, 255, 255, .22);
}
.fm-cert__statement svg { flex: none; width: 34px; height: 34px; color: #8FE0FF; }
.fm-cert__statement strong { font-size: clamp(17px, 1.9vw, 23px); font-weight: 600; line-height: 1.65; letter-spacing: .01em; color: #fff; }
.fm-cert__grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 38px; }
@media (min-width: 761px) and (max-width: 960px) {
  .fm-cert__grid > .fm-cns:last-child:nth-child(odd) { grid-column: 1 / -1; width: calc(50% - 9px); justify-self: center; }
}
.fm-cns {
  display: flex; flex-direction: column; padding: 24px 24px 22px;
  background: #fff; border-radius: 6px; color: var(--text);
  transition: transform .3s, box-shadow .3s;
}
.fm-cns:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(9, 32, 46, .28); }
.fm-cns__code { font-family: "Roboto", sans-serif; font-size: 21px; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; color: #1B4A66; }
.fm-cns__name { min-height: 42px; margin-top: 6px; font-size: 13.5px; font-weight: 600; line-height: 1.55; color: #33434A; text-wrap: balance; }
.fm-cns__meta { display: grid; gap: 5px; margin-top: 14px; padding-top: 12px; border-top: 1px solid #EDF2F4; font-size: 11.5px; line-height: 1.7; color: #5F6E74; }
.fm-cns__meta b { margin-right: 4px; font-weight: 700; color: #5A696F; }
.fm-cert__lower { position: relative; z-index: 1; display: grid; grid-template-columns: 1.06fr .94fr; gap: 26px; align-items: start; margin-top: 28px; }
.fm-downloads { padding: 10px 26px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 8px; background: rgba(255, 255, 255, .075); }
.fm-downloads__title { padding: 12px 0 10px; font-family: "Roboto", sans-serif; font-size: 10.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #F2FAFE; }
.fm-dl { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, .14); }
.fm-dl__name { font-size: 14px; font-weight: 600; line-height: 1.5; color: #fff; }
.fm-dl__sub { margin-top: 2px; font-size: 11.5px; line-height: 1.6; color: #E1F1FA; }
.fm-dl__action {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  padding: 0; border: 0; background: none; font-family: inherit; font-size: 12px; font-weight: 700;
  color: #C9F2FF; cursor: pointer; transition: color .2s;
}
.fm-dl__action:hover { color: #fff; }
.fm-dl__action svg { width: 14px; height: 14px; }
.fm-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.fm-gallery button {
  position: relative; overflow: hidden; padding: 0; border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 6px; background: #0D2838; cursor: zoom-in; font-family: inherit;
}
.fm-gallery img { width: 100%; height: 154px; object-fit: cover; object-position: top center; opacity: .95; transition: transform .4s, opacity .4s; }
.fm-gallery button:hover img { transform: scale(1.04); opacity: 1; }
.fm-gallery span {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 8px 7px;
  background: linear-gradient(transparent, rgba(6, 24, 34, .90));
  font-size: 10.5px; letter-spacing: .07em; color: #fff; text-align: center;
}
.fm-cert__note { position: relative; z-index: 1; margin-top: 26px; font-size: 11.5px; line-height: 1.8; color: #E1F1FA; }

/* ---------- 聯絡 ---------- */
.fm-contact__grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: 32px; align-items: stretch; margin-top: 44px; }
.fm-contact__info { padding: 30px 36px; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: 0 18px 50px rgba(20, 50, 66, .06); }
.fm-info-row { display: flex; gap: 16px; padding: 15px 0; border-bottom: 1px solid #EEF3F5; }
.fm-info-row:last-child { padding-bottom: 0; border-bottom: 0; }
.fm-info-row__icon { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 6px; background: #EDF7FC; color: var(--cyan-deep); }
.fm-info-row__icon svg { width: 18px; height: 18px; }
.fm-info-row__label { font-family: "Roboto", sans-serif; font-size: 10px; font-weight: 700; line-height: 1.6; letter-spacing: .16em; text-transform: uppercase; color: #5F6E74; }
.fm-info-row__value { margin-top: 4px; font-size: 14.5px; line-height: 1.75; color: #33434A; }
.fm-info-row__value a:hover { color: var(--cyan-deep); }
.fm-info-row__value small { display: block; font-size: 12.5px; color: var(--muted); }
.fm-map-col { display: flex; flex-direction: column; min-width: 0; }
.fm-map { position: relative; flex: 1; overflow: hidden; min-height: 392px; border: 1px solid var(--line); border-radius: 10px; background: #EDF2F4; }
.fm-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: saturate(.92); }
.fm-map__link { display: inline-flex; align-items: center; align-self: flex-end; gap: 6px; margin-top: 12px; font-size: 12px; font-weight: 600; color: var(--cyan-deep); }
.fm-map__link:hover { color: #17506B; }
.fm-map__link svg { width: 13px; height: 13px; }
.fm-form-wrap { margin-top: 32px; padding: 36px 40px 38px; border: 1px solid var(--line); border-radius: 10px; background: #F5F8F9; }
.fm-form__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 22px; }
.fm-field { display: flex; flex-direction: column; gap: 6px; }
.fm-field--full { grid-column: 1 / -1; }
.fm-field label { font-size: 12px; font-weight: 600; letter-spacing: .03em; color: #55636A; }
.fm-field label span { color: #C0392B; }
.fm-field input, .fm-field select, .fm-field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  border: 1px solid #D9E4E8; border-radius: 4px; background: #fff;
  font-family: inherit; font-size: 14px; line-height: 1.6; color: #33434A;
  transition: border-color .2s, box-shadow .2s;
}
.fm-field textarea { min-height: 132px; resize: vertical; }
.fm-field input::placeholder, .fm-field textarea::placeholder { color: #7F8B90; }
.fm-field input:focus, .fm-field select:focus, .fm-field textarea:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(8, 172, 242, .12); outline: 0; }
.fm-form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 6px; }
.fm-form__note { max-width: 480px; font-size: 11.5px; line-height: 1.75; color: #5F6E74; }
.fm-form__status { display: none; grid-column: 1 / -1; font-size: 12.5px; color: var(--cyan-deep); }
.fm-form__status.is-on { display: block; }

/* ---------- 證書放大 ---------- */
.fm-dialog { width: min(900px, 92vw); max-height: 92vh; padding: 0; overflow: hidden; border: 0; border-radius: 10px; background: #fff; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.fm-dialog::backdrop { background: rgba(6, 20, 30, .78); backdrop-filter: blur(2px); }
.fm-dialog__bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 13px 20px; border-bottom: 1px solid var(--line); }
.fm-dialog__bar h3 { font-size: 14.5px; font-weight: 600; }
.fm-dialog__close { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: #F1F5F7; color: #4C5253; cursor: pointer; }
.fm-dialog__close:hover { background: #E3EBEF; }
.fm-dialog__close svg { width: 16px; height: 16px; }
.fm-dialog__body { display: grid; place-items: center; max-height: calc(92vh - 62px); padding: 20px; overflow: auto; background: #F3F6F6; }
.fm-dialog__body img { height: auto; max-width: 100%; box-shadow: 0 10px 30px rgba(0, 0, 0, .12); }

/* ---------- 進場動畫 ---------- */
.js .fm-reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--delay, 0s); }
.js .fm-reveal.is-in { opacity: 1; transform: none; }

/* ---------- 響應式 ---------- */
@media (max-width: 1120px) {
  .fm-about__grid { gap: 54px; }
  .fm-carousel__viewport { height: 470px; }
  .fm-stat { padding: 26px 26px 24px; }
  .fm-stat__num { font-size: 32px; }
  .fm-cert__lower { grid-template-columns: 1fr; }
  .fm-gallery img { height: 190px; }
}
@media (max-width: 960px) {
  .fm-section { padding: 80px 0; }
  .fm-hero { min-height: 0; padding: 96px 0 158px; }
  .fm-hero__bg { background-position: 58% center; }
  .fm-stats { margin-top: -66px; }
  .fm-stats__card { grid-template-columns: repeat(2, 1fr); }
  .fm-stat { padding: 24px 28px 22px; }
  .fm-stat:nth-child(odd) { border-left: 0; }
  .fm-stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .fm-about__grid { grid-template-columns: 1fr; gap: 46px; }
  .fm-about__media { max-width: 640px; }
  .fm-carousel__viewport { height: 420px; }
  .fm-timeline__item { grid-template-columns: 104px 18px 1fr; gap: 0 20px; }
  .fm-timeline__year { font-size: 19px; }
  .fm-acc__body { grid-template-columns: 1fr; }
  .fm-cert__grid { grid-template-columns: repeat(2, 1fr); }
  .fm-contact__grid { grid-template-columns: 1fr; }
  .fm-map { min-height: 380px; }
}
@media (max-width: 760px) {
  .fm-container { width: calc(100% - 36px); }
  .fm-section { padding: 64px 0; }
  .fm-title { margin-top: 14px; }
  .fm-hero { padding: 76px 0 140px; }
  .fm-hero h1 { font-size: clamp(34px, 9vw, 46px); }
  .fm-hero__lead { font-size: 15px; }
  .fm-hero__actions { gap: 12px; }
  .fm-hero__actions .fm-btn { flex: 1 1 180px; }
  .fm-hero__meta { gap: 8px 16px; margin-top: 34px; font-size: 10.5px; letter-spacing: .08em; }
  .fm-stats { margin-top: -58px; }
  .fm-stat { padding: 20px 20px 18px; }
  .fm-stat__num { font-size: 28px; }
  .fm-stat__label { font-size: 11.5px; }
  .fm-about__media::before { width: 120px; height: 120px; }
  .fm-about__list { grid-template-columns: 1fr; }
  .fm-products__grid { grid-template-columns: 1fr; gap: 22px; margin-top: 40px; }
  .fm-card__media { height: 220px; }
  .fm-card__body { padding: 26px 24px 28px; }
  .fm-quote { padding: 84px 0; }
  .fm-quote::after { font-size: 130px; bottom: -30px; }
  .fm-timeline { margin-top: 38px; }
  .fm-timeline__item { grid-template-columns: 1fr; padding-left: 28px; padding-bottom: 24px; }
  .fm-timeline__year { padding: 0 0 4px; text-align: left; font-size: 14px; letter-spacing: .08em; color: var(--cyan-deep); }
  .fm-timeline__node { display: none; }
  .fm-timeline__item::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: -6px; width: 1px; background: #D8E5EA; }
  .fm-timeline__item:last-child::before { display: none; }
  .fm-timeline__item::after { content: ""; position: absolute; left: 0; top: 8px; width: 11px; height: 11px; border: 2px solid var(--cyan); border-radius: 50%; background: #fff; }
  .fm-timeline__body { padding-bottom: 20px; }
  .fm-record-group { padding: 6px 20px 8px; }
  .fm-acc__body { padding-left: 0; }
  .fm-record { gap: 12px; }
  .fm-record__client { max-width: 48%; }
  .fm-cert__grid { grid-template-columns: 1fr; }
  .fm-gallery img { height: 130px; }
  .fm-form-wrap { padding: 26px 24px 28px; }
  .fm-contact__info { padding: 24px 24px; }
  .fm-form__grid { grid-template-columns: 1fr; }
  .fm-form__foot { flex-direction: column; align-items: flex-start; }
  .fm-form__foot .fm-btn { width: 100%; }
}
@media (max-width: 520px) {
  .fm-hero__meta span:nth-child(n + 4) { display: none; }
  .fm-stats__card { grid-template-columns: 1fr 1fr; }
  .fm-stat { padding: 18px 16px 16px; }
  .fm-stat__num { font-size: 24px; }
  .fm-stat__num small { font-size: 12px; }
  .fm-gallery { gap: 8px; }
  .fm-gallery img { height: 96px; }
  .fm-gallery span { padding: 16px 4px 5px; font-size: 9px; }
  .fm-cert__statement { align-items: flex-start; gap: 14px; }
  .fm-cert__statement svg { width: 26px; height: 26px; margin-top: 3px; }
  .fm-downloads { padding: 6px 18px; }
  .fm-dl { grid-template-columns: 1fr; gap: 8px; }
  .fm-dl__action { justify-self: start; }
  .fm-partners { flex-direction: column; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .fm-reveal { opacity: 1; transform: none; transition: none; }
  .fm-card, .fm-cns, .fm-btn { transition: none; }
}
