/* ==========================================================
   NewJR Power — 形象網站樣式
   ========================================================== */
:root {
  --c-primary: #0a2540;      /* 深藍 */
  --c-accent: #00c2a8;       /* 青綠（能源感） */
  --c-accent2: #2f80ff;      /* 電光藍 */
  --c-bg: #f6f8fa;
  --c-text: #1c2b36;
  --c-gray: #7b8a97;
  --font-en: 'Outfit', sans-serif;
  --font-tc: 'Noto Sans TC', sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-tc);
  color: var(--c-text);
  background: #fff;
  line-height: 1.9;
  overflow-x: hidden;
}

img { display: block; width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
.container { width: min(1140px, 88%); margin: 0 auto; }
.section { padding: clamp(90px, 12vw, 160px) 0; }

/* ==========================================================
   Loader
   ========================================================== */
.loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--c-primary);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .8s var(--ease), visibility .8s;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__inner { text-align: center; color: #fff; }
.loader__logo {
  font-family: var(--font-en); font-size: 2.4rem; font-weight: 600;
  letter-spacing: .08em; margin-bottom: 24px;
}
.loader__logo span { color: var(--c-accent); }
.loader__bar {
  width: 220px; height: 2px; background: rgba(255,255,255,.15);
  margin: 0 auto 14px; overflow: hidden;
}
.loader__bar span {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--c-accent), var(--c-accent2));
  transition: width .2s linear;
}
.loader__count {
  font-family: var(--font-en); font-size: .8rem; letter-spacing: .2em;
  color: rgba(255,255,255,.6);
}

/* ==========================================================
   Cursor follower（桌機）
   ========================================================== */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 9000;
  width: 38px; height: 38px;
  pointer-events: none; opacity: 0;
  transform: translate(-50%, -50%) rotate(-14deg);
  transition: transform .35s var(--ease), opacity .3s, filter .3s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cg fill='none' stroke='%2300c2a8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 5.5 v8'/%3E%3Cpath d='M26 5.5 v8'/%3E%3Cpath d='M11 13.5 h18 v5.5 a9 9 0 0 1 -18 0 z' fill='rgba(0,194,168,0.14)'/%3E%3Cpath d='M20 28.5 v3.5 q0 4.5 4.5 4.5'/%3E%3C/g%3E%3C/svg%3E");
  background-size: contain; background-repeat: no-repeat;
}
.cursor.is-active { opacity: .9; }
.cursor.is-hover {
  transform: translate(-50%, -50%) rotate(0deg) scale(1.45);
  filter: drop-shadow(0 0 8px rgba(0,194,168,.8));
}
@media (hover: none) { .cursor { display: none; } }

/* ==========================================================
   Header
   ========================================================== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; gap: 40px;
  padding: 22px clamp(20px, 4vw, 48px);
  transition: background .4s, box-shadow .4s, padding .4s;
}
.header.is-scrolled {
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 24px rgba(10,37,64,.08);
  padding-top: 14px; padding-bottom: 14px;
}
.header__logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-en); font-weight: 700; font-size: 1.3rem;
  letter-spacing: .05em; color: var(--c-primary);
}
.header.is-inverted:not(.is-scrolled) .header__logo,
.header.is-inverted:not(.is-scrolled) .header__link,
.header.is-inverted:not(.is-scrolled) .header__contact { color: #fff; }
.header__logo em {
  font-style: normal; font-weight: 300; font-size: .72rem;
  letter-spacing: .3em; color: var(--c-accent);
  margin-top: .4em;
}
.header__logo-mark {
  width: 12px; height: 12px; border-radius: 3px;
  background: linear-gradient(135deg, var(--c-accent), var(--c-accent2));
  box-shadow: 0 0 12px rgba(0,194,168,.6);
}
.header__nav { display: flex; gap: 30px; margin-left: auto; }
.header__link {
  position: relative; font-size: .88rem; font-weight: 500;
  color: var(--c-primary); padding: 4px 0;
}
.header__link::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--c-accent);
  transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease);
}
.header__link:hover::after { transform: scaleX(1); transform-origin: left; }
.header__contact {
  font-family: var(--font-en); font-size: .8rem; font-weight: 600;
  letter-spacing: .15em; color: var(--c-primary);
  border: 1px solid currentColor; border-radius: 999px;
  padding: 10px 22px; transition: .35s;
}
.header__contact:hover { background: var(--c-primary); color: #fff !important; border-color: var(--c-primary); }
.header__contact .arrow { display: inline-block; transition: transform .3s; }
.header__contact:hover .arrow { transform: translateX(4px); }

.hamburger {
  display: none; flex-direction: column; justify-content: center; gap: 6px;
  width: 44px; height: 44px; background: none; border: 0; cursor: pointer; z-index: 1200;
}
.hamburger span {
  display: block; width: 26px; height: 2px; margin: 0 auto;
  background: var(--c-primary); transition: .4s var(--ease);
}
.header.is-inverted:not(.is-scrolled) .hamburger span { background: #fff; }
.hamburger.is-open span { background: #fff !important; }
.hamburger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ==========================================================
   Fullscreen Menu
   ========================================================== */
