
	:root {
	  --primary: #0088cc;      /* 網頁主色：對應 Logo 藍色 */
	  --primary-dark: #0088cc; /* 深度主色：用於深色區塊與滑鼠懸停 */
	  --secondary: #00b0f0;    /* 次要色：對應 Logo 外環的青藍色 */
	  --accent: #ffcc00;       /* 強調與按鈕色：對應 Logo 內圓的金黃色 */
	  --bg-light: #f8f9fa;
	  --text-dark: #2c3e50;
	  --text-muted: #6c757d;
	  --border-color: #e9ecef;
	}

    * { box-sizing: border-box; margin: 0; padding: 0; }
    body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Microsoft JhengHei", sans-serif; color: var(--text-dark); line-height: 1.6; background-color: #fff; }
    
    /* ------------------------------------------------------------- */
    /* 多語系切換控制 CSS (多語系隱藏/顯示邏輯)                         */
    /* ------------------------------------------------------------- */
    body.lang-zh .lang-en { display: none !important; }
    body.lang-en .lang-zh { display: none !important; }

    .lang-switch-btn {
      background: transparent;
      border: 1px solid #ffffff;
      color: #ffffff;
      padding: 2px 8px;
      border-radius: 4px;
      cursor: pointer;
      font-size: 0.8rem;
      margin-left: 10px;
      transition: all 0.3s ease;
    }
    .lang-switch-btn:hover, .lang-switch-btn.active {
      background: var(--accent);
      border-color: var(--accent);
      color: #ffffff;
    }

    /* Header & Navigation */
    header { background-color: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.1); position: sticky; top: 0; z-index: 1000; }
    .top-bar { background-color: var(--primary-dark); color: #fff; padding: 6px 5%; font-size: 0.85rem; }
    .top-bar a { color: #fff; text-decoration: none; margin-left: 15px; }
    .top-bar-right { display: flex; align-items: center; }
	.top-bar-content { max-width: 1200px;  margin: 0 auto;  display: flex;  justify-content: space-between;  align-items: center;  width: 100%;}
    nav { display: flex; justify-content: space-between; align-items: center; padding: 15px 5%; max-width: 1200px; margin: 0 auto; }
    .logo { font-size: 1.4rem; font-weight: bold; color: var(--primary); text-decoration: none; display: flex; align-items: center; gap: 8px; white-space: nowrap;flex-shrink: 0;}
    .logo span { font-size: 0.85rem; color: var(--text-muted); font-weight: normal; white-space: nowrap;}
    .nav-links { display: flex; list-style: none; gap: 10px; flex-wrap: nowrap;}
    .nav-links a { text-decoration: none; color: var(--text-dark); font-weight: 600; padding: 8px 10px; border-radius: 4px; transition: all 0.3s; cursor: pointer; white-space: nowrap;display: inline-block;}
    .nav-links a:hover, .nav-links a.active { color: var(--primary); background-color: #eef6fc; }

    /* Main Container */
    main { min-height: 80vh; }
    .page-section { display: none; padding: 40px 5%; max-width: 1200px; margin: 0 auto; }
    .page-section.active { display: block; animation: fadeIn 0.4s ease-in-out; }
    @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

    /* SEO Breadcrumbs */
    .breadcrumb { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 20px; background: var(--bg-light); padding: 10px 15px; border-radius: 4px; }
    .breadcrumb a { color: var(--primary); text-decoration: none; }

    /* Typography */
    h1 { font-size: 2.2rem; color: var(--primary); margin-bottom: 20px; border-bottom: 3px solid var(--secondary); padding-bottom: 10px; }
    h2 { font-size: 1.6rem; color: var(--primary-dark); margin: 30px 0 15px; border-left: 5px solid var(--secondary); padding-left: 10px; }
    h3 { font-size: 1.2rem; color: var(--text-dark); margin: 15px 0 10px; }
    p { margin-bottom: 15px; text-align: justify; }

    /* Feature Cards & Grid */
    .grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin: 20px 0; }
    .grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(450px, 1fr)); gap: 25px; margin: 20px 0; }
    .card { background: #fff; border: 1px solid var(--border-color); border-radius: 8px; padding: 20px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); transition: transform 0.3s; }
    .card:hover { transform: translateY(-5px); box-shadow: 0 8px 15px rgba(0,0,0,0.1); }
    .card-badge { display: inline-block; background: var(--secondary); color: #fff; font-size: 0.8rem; padding: 3px 8px; border-radius: 3px; margin-bottom: 10px; }

    /* Tables for Materials & Comparisons */
    .table-container { overflow-x: auto; margin: 20px 0; }
    table { width: 100%; border-collapse: collapse; background: #fff; }
    th, td { border: 1px solid var(--border-color); padding: 12px 15px; text-align: left; }
    th { background-color: var(--primary); color: #fff; font-weight: 600; }
    tr:nth-child(even) { background-color: var(--bg-light); }

    /* Timeline */
    .timeline { position: relative; padding-left: 30px; margin: 20px 0; border-left: 3px solid var(--secondary); }
    .timeline-item { margin-bottom: 20px; position: relative; }
    .timeline-item::before { content: ''; position: absolute; left: -36px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--primary); border: 2px solid #fff; }
    .timeline-year { font-weight: bold; color: var(--accent); font-size: 1.1rem; }

    /* CTA Section */
    .cta-box { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; padding: 30px; border-radius: 8px; text-align: center; margin: 30px 0; }
    .btn { display: inline-block; background: var(--accent); color: #fff; padding: 12px 25px; text-decoration: none; border-radius: 5px; font-weight: bold; transition: background 0.3s; margin-top: 15px; border: none; cursor: pointer; }
    .btn:hover { background: #e05e00; }

    /* 產品圖庫 (Gallery) 專用 CSS 樣式 */
    .filter-container { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 25px; justify-content: flex-start; }
    .filter-btn { background: var(--bg-light); color: var(--text-dark); border: 1px solid var(--border-color); padding: 8px 18px; border-radius: 20px; cursor: pointer; font-weight: 600; transition: all 0.3s; }
    .filter-btn:hover, .filter-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

    .gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; margin-top: 20px; }
    .gallery-card { background: #fff; border: 1px solid var(--border-color); border-radius: 8px; overflow: hidden; box-shadow: 0 4px 6px rgba(0,0,0,0.05); transition: transform 0.3s, box-shadow 0.3s; display: flex; flex-direction: column; }
    .gallery-card:hover { transform: translateY(-5px); box-shadow: 0 8px 15px rgba(0,0,0,0.12); }
    
    .gallery-card a { text-decoration: none; color: inherit; display: flex; flex-direction: column; height: 100%; }
    
    .gallery-img-wrapper { width: 100%; aspect-ratio: 4 / 3; background-color: transparent; overflow: hidden; position: relative; display: flex; align-items: center; justify-content: center; }
    .gallery-img-wrapper img { width: 100%; height: 100%; object-fit: contain; max-width: 100%;transition: transform 0.4s ease; }
    .gallery-card:hover .gallery-img-wrapper img { transform: scale(1.06); }
    
    .gallery-info { padding: 15px; display: flex; flex-direction: column; flex-grow: 1; }
    .gallery-category-tag { font-size: 0.75rem; color: var(--secondary); font-weight: bold; text-transform: uppercase; margin-bottom: 5px; }
    .gallery-title { font-size: 1.05rem; color: var(--primary-dark); font-weight: 600; margin-bottom: 5px; }
    .gallery-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.4; margin-bottom: 0; }

    /* 地圖區塊樣式 */
    .map-container { margin-top: 20px; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 6px rgba(0,0,0,0.05); }
    .map-container iframe { width: 100%; display: block; }

    /* Footer */
    footer { background-color: var(--primary-dark); color: #fff; padding: 40px 5% 20px; font-size: 0.9rem; }
    .footer-content { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
    .footer-bottom { text-align: center; margin-top: 30px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); color: #aaa; }


	@media (max-width: 768px) {
		/* 改為控制內部容器，讓手機版時上下排列並置中 */
		.top-bar-content { 
		  flex-direction: column; 
		  gap: 5px; 
		  text-align: center; 
		}
		.top-bar-right {
		  justify-content: center;
		}
		
		.nav-links { flex-direction: column; gap: 10px; width: 100%; text-align: center; display: none; }
		.nav-links.show { display: flex; padding-top: 15px; }
		.grid-2 { grid-template-columns: 1fr; }
		.gallery-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
	  }
