@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Noto+Sans+TC:wght@100..900&display=swap');
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Montserrat','Noto Sans TC',sans-serif; color: #333; line-height: 1.6; overflow-x: hidden; background-color: #fff; scroll-behavior: smooth; }
a { text-decoration: none; color: inherit; display: block; }
a.masklink { position: absolute; width: 100%; height: 100%; left: 0; top: 0; z-index: 5; }
img { max-width: 100%; height: auto; display: block; }
.container { width: min(1280px,100%); margin: 0 auto; padding: 0 20px; }
.flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.section-padding { padding: 80px 0; }
.btn { display: inline-block; padding: 10px 28px; background-color: #4F73B8; color: #fff; border-radius: 30px; font-weight: 500; font-size: 15px; transition: all 0.3s ease; cursor: pointer; border: none; letter-spacing: 1px; }
.btn:hover { background-color: #3b5a96; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(79,115,184,0.3); }
.section-title { font-size: 3rem; font-weight: bold; color: #4f73b8; margin-bottom: 0; letter-spacing: 2px; }
#header { position: fixed; top: 0; left: 0; width: 100%; background: rgba(255,255,255,0.98); z-index: 1000; box-shadow: 0 2px 15px rgba(0,0,0,0.05); padding: 20px 5%; backdrop-filter: blur(5px); }
#header .header-container { display: flex; justify-content: space-between; align-items: center; width: 100%; max-width: 1920px; margin: 0 auto; }
#header .logo-wrapper { display: flex; flex-direction: column; line-height: 1.1; }
#header .logo-wrapper .poologo img { width: min(250px,100%); }
#header .logo-en { font-size: 32px; font-weight: 800; color: #4F73B8; letter-spacing: 1px; }
#header .logo-tw { font-size: 20px; color: #4F73B8; letter-spacing: 8px; font-weight: bold; margin-top: 5px; }
#header .right-area { display: flex; flex-direction: column; align-items: flex-end; gap: 15px; }
#header .top-row { display: flex; align-items: center; justify-content: center; gap: 25px; }
#header .phone { color: #4F73B8; font-weight: bold; font-size: 16px; display: flex; align-items: center; gap: 8px; letter-spacing: 1px; }
#header .phone span { font-size: 22px; font-weight: 900; }
#header .hours { font-size: 12px; color: #4F73B8; line-height: 1.5; font-weight: 600; text-align: left; }
#header .btn-nav { padding: 10px 28px; font-size: 15px; background-color: #4F73B8; color: #fff; border-radius: 30px; font-weight: bold; border: none; cursor: pointer; transition: all 0.3s ease; }
#header .btn-nav:hover { background-color: #3b5a96; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(79,115,184,0.3); }
#header .bottom-row { display: flex; align-items: center; justify-content: center; z-index: 5; }
#header .nav-links { display: flex; gap: 35px; font-size: 16px; font-weight: 800; color: #111; }
#header .nav-links li { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; }
#header .nav-links li:hover { overflow: visible; }
#header .nav-links li .menu_body { opacity: 0; display: none; position: absolute; width: 160px; left: -54px; padding-top: 40px; z-index: -1; }
#header .nav-links li:hover .menu_body { opacity: 1; display: flex; flex-direction: column; top: 0; }
#header .nav-item { position: relative; padding-bottom: 6px; cursor: pointer; width: 100%; display: flex; font-size: 1.05rem; }
#header .nav-item:hover,#header .nav-item.active { color: #4F73B8; }
#header .nav-item::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 3px; background-color: #4F73B8; border-radius: 2px; transform: scaleX(0); }
#header .nav-item:hover::after { transform: scaleX(1); }
#header .nav-links li b { display: none; }
#header .nav-links .menu_body {   }
#header .nav-links .menu_body ul { background: #f8f8f8; }
#header .nav-links .menu_body ul.subOption li a { display: flex; width: 100%; padding: 10px; }
.webbJtitle{
  font-size: 2.5rem;
  color: #4b6cb3;
  font-weight: 600;
  text-align: center;
}

#features-section { padding: 40px 0 60px; background-color: #fff; position: relative; z-index: 3; }
#features-section .icon-grid { display: grid; grid-template-columns: repeat(6,1fr); gap: 0; width: min(1280px,100%); margin: 0 auto; justify-content: flex-start; justify-items: center; }
#features-section .feature-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; cursor: pointer; transition: all 0.3s ease; padding: 15px 0px; width: 100%; }
#features-section .feature-card:hover { transform: translateY(-8px); }
#features-section .feature-card:before { content: ""; position: absolute; width: 1px; height: 100%; background: #4f73b8; right: 0; }
#features-section .icon-wrapper { width: 90px; height: 90px; display: flex; justify-content: center; align-items: center; color: #4F73B8; transition: all 0.3s ease; }
#features-section .feature-card:hover .icon-wrapper { color: #2a4882; transform: scale(1.1); }
#features-section .icon-wrapper svg { width: 100%; height: 100%; }
#features-section .feature-title { font-size: 16px; font-weight: 600; color: #4f73b8; text-align: center; letter-spacing: 1px; border-left: 1px solid transparent; border-right: 1px solid transparent; padding: 0 10px; }
#features-section .feature-card:first-child:after { content: ""; position: absolute; width: 1px; height: 100%; background: #4f73b8; left: 0; }
#about-section { background-color: #fff; padding: 40px 0 80px; }
#about-section .container {display: grid;grid-template-columns: 47% 47%;align-items: center;gap: 6%;}
#about-section .text-box { flex: 1.2; }
#about-section .subtitle { font-size: 1.25rem; font-weight: bold; color: #666; margin-bottom: 20px; letter-spacing: 2px; }
#about-section .desc-text { color: #555; font-size: 15px; line-height: 2; text-align: justify; }
#about-section .image-box {flex: 1;border-radius: 8px;overflow: hidden;box-shadow: 0 15px 35px rgba(0,0,0,0.1);display: flex;aspect-ratio: 6/5;}
#about-section .image-box a { padding: 0; overflow: hidden; }
#about-section .image-box img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
#about-section .image-box:hover img { transform: scale(1.03); }
#euclid-section { background-color: #F8F9FA; padding: 80px 0 0 0; overflow: hidden; }
#euclid-section .top-area {margin-bottom: 100px;display: grid;grid-template-columns: 47% 47%;align-items: center;gap: 6%;}
#euclid-section .info-area { flex: 1; }
#euclid-section .brand-logo {display: flex;align-items: center;gap: 15px;margin-bottom: 20px;width: 270px;}
#euclid-section .brand-icon { width: 50px; height: 50px; border-radius: 50%; border: 3px solid #0056A4; display: flex; justify-content: center; align-items: center; color: #0056A4; font-weight: bold; font-size: 24px; font-style: italic; }
#euclid-section .brand-name { font-size: 28px; font-weight: 900; color: #333; letter-spacing: 1px; }
#euclid-section .slogan { font-size: 24px; font-weight: bold; color: #0056A4; margin-bottom: 15px; letter-spacing: 2px; }
#euclid-section .paragraph { color: #666; font-size: 15px; line-height: 1.8; margin-bottom: 30px; }
#euclid-section .featured-image {flex: 1;background: #fff;padding: 30px;border-radius: 12px;box-shadow: 0 10px 30px rgba(0,0,0,0.05);display: flex;}
#euclid-section .featured-image img{width:100%;}
#euclid-section .carousel-wrapper { width: 100%; overflow: hidden; display: flex; }
#euclid-section .carousel-track { display: flex; width: max-content; animation: marquee 25s linear infinite; }
#euclid-section .carousel-track:hover { animation-play-state: paused; }
#euclid-section .gallery-item { flex-shrink: 0; width: 25vw; min-width: 280px; aspect-ratio: 4/3; position: relative; cursor: pointer; overflow: hidden; }
#euclid-section .gallery-item::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,86,164,0); transition: background 0.3s; }
#euclid-section .gallery-item:hover::after { background: rgba(0,86,164,0.1); }
#euclid-section .gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
#euclid-section .gallery-item:hover img { transform: scale(1.1); }
#ophtecs-section { background-color: #fff; padding: 80px 0 100px; }
#ophtecs-section .title-area { display: flex; justify-content: center; align-items: center; gap: 20px; margin-bottom: 50px; }
#ophtecs-section .ophtecs-logo {
    display: flex;
    width: 300px;
    aspect-ratio: 25/3;
}
#ophtecs-section .ophtecs-subtitle {font-size: 1.5rem;font-weight: bold;color: #333;letter-spacing: 1px;}
#ophtecs-section .product-layout { display: flex; flex-direction: column; align-items: center; gap: 20px; }
#ophtecs-section .row {justify-content: center;display: grid;grid-template-columns: repeat(3, 1fr);align-items: center;gap: 20px;}
#ophtecs-section .prod-box { width: 240px; height: 200px; display: flex; justify-content: center; align-items: center; border-radius: 4px; transition: all 0.3s ease; cursor: pointer; position: relative; overflow: hidden; }
#ophtecs-section .prod-box:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.15); }
#ophtecs-section .prod-box img { max-width: 60%; max-height: 70%; object-fit: contain; filter: drop-shadow(0 5px 10px rgba(0,0,0,0.2)); transition: transform 0.3s; }
#ophtecs-section .prod-box.fullimg {width:100%;}
#ophtecs-section .prod-box.fullimg img{
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
}
#ophtecs-section .prod-box:hover img { transform: scale(1.05); }
#ophtecs-section .c-pink { background-color: #E6007E; }
#ophtecs-section .c-navy { background-color: #183C71; }
#ophtecs-section .c-blue { background-color: #009FE3; }
#ophtecs-section .c-darkblue { background-color: #005BAC; }
#ophtecs-section .c-cyan { background-color: #68C4D8; }
#footer { background-color: #5572AD; color: #fff; padding: 70px 0; }
#footer .container { display: flex; justify-content: center; flex-wrap: wrap; gap: 10vw; max-width: 1000px; }
#footer .brand-col { flex: 0 1 auto; }
#footer .f-logo-en { font-size: 32px; font-weight: 600; letter-spacing: 1px; margin-bottom: 5px; }
#footer .f-logo-tw { font-size: 26px; letter-spacing: 8px; font-weight: 400; }
#footer .partner-marks { display: flex; align-items: flex-end; gap: 20px; margin-top: 40px; }
#footer .euclid-logo { display: flex; align-items: center; position: relative; }
#footer .euclid-moon { width: 38px; height: 38px; position: absolute; left: -16px; z-index: 0; }
#footer .euclid-logo span { position: relative; z-index: 1; font-style: italic; font-weight: 900; font-size: 15px; margin-left: 12px; }
#footer .ophtecs-logo { display: flex; flex-direction: column; line-height: 1.1; font-family: 'Times New Roman',Times,serif; }
#footer .ophtecs-logo .top { font-size: 17px; font-weight: bold; }
#footer .ophtecs-logo .bottom { font-size: 11px; font-weight: normal; letter-spacing: 0.5px; }
#footer .agent-text { font-size: 12px; font-weight: 500; margin-bottom: 2px; }
#footer .info-col { flex: 0 1 auto; font-size: 12px; line-height: 1.6; display: flex; flex-direction: column; }
#footer .company-name { font-size: 14px; font-weight: 700; margin-bottom: 15px; letter-spacing: 1px; }
#footer .info-line { display: flex; align-items: flex-start; margin-bottom: 6px; }
#footer .label { white-space: nowrap; letter-spacing: 1px; }
#footer .separator { margin: 0 8px; opacity: 0.8; }
#footer .info-value { display: flex; flex-direction: column; }
#footer .info-line a { text-decoration: none; transition: opacity 0.3s; }
#footer .info-line a:hover { opacity: 0.7; }
#footer .social-icons-footer { display: flex; gap: 12px; margin-top: 20px; }
#footer .social-icons-footer a { display: flex; justify-content: center; align-items: center; width: 32px; height: 32px; background-color: white; color: #5572AD; border-radius: 50%; transition: transform 0.3s ease; text-decoration: none; }
#footer .social-icons-footer a:hover { transform: translateY(-3px); box-shadow: 0 4px 10px rgba(0,0,0,0.15); }
#footer .social-icons-footer svg { width: 18px; height: 18px; fill: currentColor; }
/* --- 懸浮按鈕與 Top 鈕專屬樣式 --- */
#floating-bar { position: fixed; bottom: 30px; right: 30px; z-index: 1000; display: flex; flex-direction: column; align-items: center; }
.social-wrapper { display: flex; flex-direction: column; gap: 12px; align-items: center; }
.float-icon { width: 44px; height: 44px; border-radius: 50%; background: #fff; color: #4F73B8; display: flex; justify-content: center; align-items: center; box-shadow: 0 4px 15px rgba(0,0,0,0.1); transition: all 0.3s ease; cursor: pointer; text-decoration: none; border: 1px solid #f0f0f0; }
.float-icon:hover { background: #E6007E; color: #fff; transform: translateY(-4px); box-shadow: 0 8px 20px rgba(230,0,126,0.3); border-color: #E6007E; }
.float-icon svg { width: 20px; height: 20px; fill: currentColor; transition: transform 0.3s ease; }
.float-icon:hover svg { transform: scale(1.1); }
/* Top 按鈕外層容器控制高度與顯示動畫，解決留白問題 */
#top-btn-wrapper { max-height: 0; margin-top: 0; opacity: 0; transition: all 0.4s cubic-bezier(0.175,0.885,0.32,1.275); pointer-events: none; }
#top-btn-wrapper.show { max-height: 50px; margin-top: 12px; opacity: 1; pointer-events: auto; }
/* Top 按鈕內部動畫與顏色樣式 */
#top-btn { background: #4F73B8; color: #fff; border: none; transform: scale(0.5) translateY(20px); transition: all 0.4s cubic-bezier(0.175,0.885,0.32,1.275); }
#top-btn-wrapper.show #top-btn { transform: scale(1) translateY(0); }
#top-btn:hover { background: #3b5a96; transform: translateY(-4px) scale(1) !important; box-shadow: 0 8px 20px rgba(79,115,184,0.4); border-color: #3b5a96; }
#top-btn svg { width: 22px; height: 22px; stroke-width: 2.5; stroke: currentColor; fill: none; }
/* 手機版選單漢堡鈕樣式 */
.mobile-toggle { display: none; flex-direction: column; gap: 6px; cursor: pointer; padding: 5px; z-index: 1002; }
.mobile-toggle span { display: block; width: 30px; height: 3px; background-color: #4F73B8; border-radius: 3px; transition: all 0.3s ease-in-out; }
.mobile-toggle.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@media (max-width:1470px){
  #features-section .icon-grid{width: min(1024px, 100%);}
  .container{width: min(1024px, 100%);}
  #header .logo-wrapper .poologo img { width: min(250px,100%); }
  #header .logo-wrapper .poologo img {width: min(200px,100%);}
  #header{padding: 10px 5%;}
}
@media (max-width:1024px) {
  /* 重新配置手機與平板的 Header 佈局 */
  #header { padding: 15px 20px; }
  #header .logo-en { font-size: 28px; }
  #header .logo-tw { font-size: 16px; letter-spacing: 6px; }
  .mobile-toggle { display: flex; }
  #header .right-area { position: absolute; top: 100%; left: 0; width: 100%; background: rgba(255,255,255,0.98); box-shadow: 0 10px 15px rgba(0,0,0,0.05); flex-direction: column; align-items: center; padding: 0; gap: 0; max-height: 0; overflow: hidden; opacity: 0; transition: max-height 0.4s ease,padding 0.4s ease,opacity 0.4s ease; }
  #header .right-area.open { max-height: 600px; padding: 20px 0 30px; border-top: 1px solid #eee; opacity: 1; }
  #header .bottom-row { display: flex; width: 100%; justify-content: center; margin-top: 20px; padding-top: 20px; border-top: 1px solid #eee; }
  #header .nav-links { flex-direction: column; align-items: center; gap: 20px; }
  #header .top-row { flex-direction: column; align-items: center; gap: 15px; }
  #header .hours { text-align: center; }
  #about-section .container { flex-direction: column; gap: 40px; }
  #euclid-section .top-area { flex-direction: column; gap: 40px; }
  #euclid-section .featured-image { width: 100%; }
}
@media (max-width:768px) {
  #features-section .feature-card { width: calc(33.33% - 10px); border-right: none !important; }
  #ophtecs-section .row { flex-direction: column; align-items: center; }
  #ophtecs-section .title-area { flex-direction: column; text-align: center; gap: 10px; }
  #footer .container { flex-direction: column; gap: 40px; align-items: flex-start; padding: 0 10px; }
  #footer .partner-marks { flex-wrap: wrap; }
  /* 手機版懸浮按鈕稍微縮小，並相應調整間距 */
  #floating-bar { bottom: 20px; right: 20px; }
  .social-wrapper { gap: 10px; }
  #top-btn-wrapper.show { margin-top: 10px; }
  .float-icon { width: 40px; height: 40px; }
  .float-icon svg { width: 18px; height: 18px; }
}
