
:root{
  --bg:#ffffff;
  --surface:#ffffff;
  --soft:#f7f9f9;
  --text:#3f4548;
  --heading:#4a4f52;
  --muted:#8b9295;
  --line:#d8dcdd;

  /* V1.1 科技企業青綠色系 */
  --brand:#0e929d;
  --brand-dark:#087b86;
  --brand-light:#42a99f;
  --brand-soft:#eaf7f6;
  --brand-gradient:linear-gradient(90deg,#118f99 0%,#46ab9f 100%);

  --success:#208b75;
  --warning-bg:#fffaf2;
  --warning-line:#e8d9be;
}

*{box-sizing:border-box}

html{scroll-behavior:smooth}

body{
  margin:0;
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",
    "Noto Sans TC","Microsoft JhengHei",Arial,sans-serif;
  color:var(--text);
  background:var(--bg);
  line-height:1.7;
  letter-spacing:.01em;
}

a{
  color:var(--brand);
  text-decoration:none;
}
a:hover{
  color:var(--brand-dark);
  text-decoration:none;
}

.container{
  width:min(1450px,88%);
  margin:auto;
}

/* 上方青綠資訊列 */
.top{
  background:var(--brand-gradient);
  color:#fff;
  min-height:40px;
  display:flex;
  align-items:center;
  font-size:14px;
  font-weight:500;
}
.top .container{
  display:flex;
  justify-content:flex-end;
  align-items:center;
}

/* 主導覽 */
.header{
  background:#fff;
  border-bottom:1px solid #eef0f0;
  position:sticky;
  top:0;
  z-index:50;
}
.nav{
  min-height:92px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:30px;
  padding:0;
}
.brand{
  color:var(--brand);
  font-size:22px;
  font-weight:800;
  letter-spacing:.02em;
}
.brand:hover{color:var(--brand-dark)}

.menu{
  display:flex;
  align-items:center;
  gap:34px;
  flex-wrap:wrap;
}
.menu a{
  color:#292d2f;
  font-size:15px;
  font-weight:500;
}
.menu a:hover{color:var(--brand)}

/* 首頁 Hero */
.hero{
  background:#fff;
  padding:110px 0 72px;
  border-bottom:1px solid #f0f1f1;
}
h1,h2,h3{
  color:var(--heading);
}
h1{
  font-size:clamp(34px,4.5vw,54px);
  line-height:1.22;
  margin:0 0 20px;
  font-weight:700;
  letter-spacing:.015em;
}
.lead{
  max-width:850px;
  font-size:18px;
  color:#747b7e;
  margin-bottom:0;
}

/* 搜尋框 */
.searchbox{
  margin-top:32px;
  display:flex;
  gap:10px;
  max-width:850px;
}
.searchbox input{
  flex:1;
  min-width:0;
  padding:14px 18px;
  background:#fff;
  border:1px solid #cfd5d6;
  border-radius:3px;
  color:var(--text);
  font-size:15px;
  outline:none;
}
.searchbox input:focus{
  border-color:var(--brand);
  box-shadow:0 0 0 3px rgba(14,146,157,.09);
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  padding:11px 21px;
  border:1px solid var(--brand);
  border-radius:3px;
  background:var(--brand);
  color:#fff;
  font-weight:600;
  cursor:pointer;
  transition:.2s ease;
}
.btn:hover{
  background:var(--brand-dark);
  border-color:var(--brand-dark);
  color:#fff;
}

/* 內容區塊 */
.section{
  padding:58px 0;
}
.section h2{
  font-size:29px;
  margin:0 0 30px;
  font-weight:650;
}
.section h2:after{
  content:"";
  display:block;
  height:1px;
  background:#cfd3d4;
  margin-top:22px;
}

.grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:24px 34px;
}

/* 卡片改成企業官網清爽樣式 */
.card{
  background:#fff;
  border:0;
  border-top:1px solid #d9dddd;
  border-radius:0;
  padding:24px 0 25px;
  box-shadow:none;
}
.card h3{
  margin:0 0 7px;
  color:var(--brand);
  font-size:18px;
  line-height:1.45;
}
.card h3 a{
  color:var(--brand);
  font-weight:650;
}
.card h3 a:hover{
  color:var(--brand-dark);
}
.card p{
  color:#8b9092;
  margin:7px 0 10px;
  font-size:14px;
}
.card > a:last-child{
  font-size:14px;
  font-weight:600;
}

.meta{
  color:var(--muted);
  font-size:13px;
}

.badge{
  display:inline-block;
  margin-bottom:10px;
  padding:4px 9px;
  border-radius:2px;
  background:var(--brand-soft);
  color:var(--brand-dark);
  font-size:12px;
  font-weight:650;
}

