*{
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  margin:0;
  font-family:"Microsoft JhengHei","PingFang TC",sans-serif;
  background:#f3f3f5;
  color:#555;
  top:0 !important;
}

/* 隱藏 Google 翻譯條 */
.goog-te-banner-frame.skiptranslate{
  display:none !important;
}

.skiptranslate iframe{
  display:none !important;
}

/* ===== Header ===== */

.site-header{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:78px;
  background:rgba(255,255,255,0.96);
  box-shadow:0 2px 12px rgba(0,0,0,0.06);
  z-index:9999;
}

.header-inner{
  max-width:1600px;
  margin:auto;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 40px;
}

.logo-img{
  height:50px;
  display:block;
}

.lang-switch{
  font-size:22px;
  font-weight:600;
}

.lang-switch a{
  color:#2d77bd;
  text-decoration:none;
  cursor:pointer;
}

.lang-switch a:hover{
  opacity:0.7;
}

/* ===== Main ===== */

main{
  padding-top:78px;
}

/* ===== Hero ===== */

.hero{
  width:100%;
  min-height:620px;
  display:grid;
  grid-template-columns:46% 54%;
  align-items:center;
  background:#f3f3f5;
}

.hero-text{
  max-width:640px;
  padding-left:110px;
  padding-right:30px;
}

.hero-text h1{
  margin:0 0 24px;
  font-size:clamp(42px,4vw,64px);
  line-height:1.2;
  font-weight:700;
  color:#5a5a5f;
}

.hero-text h2{
  margin:0 0 28px;
  font-size:clamp(20px,2vw,26px);
  line-height:1.5;
  font-weight:500;
  color:#666a70;
}

.hero-text p{
  font-size:clamp(16px,1.6vw,22px);
  line-height:1.9;
  color:#7a7d84;
}

.hero-image{
  position:relative;
  width:100%;
  height:620px;
  overflow:hidden;
}

.hero-image img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.hero-image::before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  width:260px;
  height:100%;
  background:linear-gradient(
    to right,
    #f3f3f5 0%,
    rgba(243,243,245,0.95) 20%,
    rgba(243,243,245,0.6) 45%,
    rgba(243,243,245,0.2) 70%,
    rgba(243,243,245,0) 100%
  );
  pointer-events:none;
}

/* ===== 共用區塊 ===== */

.policy-section,
.lab-section,
.info-section{
  width:100%;
  padding:88px 24px;
  text-align:center;
  background:#f3f3f5;
}

.policy-section h2,
.lab-section h2,
.info-section h2{
  margin:0 0 30px;
  font-size:42px;
  color:#666;
}

.policy-section p{
  font-size:24px;
  line-height:1.9;
  color:#666;
}

/* ===== 實驗室圖片 ===== */

.lab-gallery{
  max-width:1200px;
  margin:auto;
  display:flex;
  justify-content:center;
  gap:40px;
  flex-wrap:wrap;
}

.lab-gallery img{
  width:520px;
  max-width:100%;
  border-radius:22px;
  display:block;
}

/* ===== 主 QR ===== */

.main-qr img{
  width:190px;
  height:auto;
}

/* ===== Footer ===== */

.site-footer{
  width:100%;
  max-width:1400px;
  margin:0 auto;
  padding:42px 80px 52px;
  border-top:1px solid #e3e3e7;
  background:#f3f3f5;

  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:56px;
  flex-wrap:nowrap;
}

.footer-left{
  flex:1 1 auto;
  min-width:0;
  max-width:760px;
}

.footer-left h3{
  margin:0 0 16px;
  font-size:28px;
  color:#666;
}

.footer-left p{
  margin:8px 0;
  font-size:20px;
  line-height:1.8;
  color:#666;
  overflow-wrap:anywhere;
  word-break:break-word;
}

.footer-left a{
  color:#1a40ff;
  text-decoration:underline;
  overflow-wrap:anywhere;
  word-break:break-all;
}

.footer-right{
  display:flex;
  flex-direction:row;
  align-items:flex-start;
  justify-content:flex-start;
  gap:36px;
  flex-wrap:nowrap !important;
  flex:0 0 auto;
  flex-shrink:0;
  min-width:0;
}

.qr-block{
  width:150px;
  min-width:150px;
  flex:0 0 150px;
  flex-shrink:0;
  text-align:center;
}

.qr-block img{
  width:145px;
  height:auto;
  display:block;
  margin:0 auto 12px;
}

.qr-block p{
  margin:0;
  font-size:18px;
  line-height:1.5;
  color:#666;
  white-space:normal;
  word-break:break-word;
}

/* ===== 平板 ===== */

@media (max-width:1200px){

  .hero{
    grid-template-columns:1fr;
  }

  .hero-text{
    padding:50px 40px;
    max-width:100%;
  }

  .hero-image{
    height:420px;
  }

  .site-footer{
    max-width:1100px;
    padding:36px 48px 44px;
    gap:32px;
    flex-direction:row;
    align-items:flex-start;
  }

  .footer-left{
    max-width:100%;
  }

  .footer-left h3{
    font-size:24px;
  }

  .footer-left p{
    font-size:18px;
  }

  .footer-right{
    gap:20px;
  }

  .qr-block{
    width:130px;
    min-width:130px;
    flex:0 0 130px;
  }

  .qr-block img{
    width:126px;
  }

  .qr-block p{
    font-size:16px;
  }
}

/* ===== 手機 ===== */

@media (max-width:768px){

  .site-header{
    height:70px;
  }

  main{
    padding-top:70px;
  }

  .header-inner{
    padding:0 20px;
  }

  .logo-img{
    height:40px;
  }

  .lang-switch{
    font-size:18px;
  }

  .hero-text{
    padding:30px 20px;
  }

  .hero-image{
    height:300px;
  }

  .policy-section,
  .lab-section,
  .info-section{
    padding:60px 20px;
  }

  .policy-section h2,
  .lab-section h2,
  .info-section h2{
    font-size:28px;
  }

  .policy-section p{
    font-size:18px;
  }

  .site-footer{
    width:100%;
    max-width:none;
    padding:32px 24px 40px;
    flex-direction:column;
    align-items:flex-start;
    gap:28px;
  }

  .footer-left{
    width:100%;
    max-width:none;
  }

  .footer-left h3{
    font-size:22px;
  }

  .footer-left p{
    font-size:16px;
  }

  .footer-right{
    justify-content:flex-start;
    gap:18px;
  }

  .qr-block{
    width:120px;
    min-width:120px;
    flex:0 0 120px;
  }

  .qr-block img{
    width:120px;
  }

  .qr-block p{
    font-size:15px;
  }
}

/* ===== 超小手機才改直排 ===== */

@media (max-width:520px){
  .footer-right{
    flex-direction:column;
    align-items:flex-start;
  }

  .qr-block{
    width:140px;
    min-width:140px;
    flex:0 0 140px;
  }

  .qr-block img{
    width:136px;
  }
}