.menu {
  position: fixed; inset: 0; z-index: 1100;
  visibility: hidden; pointer-events: none;
}
.menu.is-open { visibility: visible; pointer-events: auto; }
.menu__bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #071a30 0%, #0a2540 60%, #0d3a4f 100%);
  clip-path: circle(0% at calc(100% - 44px) 44px);
  transition: clip-path .8s var(--ease);
}
.menu.is-open .menu__bg { clip-path: circle(150% at calc(100% - 44px) 44px); }
.menu__inner {
  position: relative; height: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(28px, 8vw, 120px);
  flex-wrap: wrap;
}
.menu__nav { display: flex; flex-direction: column; gap: 6px; }
.menu__link {
  display: flex; align-items: baseline; gap: 16px;
  color: #fff; font-size: clamp(1.5rem, 3.4vw, 2.2rem); font-weight: 500;
  opacity: 0; transform: translateY(30px);
  transition: opacity .6s var(--ease), transform .6s var(--ease), color .3s;
}
.menu.is-open .menu__link { opacity: 1; transform: none; }
.menu.is-open .menu__link:nth-child(1) { transition-delay: .25s; }
.menu.is-open .menu__link:nth-child(2) { transition-delay: .32s; }
.menu.is-open .menu__link:nth-child(3) { transition-delay: .39s; }
.menu.is-open .menu__link:nth-child(4) { transition-delay: .46s; }
.menu.is-open .menu__link:nth-child(5) { transition-delay: .53s; }
.menu.is-open .menu__link:nth-child(6) { transition-delay: .6s; }
.menu__link small {
  font-family: var(--font-en); font-size: .75rem; color: var(--c-accent);
  letter-spacing: .2em;
}
.menu__link span {
  font-family: var(--font-en); font-size: .7rem; font-weight: 300;
  letter-spacing: .3em; color: rgba(255,255,255,.4);
}
.menu__link:hover { color: var(--c-accent); }
.menu__info { color: rgba(255,255,255,.7); font-size: .85rem; }
.menu__slogan {
  font-family: var(--font-en); font-size: clamp(1rem, 1.6vw, 1.3rem);
  font-weight: 300; letter-spacing: .18em; color: #fff; margin-bottom: 24px;
}
.menu__info, .menu__slogan {
  opacity: 0; transition: opacity .8s .6s;
}
.menu.is-open .menu__info, .menu.is-open .menu__slogan { opacity: 1; }

/* ==========================================================
   Hero
   ========================================================== */
.hero {
  position: relative; height: 100svh; min-height: 640px;
  display: flex; align-items: center;
  background: linear-gradient(135deg, #071a30 0%, #0a2540 55%, #0c3350 100%);
  overflow: hidden;
}
#heroCanvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at 30% 40%, #000 0%, transparent 75%);
}
.hero__inner { position: relative; z-index: 2; width: min(1140px, 88%); margin: 0 auto; }
.hero__sub {
  font-family: var(--font-en); font-size: .8rem; font-weight: 500;
  letter-spacing: .4em; color: var(--c-accent); margin-bottom: 26px;
}
.hero__title {
  font-size: clamp(2.4rem, 6.4vw, 5rem);
  font-weight: 700; line-height: 1.35; color: #fff;
  letter-spacing: .04em;
}
.hero__title-line { display: block; overflow: hidden; }
.hero__title-line > span {
  display: inline-block; transform: translateY(110%);
  transition: transform 1.1s var(--ease);
}
body.is-loaded .hero__title-line:nth-child(1) > span { transform: none; transition-delay: .15s; }
body.is-loaded .hero__title-line:nth-child(2) > span { transform: none; transition-delay: .3s; }
.hero__en {
  font-family: var(--font-en); font-weight: 300; font-size: clamp(.85rem, 1.5vw, 1.05rem);
  letter-spacing: .22em; color: rgba(255,255,255,.65); margin-top: 30px;
}
.reveal-line { overflow: hidden; }
.reveal-line > span {
  display: inline-block; transform: translateY(120%);
  transition: transform 1s var(--ease) .5s;
}
body.is-loaded .reveal-line > span { transform: none; }

.hero__side {
  position: absolute; right: clamp(20px, 4vw, 48px); bottom: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  font-family: var(--font-en); font-size: .62rem; letter-spacing: .35em;
  color: rgba(255,255,255,.55);
  writing-mode: vertical-rl;
}
.hero__side-line {
  width: 1px; height: 72px; background: rgba(255,255,255,.25);
  position: relative; overflow: hidden;
}
.hero__side-line::after {
  content: ''; position: absolute; top: -100%; left: 0;
  width: 100%; height: 100%; background: var(--c-accent);
  animation: scrollLine 2.2s var(--ease) infinite;
}
@keyframes scrollLine { 0% { top: -100%; } 55% { top: 0; } 100% { top: 100%; } }