/* 內頁 */
.breadcrumb{
  padding:26px 0 18px;
  color:#92989a;
  font-size:13px;
}
.breadcrumb a{color:#7e8689}
.breadcrumb a:hover{color:var(--brand)}

.content{
  background:#fff;
  border:0;
  border-top:1px solid #d6dada;
  border-radius:0;
  padding:38px 0 20px;
}
.content h1{
  font-size:36px;
  margin-bottom:16px;
}
.content h2{
  margin-top:42px;
  padding-bottom:10px;
  border-bottom:1px solid #d9dddd;
  font-size:25px;
}
.content h3{
  margin-top:28px;
  font-size:19px;
}

/* 規格表 */
.spec{
  width:100%;
  border-collapse:collapse;
  margin:18px 0 26px;
  border-top:1px solid #d8dddd;
}
.spec td,.spec th{
  padding:13px 15px;
  border-bottom:1px solid #e3e6e6;
  text-align:left;
  vertical-align:top;
}
.spec th{
  width:30%;
  background:#f6f9f9;
  color:#596063;
  font-weight:600;
}

/* 提醒/下載 */
.notice{
  margin:20px 0;
  padding:15px 17px;
  border:1px solid #ddd7c8;
  border-left:4px solid #bba269;
  border-radius:2px;
  background:#fffcf5;
  color:#69645a;
}

.download{
  margin:22px 0;
  padding:24px;
  border:1px solid #c6dedb;
  border-left:4px solid var(--brand);
  border-radius:2px;
  background:#f5fbfa;
}
.download h2{
  margin-top:0;
  border-bottom:0;
}
.download .btn{
  background:var(--brand);
  border-color:var(--brand);
}

/* Footer */
footer{
  margin-top:72px;
  padding:45px 0;
  background:#f5f7f7;
  border-top:1px solid #dde1e1;
  color:#6f7678;
}
footer strong{
  color:#4b5153;
}
footer a{
  color:#6a7476;
}
footer a:hover{
  color:var(--brand);
}
.footergrid{
  display:grid;
  grid-template-columns:2fr 1fr 1fr;
  gap:45px;
}

/* 手機版 */
@media(max-width:1000px){
  .container{width:min(92%,100%)}
  .grid{grid-template-columns:repeat(2,1fr)}
  .menu{gap:18px}
}
@media(max-width:760px){
  .top{min-height:34px}
  .top .container{justify-content:center}
  .nav{min-height:70px}
  .menu{display:none}
  .hero{padding:66px 0 48px}
  .grid{grid-template-columns:1fr}
  .searchbox{flex-direction:column}
  .footergrid{grid-template-columns:1fr}
  .content h1{font-size:30px}
}


/* V1.2：首頁移除 Hero 區域後的版面調整 */
main > .section:first-child{
  padding-top:72px;
}
@media(max-width:760px){
  main > .section:first-child{
    padding-top:42px;
  }
}


/* V1.3 product visuals */
.product-cover{
  width:100%;
  max-width:540px;
  display:block;
  border:1px solid #e4e8e8;
  background:#fff;
  padding:10px;
  border-radius:4px;
  margin:18px 0 10px;
}
.product-summary{
  display:grid;
  grid-template-columns:1.1fr 1fr;
  gap:38px;
  align-items:start;
}
.product-summary .lead{
  max-width:none;
}
.linklist{
  margin:8px 0 0;
  padding-left:18px;
}
.linklist li{
  margin:6px 0;
}
.article-box{
  background:#f8fbfb;
  border:1px solid #dde7e7;
  padding:18px 20px;
  margin:18px 0 24px;
}
@media(max-width:900px){
  .product-summary{
    grid-template-columns:1fr;
  }
}


/* V1.4：產品卡片圖片 */
.card-image{
  width:100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  display:block;
  background:#fff;
  border:1px solid #e5e9e9;
  padding:10px;
  margin:0 0 18px 0;
  border-radius:4px;
}
.card-image-link{
  display:block;
}


/* V1.5：縮小產品列表圖片 */
.card-image-link{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:190px;
  margin-bottom:16px;
  background:#fff;
}

.card-image{
  width:auto;
  max-width:78%;
  height:auto;
  max-height:180px;
  aspect-ratio:auto;
  object-fit:contain;
  display:block;
  background:#fff;
  border:0;
  padding:0;
  margin:0 auto;
  border-radius:0;
}

/* 產品中心與分類頁卡片保留更多留白 */
.card{
  padding-top:20px;
}

/* 平板 */
@media(max-width:1000px){
  .card-image-link{
    min-height:170px;
  }
  .card-image{
    max-width:82%;
    max-height:160px;
  }
}

/* 手機 */
@media(max-width:760px){
  .card-image-link{
    min-height:150px;
  }
  .card-image{
    max-width:76%;
    max-height:140px;
  }
}


/* V1.6：產品列表改為小型縮圖 */
.card-image-link{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  min-height:125px !important;
  height:125px !important;
  margin:0 0 14px 0 !important;
  background:#fff !important;
}

.card-image{
  width:auto !important;
  height:auto !important;
  max-width:110px !important;
  max-height:110px !important;
  object-fit:contain !important;
  display:block !important;
  margin:0 auto !important;
  padding:0 !important;
  border:0 !important;
  background:#fff !important;
  aspect-ratio:auto !important;
}

@media(max-width:1000px){
  .card-image-link{
    min-height:115px !important;
    height:115px !important;
  }
  .card-image{
    max-width:100px !important;
    max-height:100px !important;
  }
}

@media(max-width:760px){
  .card-image-link{
    min-height:105px !important;
    height:105px !important;
  }
  .card-image{
    max-width:90px !important;
    max-height:90px !important;
  }
}


/* V1.8：產品圖片精準置中＋專業細框 */
.card-image-link{
  width:140px !important;
  height:140px !important;
  min-height:140px !important;
  margin:0 auto 18px auto !important;
  padding:10px !important;

  display:flex !important;
  align-items:center !important;
  justify-content:center !important;

  background:#ffffff !important;
  border:1px solid #dfe5e6 !important;
  border-radius:5px !important;
  box-sizing:border-box !important;
  overflow:hidden !important;
}

.card-image{
  display:block !important;
  width:auto !important;
  height:auto !important;
  max-width:108px !important;
  max-height:108px !important;

  margin:auto !important;
  padding:0 !important;
  border:0 !important;
  border-radius:0 !important;
  object-fit:contain !important;
  object-position:center center !important;
  background:transparent !important;
  aspect-ratio:auto !important;
}

/* 產品卡內容保持一致 */
.products-grid .card,
.grid .card{
  text-align:left;
}

/* 平板 */
@media(max-width:1000px){
  .card-image-link{
    width:130px !important;
    height:130px !important;
    min-height:130px !important;
  }
  .card-image{
    max-width:100px !important;
    max-height:100px !important;
  }
}

/* 手機 */
@media(max-width:760px){
  .card-image-link{
    width:120px !important;
    height:120px !important;
    min-height:120px !important;
  }
  .card-image{
    max-width:92px !important;
    max-height:92px !important;
  }
}


/* V1.9：裁除圖片原始白邊後，讓產品本體更清楚 */
.card-image-link{
  width:140px !important;
  height:140px !important;
  padding:12px !important;
}

.card-image{
  width:100% !important;
  height:100% !important;
  max-width:116px !important;
  max-height:116px !important;
  object-fit:contain !important;
  object-position:center center !important;
}


/* V1.10：C8051 產品頁多圖圖集 */
.product-main-photo{
  width:100%;
  max-width:540px;
  display:block;
  border:1px solid #e2e7e8;
  background:#fff;
  padding:16px;
  border-radius:6px;
  margin:18px 0 16px;
}

.product-gallery-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:14px;
  max-width:540px;
  margin:0 0 18px 0;
}