.hero__news {
  position: absolute; left: 0; bottom: 0; z-index: 2;
  display: flex; align-items: center; gap: 18px;
  background: rgba(255,255,255,.96);
  padding: 18px clamp(20px, 4vw, 44px);
  border-radius: 0 18px 0 0;
  max-width: min(620px, 86%);
}
.hero__news-tag {
  font-family: var(--font-en); font-size: .68rem; font-weight: 700;
  letter-spacing: .2em; color: #fff; background: var(--c-primary);
  padding: 4px 12px; border-radius: 999px; white-space: nowrap;
}
.hero__news-date { font-family: var(--font-en); font-size: .78rem; color: var(--c-gray); white-space: nowrap; }
.hero__news-text {
  font-size: .85rem; color: var(--c-text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  transition: color .3s;
}
.hero__news-text:hover { color: var(--c-accent2); }

/* ==========================================================
   Marquee
   ========================================================== */
.marquee {
  overflow: hidden; background: #fff;
  border-bottom: 1px solid #e8edf1;
  padding: 26px 0;
}
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__track + .marquee__track { margin-top: 6px; }
.marquee__track--rev span { color: #e9eff3; }
.marquee__track span {
  font-family: var(--font-en); font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 600;
  letter-spacing: .04em; color: #dde5eb;
  white-space: nowrap;
}
.marquee__track b { font-weight: inherit; transition: color .35s ease; }
.marquee__track b:hover { color: var(--c-accent); }
.marquee__track i { font-style: normal; margin: 0 .4em; color: #eef3f6; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================
   Section head
   ========================================================== */
.section-head { margin-bottom: clamp(48px, 7vw, 80px); }
.section-head__en {
  display: flex; align-items: center; gap: 16px;
  font-family: var(--font-en); font-size: .78rem; font-weight: 600;
  letter-spacing: .35em; color: var(--c-accent); margin-bottom: 18px;
}
.section-head__en::before {
  content: ''; width: 40px; height: 1px; background: var(--c-accent);
}
.section-head__num {
  font-weight: 300; color: var(--c-gray); letter-spacing: .1em;
}
.section-head__title {
  font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 700;
  line-height: 1.5; color: var(--c-primary); letter-spacing: .05em;
}
.section-head--white .section-head__title { color: #fff; }

/* ==========================================================
   Reveal（滾動漸入）
   ========================================================== */
.reveal {
  opacity: 0; transform: translateY(48px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* 圖片遮罩滑開 */
.img-wrap { overflow: hidden; border-radius: 14px; position: relative; }
.img-wrap img { transition: transform 1.2s var(--ease); }

/* ==========================================================
   About
   ========================================================== */
.about { background: #fff; }
.about__body {
  display: grid; grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 90px); align-items: center;
}
.about__lead {
  font-size: clamp(1.15rem, 2vw, 1.45rem); font-weight: 700;
  color: var(--c-primary); margin-bottom: 22px; letter-spacing: .05em;
}
.about__text p:not(.about__lead) { color: #47555f; margin-bottom: 36px; }
.about__visual { position: relative; }
.about__caption {
  position: absolute; right: -8px; top: 0;
  writing-mode: vertical-rl;
  font-family: var(--font-en); font-size: .62rem; letter-spacing: .35em;
  color: var(--c-gray);
  transform: translateX(100%);
}

/* Button */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: .9rem; font-weight: 500; color: var(--c-primary);
  border: 1px solid var(--c-primary); border-radius: 999px;
  padding: 14px 34px; overflow: hidden; position: relative;
  transition: color .4s var(--ease);
}
.btn::before {
  content: ''; position: absolute; inset: 0;
  background: var(--c-primary);
  transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--ease);
}
.btn:hover::before { transform: scaleX(1); transform-origin: left; }
.btn:hover { color: #fff; }
.btn span, .btn .btn__arrow { position: relative; z-index: 1; }
.btn__arrow { font-style: normal; transition: transform .3s; }
.btn:hover .btn__arrow { transform: translateX(5px); }
.btn--light { color: #fff; border-color: rgba(255,255,255,.7); }
.btn--light::before { background: #fff; }
.btn--light:hover { color: var(--c-primary); }

/* ==========================================================
   Strength
   ========================================================== */
.strength { background: var(--c-bg); }
.strength__item {
  display: grid; grid-template-columns: 1.15fr 1fr;
  gap: clamp(36px, 5vw, 80px); align-items: center;
  padding: clamp(36px, 5vw, 60px) 0;
}
.strength__item--rev { direction: rtl; }
.strength__item--rev > * { direction: ltr; }
.strength__item + .strength__item { border-top: 1px solid #e3e9ee; }
.strength__num {
  font-family: var(--font-en); font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 200; color: transparent;
  -webkit-text-stroke: 1px var(--c-accent);
  line-height: 1; display: block; margin-bottom: 18px;
}
.strength__text h3 {
  display: flex; flex-direction: column; gap: 6px;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem); color: var(--c-primary);
  margin-bottom: 18px; letter-spacing: .06em;
}
.strength__text h3 span {
  font-family: var(--font-en); font-size: .68rem; font-weight: 500;
  letter-spacing: .3em; color: var(--c-accent);
}
.strength__text p { color: #47555f; }
.strength__visual:hover img { transform: scale(1.06); }

/* ==========================================================
   Products
   ========================================================== */
.products { background: #fff; }
.products__grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: clamp(24px, 3.4vw, 44px);
}
.product-card {
  position: relative; display: block;
  background: #fff; border: 1px solid #e6ecf1; border-radius: 18px;
  overflow: hidden;
  transition: box-shadow .5s var(--ease), transform .5s var(--ease), border-color .5s;
}
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(10,37,64,.12);
  border-color: transparent;
}
.product-card__img { border-radius: 0; }
.product-card:hover .product-card__img img { transform: scale(1.07); }
.product-card__body { padding: 26px 28px 34px; }
.product-card__cat {
  font-family: var(--font-en); font-size: .64rem; font-weight: 700;
  letter-spacing: .25em; color: var(--c-accent);
}
.product-card__body h3 {
  font-size: 1.15rem; color: var(--c-primary);
  margin: 10px 0 8px; letter-spacing: .04em;
}
.product-card__body p { font-size: .86rem; color: #5d6b76; }
.product-card__arrow {
  position: absolute; right: 24px; bottom: 24px;
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid #d5dee5;
  display: grid; place-items: center;
  font-size: .95rem; color: var(--c-primary);
  transition: .4s var(--ease);
}
.product-card:hover .product-card__arrow {
  background: var(--c-accent); border-color: var(--c-accent); color: #fff;
  transform: translateX(4px);
}

/* ==========================================================
   Technology（數字 + 視差背景）
   ========================================================== */
.tech { position: relative; overflow: hidden; color: #fff; }
.tech__bg {
  position: absolute; inset: -20% 0;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(0,194,168,.25), transparent 55%),
    radial-gradient(ellipse at 80% 70%, rgba(47,128,255,.25), transparent 55%),
    linear-gradient(135deg, #071a30, #0a2540);
  will-change: transform;
}
.tech .container { position: relative; z-index: 1; }
.tech__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 3vw, 40px); text-align: center;
}
.tech__item {
  padding: 40px 12px;
  border: 1px solid rgba(255,255,255,.12); border-radius: 16px;
  backdrop-filter: blur(4px);
  background: rgba(255,255,255,.03);
  transition: border-color .4s, background .4s;
}
.tech__item:hover { border-color: rgba(0,194,168,.5); background: rgba(0,194,168,.06); }
.tech__value {
  font-family: var(--font-en); font-weight: 600;
  font-size: clamp(2.2rem, 4.4vw, 3.4rem); line-height: 1;
  background: linear-gradient(90deg, var(--c-accent), var(--c-accent2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 14px;
}
.tech__value small { font-size: .45em; }
.tech__item p { font-size: .84rem; color: rgba(255,255,255,.75); letter-spacing: .08em; }

/* ==========================================================
   Company
   ========================================================== */
.company { background: var(--c-bg); }
.company__body {
  display: grid; grid-template-columns: 1fr 1.2fr;
  gap: clamp(36px, 5vw, 70px); align-items: start;
}
.company__table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.company__table th, .company__table td {
  text-align: left; padding: 20px 8px;
  border-bottom: 1px solid #dde5ea; vertical-align: top;
}
.company__table th {
  width: 7.5em; color: var(--c-primary); font-weight: 700;
  white-space: nowrap; letter-spacing: .1em;
}
.company__table td { color: #47555f; }

/* ==========================================================
   Contact
   ========================================================== */
.contact {
  position: relative; text-align: center; color: #fff;
  padding: clamp(100px, 14vw, 180px) 6%;
  background:
    radial-gradient(ellipse at 50% 120%, rgba(0,194,168,.35), transparent 60%),
    linear-gradient(160deg, #071a30, #0a2540 70%);
  overflow: hidden;
}
.contact__en {
  font-family: var(--font-en); font-size: .78rem; font-weight: 600;
  letter-spacing: .4em; color: var(--c-accent); margin-bottom: 22px;
}
.contact h2 {
  font-size: clamp(1.7rem, 4vw, 2.8rem); font-weight: 700;
  line-height: 1.6; letter-spacing: .05em; margin-bottom: 44px;
}

/* ==========================================================
   Footer
   ========================================================== */
.footer { background: #061424; color: rgba(255,255,255,.75); padding: 70px 6% 30px; }
.footer__inner {
  display: flex; justify-content: space-between; gap: 40px;
  flex-wrap: wrap; margin-bottom: 56px;
}
.footer__logo {
  font-family: var(--font-en); font-size: 1.5rem; font-weight: 700; color: #fff;
}
.footer__logo em {
  font-style: normal; font-weight: 300; font-size: .6em;
  letter-spacing: .3em; color: var(--c-accent); margin-left: 8px;
}
.footer__slogan {
  font-family: var(--font-en); font-size: .68rem; letter-spacing: .3em;
  color: rgba(255,255,255,.45); margin-top: 10px;
}
.footer__nav { display: flex; gap: 26px; flex-wrap: wrap; align-items: center; }
.footer__nav a { font-size: .84rem; transition: color .3s; }
.footer__nav a:hover { color: var(--c-accent); }
.footer__copy {
  text-align: center; font-family: var(--font-en);
  font-size: .68rem; letter-spacing: .12em; color: rgba(255,255,255,.35);
  border-top: 1px solid rgba(255,255,255,.08); padding-top: 26px;
}

/* ==========================================================
   RWD
   ========================================================== */
@media (max-width: 960px) {
  .header__nav, .header__contact { display: none; }
  .hamburger { display: flex; margin-left: auto; }

  .about__body, .company__body { grid-template-columns: 1fr; }
  .about__caption { display: none; }
  .strength__item, .strength__item--rev { grid-template-columns: 1fr; direction: ltr; }
  .products__grid { grid-template-columns: 1fr; }
  .tech__grid { grid-template-columns: repeat(2, 1fr); }
  .menu__inner { flex-direction: column; justify-content: center; gap: 48px; align-items: flex-start; }
  .hero__news { max-width: 78%; }
}
@media (max-width: 560px) {
  .tech__grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .hero__side { display: none; }
}

/* 減少動態偏好 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* ==========================================================
   內頁共用（page-hero / breadcrumb）
   ========================================================== */
.page-hero {
  position: relative; color: #fff;
  padding: clamp(120px, 13vw, 160px) 0 clamp(24px, 3vw, 36px);
  background:
    radial-gradient(ellipse at 80% 0%, rgba(47,128,255,.25), transparent 55%),
    radial-gradient(ellipse at 10% 100%, rgba(0,194,168,.18), transparent 55%),
    linear-gradient(135deg, #071a30 0%, #0a2540 60%, #0c3350 100%);
  overflow: hidden;
}
.page-hero::after {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at 30% 40%, #000 0%, transparent 75%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero + .section, .page-hero + .plist { padding-top: clamp(36px, 5vw, 60px); }
.page-hero__en {
  font-family: var(--font-en); font-size: .82rem; font-weight: 500;
  letter-spacing: .28em; color: var(--c-accent); margin-bottom: 6px;
}
.page-hero__title { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 700; letter-spacing: .06em; }
.breadcrumb {
  display: flex; gap: 10px; flex-wrap: wrap;
  font-size: .76rem; color: rgba(255,255,255,.55); margin-top: 12px;
}
.breadcrumb a { color: rgba(255,255,255,.8); transition: color .3s; }
.breadcrumb a:hover { color: var(--c-accent); }
.breadcrumb li { list-style: none; }
.breadcrumb li + li::before { content: '/'; margin-right: 10px; color: rgba(255,255,255,.3); }

/* ==========================================================
   產品列表頁
   ========================================================== */
.plist { background: var(--c-bg); }
.plist__tools { margin-bottom: 40px; }
.plist__search {
  width: min(420px, 100%); padding: 13px 20px;
  font-family: var(--font-tc); font-size: .9rem;
  border: 1px solid #d5dee5; border-radius: 999px; outline: none;
  transition: border-color .3s, box-shadow .3s;
  margin-bottom: 20px; background: #fff;
}
.plist__search:focus { border-color: var(--c-accent); box-shadow: 0 0 0 3px rgba(0,194,168,.12); }
.plist__filter { display: flex; gap: 10px; flex-wrap: wrap; }
.plist__filter button {
  font-family: var(--font-tc); font-size: .82rem; cursor: pointer;
  padding: 9px 20px; border-radius: 999px;
  border: 1px solid #d5dee5; background: #fff; color: var(--c-text);
  transition: .3s;
}
.plist__filter button:hover { border-color: var(--c-accent); color: var(--c-accent); }
.plist__filter button.is-active {
  background: var(--c-primary); border-color: var(--c-primary); color: #fff;
}
.plist__count { font-size: .82rem; color: var(--c-gray); margin-bottom: 22px; }
.plist__count b { color: var(--c-accent); font-family: var(--font-en); }
.plist__grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 22px;
}
.plist-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid #e6ecf1; border-radius: 14px;
  overflow: hidden; transition: box-shadow .4s var(--ease), transform .4s var(--ease);
}
.plist-card:hover { transform: translateY(-5px); box-shadow: 0 18px 36px rgba(10,37,64,.1); }
.plist-card__img {
  aspect-ratio: 4 / 3; overflow: hidden; background: #f2f5f8;
  display: flex; align-items: center; justify-content: center;
}
.plist-card__img img { width: 100%; height: 100%; object-fit: contain; transition: transform .8s var(--ease); padding: 14px; box-sizing: border-box; }
.plist-card:hover .plist-card__img img { transform: scale(1.06); }
.plist-card__body { padding: 16px 18px 20px; }
.plist-card__cat {
  font-family: var(--font-en); font-size: .6rem; font-weight: 700;
  letter-spacing: .18em; color: var(--c-accent); text-transform: uppercase;
}
.plist-card__body h3 { font-size: .98rem; color: var(--c-primary); margin: 6px 0 4px; }
.plist-card__body p { font-size: .76rem; color: #6b7a86; line-height: 1.6; }

/* ==========================================================
   產品內頁
   ========================================================== */
.pd { background: #fff; }
.pd__grid {
  display: grid; grid-template-columns: 1fr 1.1fr;
  gap: clamp(34px, 5vw, 70px); align-items: start;
}
.pd-gallery__main {
  border: 1px solid #e6ecf1; border-radius: 16px; overflow: hidden;
  background: #f6f8fa; aspect-ratio: 4 / 3;
  display: flex; align-items: center; justify-content: center;
}
.pd-gallery__main img { width: 100%; height: 100%; object-fit: contain; padding: 22px; box-sizing: border-box; }
.pd-gallery__thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.pd-gallery__thumb {
  width: 72px; height: 60px; border-radius: 8px; overflow: hidden;
  border: 2px solid #e6ecf1; background: #f6f8fa; cursor: pointer; padding: 0;
  transition: border-color .3s;
}
.pd-gallery__thumb img { width: 100%; height: 100%; object-fit: contain; }
.pd-gallery__thumb.is-active, .pd-gallery__thumb:hover { border-color: var(--c-accent); }
.pd__cat {
  font-family: var(--font-en); font-size: .68rem; font-weight: 700;
  letter-spacing: .22em; color: var(--c-accent); text-transform: uppercase;
}
.pd__title { font-size: clamp(1.5rem, 3vw, 2.1rem); color: var(--c-primary); margin: 10px 0 16px; letter-spacing: .04em; }
.pd__desc { color: #47555f; margin-bottom: 26px; }
.pd__spec { width: 100%; border-collapse: collapse; font-size: .86rem; margin-bottom: 30px; }
.pd__spec th, .pd__spec td { text-align: left; padding: 12px 10px; border-bottom: 1px solid #e8eef2; vertical-align: top; }
.pd__spec th { color: var(--c-primary); font-weight: 700; width: 11em; }
.pd__spec td { color: #47555f; }
.pd__dl { display: flex; flex-direction: column; gap: 10px; margin-bottom: 30px; }
.pd__dl a {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .85rem; color: var(--c-primary);
  border: 1px solid #d5dee5; border-radius: 10px; padding: 12px 18px;
  transition: .3s;
}
.pd__dl a::before { content: '↓'; color: var(--c-accent); font-weight: 700; }
.pd__dl a:hover { border-color: var(--c-accent); background: rgba(0,194,168,.05); }
.pd__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.pd-related { background: var(--c-bg); }
.pd-related h2 { font-size: 1.3rem; color: var(--c-primary); margin-bottom: 26px; letter-spacing: .05em; }

/* ==========================================================
   新聞列表 / 內頁
   ========================================================== */
.news-list { background: #fff; }
.news-item {
  display: grid; grid-template-columns: 130px 150px 1fr auto; gap: 18px;
  align-items: center; padding: 26px 6px;
  border-bottom: 1px solid #e8eef2; transition: background .3s;
}
.news-item:first-child { border-top: 1px solid #e8eef2; }
.news-item:hover { background: #f6fbfa; }
.news-item__date { font-family: var(--font-en); font-size: .85rem; color: var(--c-gray); letter-spacing: .06em; }
.news-item__tag {
  font-family: var(--font-en); font-size: .62rem; font-weight: 700; letter-spacing: .18em;
  color: var(--c-accent); border: 1px solid currentColor; border-radius: 999px;
  padding: 4px 12px; text-align: center; white-space: nowrap;
}
.news-item__title { font-size: .95rem; color: var(--c-text); line-height: 1.7; }
.news-item__arrow { color: var(--c-accent); transition: transform .3s; }
.news-item:hover .news-item__arrow { transform: translateX(5px); }
.article { background: #fff; }
.article__inner { width: min(780px, 88%); margin: 0 auto; }
.article__date { font-family: var(--font-en); color: var(--c-gray); font-size: .85rem; margin-bottom: 12px; }
.article__title { font-size: clamp(1.4rem, 2.8vw, 1.9rem); color: var(--c-primary); line-height: 1.6; margin-bottom: 34px; }
.article__body p { color: #3d4b56; margin-bottom: 22px; }
.article__back { margin-top: 44px; }

/* ==========================================================
   關於我們 / 聯絡我們
   ========================================================== */
.adv__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 22px; margin-top: 20px;
}
.adv-card {
  background: #fff; border: 1px solid #e6ecf1; border-radius: 16px;
  padding: 34px 28px; transition: .4s var(--ease);
}
.adv-card:hover { transform: translateY(-5px); box-shadow: 0 16px 32px rgba(10,37,64,.08); border-color: rgba(0,194,168,.4); }
.adv-card__num {
  font-family: var(--font-en); font-size: 2rem; font-weight: 200;
  color: transparent; -webkit-text-stroke: 1px var(--c-accent);
  display: block; margin-bottom: 14px; line-height: 1;
}
.adv-card h3 { font-size: 1.05rem; color: var(--c-primary); margin-bottom: 10px; letter-spacing: .05em; }
.adv-card p { font-size: .84rem; color: #5d6b76; }
.brands { background: #fff; }
.brands__grid { display: flex; flex-wrap: wrap; gap: 14px; }
.brands__item {
  font-family: var(--font-en); font-size: .88rem; font-weight: 600; letter-spacing: .1em;
  color: var(--c-primary); border: 1px solid #d5dee5; border-radius: 999px;
  padding: 12px 26px; transition: .3s;
}
.brands__item:hover { border-color: var(--c-accent); color: var(--c-accent); }
.contact-info { background: #fff; }
.contact-info__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(34px, 5vw, 60px); align-items: start; }
.contact-info__map { border-radius: 16px; overflow: hidden; border: 1px solid #e6ecf1; }
.contact-info__map iframe { display: block; width: 100%; height: 420px; border: 0; }

@media (max-width: 960px) {
  .pd__grid, .contact-info__grid { grid-template-columns: 1fr; }
  .adv__grid { grid-template-columns: 1fr 1fr; }
  .news-item { grid-template-columns: 110px 1fr auto; }
  .news-item__tag { display: none; }
}
@media (max-width: 560px) {
  .adv__grid { grid-template-columns: 1fr; }
  .news-item { grid-template-columns: 1fr auto; }
  .news-item__date { grid-column: 1 / -1; }
}

/* ==========================================================
   滾動連動特效
   ========================================================== */
/* 標題逐字浮現 */
.chars > span {
  display: inline-block;
  transform: translateY(1.1em); opacity: 0;
  transition: transform .8s var(--ease), opacity .6s;
}
.chars.is-visible > span { transform: none; opacity: 1; }

/* 圖片簾幕滑開（裁切內層 img，外框保持可被偵測） */
.img-wrap img {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.1s var(--ease), transform 1.2s var(--ease);
}
.img-wrap.is-visible img { clip-path: inset(0 0 0 0); }

/* 滾動漂移大字（跟著捲動水平移動） */
.has-drift { position: relative; overflow: hidden; }
.drift {
  position: absolute; top: clamp(18px, 3vw, 42px); left: 0;
  width: 100%; pointer-events: none; user-select: none;
  white-space: nowrap; line-height: 1; z-index: 0;
}
.drift span {
  display: inline-block;
  font-family: var(--font-en); font-weight: 200;
  font-size: clamp(4.5rem, 11vw, 9rem); letter-spacing: .04em;
  color: transparent; -webkit-text-stroke: 1.2px rgba(10,37,64,.17);
  will-change: transform;
}
.tech .drift span, .page-hero .drift span { -webkit-text-stroke-color: rgba(255,255,255,.1); }
.page-hero .drift span { -webkit-text-stroke-color: rgba(255,255,255,.14); }
.has-drift > .container, .has-drift > .contact__inner { position: relative; z-index: 1; }

/* ==========================================================
   換頁轉場簾幕
   ========================================================== */
.page-transition {
  position: fixed; inset: 0; z-index: 9500; pointer-events: none;
  background: linear-gradient(135deg, #071a30 0%, #0a2540 60%, #0d3a4f 100%);
  transform: translateY(101%);
  display: flex; align-items: center; justify-content: center;
}
.page-transition span {
  font-family: var(--font-en); font-size: 1.6rem; font-weight: 600;
  letter-spacing: .1em; color: #fff; opacity: 0; transition: opacity .25s;
}
.page-transition span i { font-style: normal; color: var(--c-accent); }
.page-transition.is-enter { transform: translateY(0); transition: transform .5s var(--ease); }
.page-transition.is-enter span { opacity: 1; transition-delay: .2s; }
.page-transition.is-cover { transform: translateY(0); }
.page-transition.is-exit { transform: translateY(-101%); transition: transform .65s var(--ease) .05s; }

/* ==========================================================
   滾動縮放（與捲動進度連動、可逆）
   ========================================================== */
[data-scrub] { will-change: transform, opacity; transform-origin: center center; }
.showcase { background: #fff; }
.showcase__wrap { margin: 0 auto; }

/* 特色說明卡（底圖 + 文字） */
.feature-card {
  position: relative; overflow: hidden;
  border-radius: 22px; color: #fff;
  padding: clamp(44px, 7vw, 90px) clamp(28px, 6vw, 84px);
  background:
    radial-gradient(ellipse at 85% 15%, rgba(47,128,255,.3), transparent 55%),
    radial-gradient(ellipse at 10% 90%, rgba(0,194,168,.28), transparent 55%),
    linear-gradient(135deg, rgba(7,26,48,.92), rgba(10,37,64,.9) 60%, rgba(13,58,79,.88)),
    url('../images/feature-bg.svg') center/cover no-repeat;
  box-shadow: 0 30px 60px rgba(10,37,64,.25);
}
.feature-card__en {
  font-family: var(--font-en); font-size: .78rem; font-weight: 600;
  letter-spacing: .4em; color: var(--c-accent); margin-bottom: 18px;
}
.feature-card h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.5rem); font-weight: 700;
  line-height: 1.5; letter-spacing: .05em; margin-bottom: 20px;
}
.feature-card__desc {
  max-width: 34em; color: rgba(255,255,255,.8);
  font-size: .95rem; margin-bottom: 40px;
}
.feature-card__list {
  list-style: none; display: grid;
  grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.feature-card__list li {
  border-top: 1px solid rgba(255,255,255,.2);
  padding-top: 18px;
}
.feature-card__list b {
  display: block; font-family: var(--font-en);
  font-size: clamp(1.3rem, 2.4vw, 1.8rem); font-weight: 600;
  background: linear-gradient(90deg, var(--c-accent), var(--c-accent2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 8px;
}
.feature-card__list span { font-size: .82rem; color: rgba(255,255,255,.75); line-height: 1.7; }
@media (max-width: 720px) {
  .feature-card__list { grid-template-columns: 1fr; }
}

/* ==========================================================
   公司 Logo（圖片版）
   ========================================================== */
.header__logo img { height: 42px; width: auto; display: block; }
.header__logo .logo-white { display: none; }
.header.is-inverted:not(.is-scrolled) .logo-color { display: none; }
.header.is-inverted:not(.is-scrolled) .logo-white { display: block; }
.header.is-scrolled .header__logo img { height: 36px; }

.loader__logo img { height: 68px; width: auto; margin: 0 auto; }

.footer__logo-img { height: 54px; width: auto; margin-bottom: 12px; }
.footer__company { color: #fff; font-size: .95rem; font-weight: 500; letter-spacing: .06em; }

.page-transition .pt-logo { height: 62px; width: auto; }

/* ==========================================================
   產品列表：側邊分類樹
   ========================================================== */
.plist__layout {
  display: grid; grid-template-columns: 270px 1fr;
  gap: clamp(28px, 4vw, 52px); align-items: start;
}
.plist__side {
  position: sticky; top: 96px;
  background: #fff; border: 1px solid #e6ecf1; border-radius: 16px;
  padding: 24px 20px; max-height: calc(100vh - 120px); overflow-y: auto;
}
.plist__sidehead {
  font-weight: 700; color: var(--c-primary); letter-spacing: .1em;
  padding-bottom: 14px; margin-bottom: 10px; border-bottom: 1px solid #e8eef2;
}
.cat-tree ul { list-style: none; padding-left: 16px; display: none; }
.cat-tree ul.cat-tree__root { display: block; padding-left: 0; }
.cat-tree li.is-open > ul { display: block; }
.cat-tree__row { display: flex; align-items: center; gap: 4px; }
.cat-tree__item {
  flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font-family: var(--font-tc); font-size: .85rem; color: var(--c-text);
  background: none; border: 0; cursor: pointer; text-align: left;
  padding: 8px 10px; border-radius: 8px; line-height: 1.5;
  transition: background .25s, color .25s;
}
.cat-tree__item:hover { background: #f2f7f9; color: var(--c-accent2); }
.cat-tree__item.is-active { background: var(--c-primary); color: #fff; }
.cat-tree__item i {
  font-style: normal; font-family: var(--font-en); font-size: .68rem;
  color: var(--c-gray);
}
.cat-tree__item.is-active i { color: rgba(255,255,255,.6); }
.cat-tree__caret {
  width: 26px; height: 26px; flex: none;
  background: none; border: 0; cursor: pointer; position: relative;
}
.cat-tree__caret::before {
  content: ''; position: absolute; top: 50%; left: 50%;
  width: 7px; height: 7px;
  border-right: 1.5px solid var(--c-gray); border-bottom: 1.5px solid var(--c-gray);
  transform: translate(-50%, -60%) rotate(45deg);
  transition: transform .3s var(--ease);
}
.cat-tree li.is-open > .cat-tree__row .cat-tree__caret::before {
  transform: translate(-50%, -40%) rotate(225deg);
}
.plist__grid--side { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }

@media (max-width: 960px) {
  .plist__layout { grid-template-columns: 1fr; }
  .plist__side { position: static; max-height: 300px; }
}

/* 分類 NEW 徽章 */
.cat-tree__badge {
  font-style: normal; font-family: var(--font-en); font-size: .56rem; font-weight: 700;
  letter-spacing: .12em; color: #fff; background: linear-gradient(90deg, var(--c-accent), var(--c-accent2));
  border-radius: 999px; padding: 2px 8px; margin-left: 6px;
}
.cat-tree__item.is-active .cat-tree__badge { background: rgba(255,255,255,.25); }

/* Hero 靜態底圖（images/hero.jpg 存在時自動啟用） */
.hero__photo { position: absolute; inset: 0; overflow: hidden; }
.hero__photo img, .hero__photo video {
  width: 100%; height: 100%; object-fit: cover;
  opacity: .5;
}
.hero__photo img {
  animation: kenburns 26s ease-in-out infinite alternate;
  will-change: transform;
}
.hero__photo video { display: none; position: absolute; inset: 0; }
.hero__photo.has-video video { display: block; }
.hero__photo.has-video img { display: none; }
@keyframes kenburns {
  from { transform: scale(1.02) translate(0, 0); }
  to { transform: scale(1.16) translate(-2.2%, -1.6%); }
}
.hero__photo::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(120deg, rgba(7,26,48,.92) 0%, rgba(10,37,64,.72) 45%, rgba(10,37,64,.45) 100%);
}

/* ==========================================================
   產品分類：膠囊篩選 + 切換動畫
   ========================================================== */
.pfilter { margin-top: 18px; }
.pfilter__main, .pfilter__sub { display: flex; flex-wrap: wrap; gap: 10px; }
.pfilter__btn, .pfilter__subbtn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-tc); font-size: .85rem; cursor: pointer;
  padding: 10px 20px; border-radius: 999px;
  border: 1px solid #d5dee5; background: #fff; color: var(--c-text);
  transition: .3s var(--ease);
}
.pfilter__btn:hover, .pfilter__subbtn:hover { border-color: var(--c-accent); color: var(--c-accent); transform: translateY(-2px); }
.pfilter__btn.is-active {
  background: var(--c-primary); border-color: var(--c-primary); color: #fff;
  box-shadow: 0 8px 20px rgba(10,37,64,.22);
}
.pfilter__btn i, .pfilter__subbtn i {
  font-style: normal; font-family: var(--font-en); font-size: .68rem; color: var(--c-gray);
}
.pfilter__btn.is-active i { color: rgba(255,255,255,.65); }
.pfilter__badge {
  font-style: normal; font-family: var(--font-en); font-size: .56rem; font-weight: 700;
  letter-spacing: .12em; color: #fff;
  background: linear-gradient(90deg, var(--c-accent), var(--c-accent2));
  border-radius: 999px; padding: 2px 8px;
}
.pfilter__sub {
  max-height: 0; opacity: 0; overflow: hidden;
  align-items: center;
  margin-top: 0; padding: 0 18px;
  background: #eef7f8; border-left: 3px solid var(--c-accent); border-radius: 12px;
  transform: translateY(-6px);
  transition: max-height .45s var(--ease), opacity .4s, margin .3s, padding .3s, transform .45s var(--ease);
}
.pfilter__sub::before {
  content: '細分類'; flex: none;
  font-size: .72rem; font-weight: 700; letter-spacing: .18em;
  color: var(--c-accent); margin-right: 6px;
}
.pfilter__sub.is-show { max-height: 220px; opacity: 1; margin-top: 14px; padding: 14px 18px; transform: none; }
.pfilter__subbtn { font-size: .78rem; padding: 7px 15px; background: #fff; border-style: dashed; }
.pfilter__subbtn.is-active {
  background: linear-gradient(90deg, var(--c-accent), var(--c-accent2));
  border-color: transparent; color: #fff;
}
.pfilter__subbtn.is-active i { color: rgba(255,255,255,.7); }

/* 切換動畫 */
.plist__grid { transition: opacity .24s ease, transform .24s ease; }
.plist__grid.is-switching { opacity: 0; transform: translateY(16px); }
@keyframes cardIn {
  from { opacity: 0; transform: translateY(26px) scale(.96); }
  to { opacity: 1; transform: none; }
}
.plist-card.anim-in { animation: cardIn .55s var(--ease) both; animation-delay: var(--d, 0ms); }


/* 接電火花 */
.spark {
  position: fixed; z-index: 9100; pointer-events: none;
  width: 4px; height: 4px; border-radius: 50%;
  background: radial-gradient(circle, #fff3b0 0%, #ffd84d 55%, #ffab2e 100%);
  box-shadow: 0 0 6px rgba(255, 216, 77, .9);
  transform: translate(-50%, -50%);
  animation: sparkFly .5s cubic-bezier(.2, .7, .3, 1) forwards;
}
@keyframes sparkFly {
  to {
    transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(.15);
    opacity: 0;
  }
}
@media (hover: none) { .spark { display: none; } }

/* ==========================================================
   Footer 重排 + 回頂按鈕
   ========================================================== */
.footer__inner { align-items: flex-end; }
.footer__contact { text-align: right; font-size: .85rem; color: rgba(255,255,255,.65); line-height: 2.1; }
.footer__contact-label {
  font-family: var(--font-en); font-size: .68rem; font-weight: 700;
  letter-spacing: .35em; color: var(--c-accent); margin-bottom: 6px;
}
.footer__contact a { color: rgba(255,255,255,.85); transition: color .3s; }
.footer__contact a:hover { color: var(--c-accent); }
@media (max-width: 720px) {
  .footer__contact { text-align: left; }
}

.totop {
  position: fixed; right: clamp(18px, 3vw, 36px); bottom: clamp(18px, 3vw, 36px); z-index: 8500;
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  background: rgba(10,37,64,.92); color: #fff;
  border: 1px solid rgba(0,194,168,.5); cursor: pointer;
  font-family: var(--font-en); font-size: .5rem; font-weight: 700; letter-spacing: .15em;
  opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity .4s var(--ease), transform .4s var(--ease), background .3s, box-shadow .3s;
  backdrop-filter: blur(6px);
}
.totop span { font-size: 1rem; line-height: 1; color: var(--c-accent); transition: transform .3s; }
.totop.is-show { opacity: 1; transform: none; pointer-events: auto; }
.totop:hover { background: var(--c-primary); box-shadow: 0 8px 24px rgba(0,194,168,.35); }
.totop:hover span { transform: translateY(-3px); }

/* Footer 置中版 */
.footer__center {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  margin-bottom: 48px;
}
.footer__center .footer__logo-img { margin-bottom: 14px; }
.footer__contactline { font-size: .85rem; color: rgba(255,255,255,.65); margin-top: 20px; }
.footer__contactline a { color: rgba(255,255,255,.85); transition: color .3s; }
.footer__contactline a:hover { color: var(--c-accent); }

/* ==========================================================
   線上詢問表單
   ========================================================== */
.iform { max-width: 860px; }
.iform__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 26px; }
.iform__field { display: flex; flex-direction: column; gap: 8px; }
.iform__field--full { grid-column: 1 / -1; }
.iform__field span { font-size: .85rem; font-weight: 700; color: var(--c-primary); letter-spacing: .06em; }
.iform__field em { font-style: normal; color: #e5484d; }
.iform__field input, .iform__field select, .iform__field textarea {
  font-family: var(--font-tc); font-size: .9rem; color: var(--c-text);
  background: #fff; border: 1px solid #d5dee5; border-radius: 12px;
  padding: 13px 16px; outline: none; resize: vertical;
  transition: border-color .3s, box-shadow .3s;
}
.iform__field input:focus, .iform__field select:focus, .iform__field textarea:focus {
  border-color: var(--c-accent); box-shadow: 0 0 0 3px rgba(0,194,168,.12);
}
.iform__field input.is-error, .iform__field textarea.is-error { border-color: #e5484d; }
.iform__hp { position: absolute; left: -9999px; opacity: 0; height: 0; }
.iform__foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 30px; flex-wrap: wrap; }
.iform__msg { font-size: .88rem; min-height: 1.5em; }
.iform__msg.is-ok { color: var(--c-accent); }
.iform__msg.is-err { color: #e5484d; }
@media (max-width: 640px) { .iform__grid { grid-template-columns: 1fr; } }