.product-gallery-card{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:170px;
  background:#fff;
  border:1px solid #dfe5e6;
  border-radius:6px;
  padding:12px;
  overflow:hidden;
}

.product-gallery-card img{
  max-width:100%;
  max-height:145px;
  width:auto;
  height:auto;
  object-fit:contain;
  object-position:center center;
  display:block;
}

.product-gallery-title{
  margin:10px 0 12px;
  color:#4d5558;
  font-size:18px;
  font-weight:650;
}

@media(max-width:760px){
  .product-gallery-grid{
    grid-template-columns:1fr;
    max-width:100%;
  }
  .product-gallery-card{
    min-height:150px;
  }
  .product-gallery-card img{
    max-height:128px;
  }
}


/* V1.11：真實商品照＋形象圖產品頁 */
.photo-section-title{
  margin:20px 0 12px;
  font-size:18px;
  font-weight:700;
  color:#4a5154;
}

.real-photo-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
  margin:0 0 20px;
}

.real-photo-card,
.brand-photo-card{
  background:#fff;
  border:1px solid #dfe5e6;
  border-radius:6px;
  padding:12px;
}

.real-photo-card img,
.brand-photo-card img{
  width:100%;
  height:220px;
  object-fit:contain;
  display:block;
  background:#fff;
}

.photo-caption{
  margin:8px 2px 0;
  font-size:12px;
  color:#8a9194;
  line-height:1.5;
}

.brand-gallery-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  margin-bottom:20px;
}

.brand-photo-card img{
  height:135px;
}

.tech-highlight{
  background:#f4faf9;
  border-left:4px solid var(--brand);
  padding:16px 18px;
  margin:18px 0 24px;
  color:#526064;
}

.tech-list{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px 24px;
  margin:15px 0 25px;
}

.tech-list div{
  border-bottom:1px solid #e5e9ea;
  padding:8px 0;
}

.source-note{
  font-size:12px;
  color:#90979a;
  margin-top:8px;
}

@media(max-width:760px){
  .real-photo-grid,
  .brand-gallery-grid,
  .tech-list{
    grid-template-columns:1fr;
  }
  .real-photo-card img{
    height:190px;
  }
  .brand-photo-card img{
    height:150px;
  }
}
