/* HCH 鴻琪股份有限公司 - Main Stylesheet */
/* Color Palette: Red #CC0000, White #FFFFFF, Blue #003399, Black #111111 */

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&family=Noto+Sans+TC:wght@300;400;500;700&display=swap');

:root {
  --red: #CC0000;
  --red-dark: #990000;
  --red-light: #E8001A;
  --blue: #003399;
  --blue-dark: #002277;
  --blue-light: #0044CC;
  --black: #111111;
  --gray-dark: #333333;
  --gray: #666666;
  --gray-light: #F5F5F5;
  --white: #FFFFFF;
  --border: #E0E0E0;
  --shadow: 0 2px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.14);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Noto Sans TC', 'Microsoft JhengHei', Arial, sans-serif;
  background: var(--white);
  color: var(--black);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; transition: color 0.2s; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* ===== TOPBAR ===== */
.topbar {
  background: var(--black);
  color: #aaa;
  font-size: 12px;
  padding: 6px 0;
  letter-spacing: 0.03em;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px; }
.topbar a:hover { color: var(--white); }
.topbar-contact span { margin-right: 18px; }
.topbar-contact i { margin-right: 4px; color: var(--red); }
.topbar-lang a { margin-left: 10px; padding: 2px 8px; border: 1px solid #444; border-radius: 3px; font-size: 11px; }
.topbar-lang a:hover { background: var(--red); border-color: var(--red); color: var(--white); }

/* ===== HEADER ===== */
.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--red);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 20px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.logo-text {
  font-family: 'Rajdhani', sans-serif;
  font-size: 48px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: -1px;
  line-height: 1;
}
.logo-sub {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.logo-sub span:first-child {
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.05em;
}
.logo-sub span:last-child {
  font-size: 11px;
  color: var(--gray);
}

/* ===== SEARCH BAR ===== */
.header-search {
  display: flex;
  gap: 10px;
  align-items: center;
  flex: 1;
  max-width: 480px;
}
.search-wrap {
  display: flex;
  flex: 1;
  border: 2px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.search-wrap:focus-within { border-color: var(--red); }
.search-wrap input {
  flex: 1;
  padding: 9px 14px;
  border: none;
  outline: none;
  font-size: 14px;
  font-family: inherit;
}
.search-wrap button {
  background: var(--red);
  color: var(--white);
  border: none;
  padding: 0 18px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: background 0.2s;
}
.search-wrap button:hover { background: var(--red-dark); }

/* ===== QUICK CONTACTS ===== */
.header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}
.btn-line {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #06C755;
  color: var(--white);
  padding: 8px 14px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.2s, transform 0.15s;
}
/* 語言按鈕：桌機顯示完整文字，手機只顯示單字 */
.lang-btn .lang-short { display: none; }
.lang-btn .lang-full { display: inline; }
.btn-contact {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--blue);
  color: var(--white);
  padding: 8px 14px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.2s, transform 0.15s;
}
.btn-contact:hover { background: var(--blue-dark); color: var(--white); transform: translateY(-1px); }

/* ===== MAIN NAV ===== */
.main-nav {
  background: linear-gradient(135deg, var(--red-dark) 0%, var(--red) 60%, #E8001A 100%);
  position: relative;
}
.nav-list {
  display: flex;
  align-items: stretch;
}
.nav-item {
  position: relative;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 14px 18px;
  color: rgba(255,255,255,0.92);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
.nav-link:hover, .nav-item:hover > .nav-link, .nav-item.active > .nav-link {
  background: rgba(0,0,0,0.20);
  color: var(--white);
}
.nav-link .arrow { font-size: 10px; opacity: 0.7; transition: transform 0.2s; }
.nav-item:hover .arrow { transform: rotate(180deg); }

/* Mega / Dropdown */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border-top: 3px solid var(--red);
  border-radius: 0 0 6px 6px;
  box-shadow: var(--shadow-lg);
  min-width: 260px;
  padding: 10px 0;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
}
.nav-item:hover .dropdown-menu,
.nav-item:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-item {
  display: block;
  padding: 9px 20px;
  font-size: 13px;
  color: var(--gray-dark);
  border-left: 3px solid transparent;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.dropdown-item:hover {
  background: var(--gray-light);
  border-left-color: var(--red);
  color: var(--red);
}
.dropdown-label {
  display: block;
  padding: 8px 20px 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray);
  border-top: 1px solid var(--border);
  margin-top: 4px;
}
.dropdown-label:first-child { border-top: none; margin-top: 0; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: transform 0.3s, opacity 0.3s;
  border-radius: 2px;
}

/* ===== CONTAINER ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.container-wide { max-width: 1400px; margin: 0 auto; padding: 0 20px; }

/* ===== HERO SECTION ===== */
.hero {
  background: #FFFFFF;
  color: var(--black);
  padding: 70px 0 60px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: none;
  pointer-events: none;
}
.hero-inner { display: flex; align-items: center; gap: 50px; position: relative; z-index: 1; }
.hero-content { flex: 1; }
.hero-badge {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 2px;
  margin-bottom: 20px;
}
.hero h1 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 56px;
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 14px;
  letter-spacing: -0.5px;
  color: var(--black);
}
.hero h1 span { color: var(--red); }
.hero-en-sub {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
  margin-top: -6px;
}
.hero-desc {
  font-size: 15px;
  color: var(--gray-dark);
  max-width: 520px;
  margin-bottom: 8px;
  line-height: 1.75;
}
.hero-desc-en {
  font-size: 13px;
  color: var(--gray);
  max-width: 520px;
  margin-bottom: 28px;
  line-height: 1.7;
  padding-left: 12px;
  border-left: 2px solid var(--red);
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.btn-primary {
  background: var(--red);
  color: var(--white);
  padding: 13px 30px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.05em;
  transition: background 0.2s, transform 0.15s;
  border: 2px solid var(--red);
}
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); color: var(--white); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  color: var(--black);
  padding: 13px 30px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.05em;
  border: 2px solid var(--gray-dark);
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.btn-outline:hover { background: var(--gray-light); border-color: var(--black); color: var(--black); transform: translateY(-2px); }
.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; }
.hero-stat strong { display: block; font-family: 'Rajdhani', sans-serif; font-size: 36px; font-weight: 700; color: var(--red); line-height: 1; }
.hero-stat span { font-size: 12px; color: var(--gray); letter-spacing: 0.08em; text-transform: uppercase; }
.hero-visual {
  flex-shrink: 0;
  width: 500px;
  text-align: center;
}
.hero-img-wrapper {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: unset;
}
.hero-img-wrapper img { max-height: unset; width: 100%; height: auto; margin: 0 auto; }
.hero-placeholder {
  width: 100%;
  height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--gray);
  font-size: 13px;
}
.hero-placeholder .icon { font-size: 48px; }

/* ===== SECTION TITLE ===== */
.section-header { text-align: center; margin-bottom: 48px; }
.section-tag {
  display: inline-block;
  background: #FFF0F0;
  color: var(--red);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 2px;
  margin-bottom: 12px;
}
.section-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.3px;
  margin-bottom: 10px;
}
.section-desc { font-size: 15px; color: var(--gray); max-width: 600px; margin: 0 auto; }
.section-divider {
  width: 50px;
  height: 3px;
  background: var(--red);
  margin: 14px auto 0;
  border-radius: 2px;
}

/* ===== NEWS TICKER ===== */
.news-bar {
  background: var(--blue);
  color: var(--white);
  padding: 10px 0;
  overflow: hidden;
}
.news-bar-inner { display: flex; align-items: center; gap: 16px; }
.news-label {
  background: var(--red);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 3px 12px;
  border-radius: 2px;
  white-space: nowrap;
  flex-shrink: 0;
}
.news-ticker-wrap { flex: 1; overflow: hidden; position: relative; }
.news-ticker {
  display: flex;
  animation: ticker 40s linear infinite;
  white-space: nowrap;
}
.news-ticker a {
  color: rgba(255,255,255,0.9);
  font-size: 13px;
  margin-right: 50px;
  transition: color 0.2s;
}
.news-ticker a:hover { color: var(--white); }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.news-ticker-wrap:hover .news-ticker { animation-play-state: paused; }

/* ===== PRODUCTS SECTION ===== */
.section { padding: 70px 0; }
.section-alt { background: var(--gray-light); }
.section-dark { background: var(--black); color: var(--white); }
.section-dark .section-title { color: var(--white); }
.section-dark .section-desc { color: rgba(255,255,255,0.6); }
.section-dark .btn-outline {
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.section-dark .btn-outline:hover { background: rgba(255,255,255,0.12); border-color: var(--white); color: var(--white); }

/* ===== CONTACT CTA SECTION ===== */
.contact-cta-section {
  background: #F4F6F8;
  border-top: 1px solid #D8DCE0;
  padding: 70px 0;
  position: relative;
  overflow: hidden;
}
/* 右下角科技感裝飾弧（冷灰） */
.contact-cta-section::before {
  content: '';
  position: absolute;
  bottom: -100px;
  right: -100px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,51,153,0.05) 0%, transparent 70%);
  pointer-events: none;
}
/* 左上角裝飾弧（更淡） */
.contact-cta-section::after {
  content: '';
  position: absolute;
  top: -80px;
  left: -80px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,0,0,0.04) 0%, transparent 70%);
  pointer-events: none;
}
.contact-cta-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.contact-cta-title {
  font-family: 'Noto Sans TC', Arial, sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: #111;
  line-height: 1.2;
  margin-bottom: 16px;
}
.contact-cta-title span {
  font-family: 'Rajdhani', sans-serif;
  font-size: 28px;
  font-weight: 600;
  color: #999;
  letter-spacing: 0.04em;
}
.contact-cta-desc {
  font-size: 15px;
  color: #555;
  line-height: 1.8;
  margin-bottom: 28px;
}
.contact-cta-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contact-cta-info-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #666;
}
.contact-cta-info-item i {
  color: #CC0000;
  width: 16px;
  flex-shrink: 0;
}
/* 右側按鈕列 */
.contact-cta-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cta-btn-im {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border: 1px solid #E8E8E8;
  border-radius: 10px;
  padding: 16px 20px;
  text-decoration: none;
  color: #111;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}
.cta-btn-im:hover {
  box-shadow: 0 6px 20px rgba(204,0,0,0.12);
  border-color: #CC0000;
  transform: translateX(4px);
}
.cta-btn-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
}
.cta-btn-label {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.cta-btn-label strong {
  font-size: 15px;
  font-weight: 700;
  color: #111;
}
.cta-btn-label em {
  font-style: normal;
  font-size: 12px;
  color: #888;
}
.cta-btn-arrow {
  font-size: 12px;
  color: #ccc;
  transition: color 0.2s, transform 0.2s;
}
.cta-btn-im:hover .cta-btn-arrow {
  color: #CC0000;
  transform: translateX(3px);
}
/* 左側紅色邊線裝飾 */
.contact-cta-text {
  border-left: 3px solid #CC0000;
  padding-left: 28px;
}
@media (max-width: 768px) {
  .contact-cta-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .contact-cta-title { font-size: 28px; }
  .contact-cta-text { border-left: none; padding-left: 0; border-top: 1px solid #D8DCE0; padding-top: 20px; }
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}


.cat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
  cursor: pointer;
}
.cat-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

/* ===== 產品圖片區（首頁卡片上方）===== */
.cat-img-wrap {
  width: 100%;
  height: 150px;
  overflow: hidden;
  background: #f0f0f0;
  border-bottom: none;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cat-img-wrap img {
  width: 80%;
  height: 80%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.35s ease;
  display: block;
}
.cat-card:hover .cat-img-wrap img {
  transform: scale(1.08);
}
/* 無圖時的佔位背景 */
.cat-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  opacity: 0.25;
  background: linear-gradient(135deg, #f5f5f5, #ebebeb);
}
.cat-card-header {
  background: linear-gradient(135deg, var(--red-dark), var(--red));
  color: var(--white);
  padding: 16px 20px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cat-icon { font-size: 22px; opacity: 0.9; }
.cat-title { font-weight: 700; font-size: 14px; letter-spacing: 0.03em; }
.cat-card-body { padding: 12px 0; }
.cat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 20px;
  font-size: 13px;
  color: var(--gray-dark);
  transition: background 0.15s, color 0.15s;
  border-left: 3px solid transparent;
}
.cat-item:hover {
  background: #FFF5F5;
  color: var(--red);
  border-left-color: var(--red);
}
.cat-item .pdf-icon { color: var(--red); font-size: 12px; opacity: 0; transition: opacity 0.15s; }
.cat-item:hover .pdf-icon { opacity: 1; }
.cat-card-footer {
  padding: 10px 20px;
  border-top: 1px solid var(--border);
  text-align: right;
}
.cat-more { font-size: 12px; color: var(--red); font-weight: 600; letter-spacing: 0.05em; }
.cat-more:hover { text-decoration: underline; }

/* ===== 產品頁分類橫幅 Banner（左文右圖）===== */
.cat-banner {
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
  position: relative;
  background: linear-gradient(120deg, #e8e8e8 0%, #d0d0d0 40%, #b8b8b8 100%);
  margin-bottom: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
}
/* 左側：文字區 */
.cat-banner-overlay {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 0 24px 0 32px;
  z-index: 1;
  order: 1;
}
.cat-banner-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: #1a1a1a;
  text-shadow: 0 1px 3px rgba(255,255,255,0.4);
  line-height: 1.3;
  text-align: left;
}
/* 右側：產品圖片 */
.cat-banner img {
  width: 40%;
  height: 100%;
  object-fit: contain;
  object-position: center right;
  padding: 16px 24px 16px 0;
  display: block;
  box-sizing: border-box;
  flex-shrink: 0;
  order: 2;
}
@media (max-width: 768px) {
  .cat-banner { height: 140px; }
  .cat-banner img { width: 38%; padding: 12px 14px 12px 0; }
  .cat-banner-title { font-size: 17px; }
  .cat-banner-overlay { padding: 0 8px 0 18px; }
}

/* ===== 產品頁 Banner + 表格 組合容器 ===== */
.cat-content-wrap {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  margin-bottom: 20px;
}
.new-badge {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 2px;
  margin-left: 6px;
  vertical-align: middle;
  letter-spacing: 0.08em;
}

/* ===== SEARCH RESULT ===== */
.search-result-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 30px;
  box-shadow: var(--shadow);
}
.search-result-box h3 { font-size: 16px; margin-bottom: 16px; color: var(--blue); }
.result-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.result-item:last-child { border-bottom: none; }
.result-partno {
  font-family: 'Rajdhani', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--black);
  min-width: 160px;
}
.result-action a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--red);
  color: var(--white);
  padding: 5px 12px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 600;
  transition: background 0.2s;
}
.result-action a:hover { background: var(--red-dark); }
.no-results { text-align: center; padding: 30px; color: var(--gray); }

/* ===== ABOUT / FEATURES ===== */
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 28px; }
.feature-card {
  text-align: center;
  padding: 32px 24px;
  border-radius: 8px;
  background: var(--white);
  border: 1px solid var(--border);
  transition: box-shadow 0.2s, transform 0.2s;
}
.feature-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.feature-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--red-dark), var(--red));
  color: var(--white);
  font-size: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}
.feature-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 10px; color: var(--black); }
.feature-card p { font-size: 13px; color: var(--gray); line-height: 1.7; }

/* ===== CATALOGS ===== */
.catalog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.catalog-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
  transition: box-shadow 0.2s, transform 0.2s;
}
.catalog-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.catalog-img {
  height: 160px;
  background: var(--gray-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: var(--red);
}
.catalog-card h4 { font-size: 14px; font-weight: 600; padding: 14px 16px 6px; color: var(--black); }
.catalog-card a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--red);
  color: var(--white);
  padding: 8px 18px;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
  transition: background 0.2s;
}
.catalog-card a:hover { background: var(--red-dark); }

/* ===== CONTACT SECTION ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-info h3 { font-size: 22px; font-weight: 700; margin-bottom: 20px; color: var(--black); }
.contact-row { display: flex; gap: 14px; margin-bottom: 16px; align-items: flex-start; }
.contact-row .ci { width: 40px; height: 40px; background: var(--red); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 16px; }
.contact-row strong { display: block; font-size: 13px; color: var(--gray); font-weight: 400; }
.contact-row p { font-size: 15px; color: var(--black); font-weight: 500; }
.contact-row a { color: var(--blue); }
.contact-row a:hover { color: var(--red); }

/* CONTACT FORM */
.contact-form h3 { font-size: 22px; font-weight: 700; margin-bottom: 20px; color: var(--black); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--gray-dark); margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
  color: var(--black);
  background: var(--white);
  transition: border-color 0.2s;
  outline: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--red); }
.form-group textarea { min-height: 120px; resize: vertical; }
.form-submit {
  background: var(--red);
  color: var(--white);
  border: none;
  padding: 12px 32px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  font-family: inherit;
}
.form-submit:hover { background: var(--red-dark); transform: translateY(-1px); }
.form-msg { margin-top: 12px; padding: 10px 16px; border-radius: 4px; font-size: 13px; }
.form-msg.success { background: #E8F5E9; color: #2E7D32; border: 1px solid #A5D6A7; }
.form-msg.error { background: #FFEBEE; color: #C62828; border: 1px solid #FFCDD2; }

/* ===== LIVE CHAT WIDGET ===== */
.chat-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}
.chat-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  transition: transform 0.2s, box-shadow 0.2s;
}
.chat-btn:hover { transform: scale(1.08); box-shadow: 0 6px 28px rgba(0,0,0,0.3); }
.chat-btn-line { background: #06C755; color: var(--white); }
.chat-btn-msg { background: var(--red); color: var(--white); }
.chat-btn-main { background: var(--blue); color: var(--white); }
.chat-panel {
  position: fixed;
  bottom: 90px;
  right: 24px;
  width: 340px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.18);
  z-index: 9998;
  overflow: hidden;
  display: none;
  flex-direction: column;
}
.chat-panel.open { display: flex; animation: slideUp 0.25s ease; }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.chat-panel-header {
  background: linear-gradient(135deg, var(--red-dark), var(--red));
  color: var(--white);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.chat-panel-header h4 { font-size: 15px; font-weight: 700; }
.chat-panel-header p { font-size: 12px; opacity: 0.8; }
.chat-close { background: transparent; border: none; color: var(--white); font-size: 18px; cursor: pointer; padding: 2px; opacity: 0.8; }
.chat-close:hover { opacity: 1; }
.chat-options { padding: 16px; }
.chat-option-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  background: var(--white);
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--black);
  transition: border-color 0.15s, background 0.15s;
  margin-bottom: 10px;
  text-decoration: none;
}
.chat-option-btn:hover { border-color: var(--red); background: #FFF5F5; color: var(--black); }
.chat-option-btn .icon { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.chat-option-btn .icon.line { background: #E8FAF0; color: #06C755; }
.chat-option-btn .icon.msg { background: #FFF0F0; color: var(--red); }
.chat-option-btn p { font-size: 11px; color: var(--gray); font-weight: 400; }
.chat-form { padding: 16px; border-top: 1px solid var(--border); }
.chat-form h5 { font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.chat-form input, .chat-form textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  font-size: 13px;
  font-family: inherit;
  margin-bottom: 10px;
  outline: none;
  color: var(--black);
}
.chat-form input:focus, .chat-form textarea:focus { border-color: var(--red); }
.chat-form textarea { min-height: 80px; resize: none; }
.chat-form button {
  width: 100%;
  background: var(--red);
  color: var(--white);
  border: none;
  padding: 10px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
}
.chat-form button:hover { background: var(--red-dark); }

/* ===== FOOTER ===== */
.footer {
  background: #FFFFFF;
  color: #444;
  padding: 60px 0 0;
  border-top: 3px solid #CC0000;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .logo-text { font-size: 42px; margin-bottom: 8px; }
.footer-brand .logo-sub span { color: #666; }
.footer-brand .logo-sub span:first-child { color: #111; }
.footer-desc { font-size: 13px; color: #666; line-height: 1.8; margin: 16px 0; }
.footer-social { display: flex; gap: 10px; }
.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #E0E0E0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  font-size: 15px;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.social-btn:hover { background: var(--red); border-color: var(--red); color: #fff; }
.footer-col h5 {
  color: #111;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid #F0F0F0;
  letter-spacing: 0.05em;
}
.footer-links { display: flex; flex-direction: column; gap: 9px; }
.footer-links a { font-size: 13px; color: #666; transition: color 0.2s, padding-left 0.2s; }
.footer-links a:hover { color: #CC0000; padding-left: 4px; }
.footer-contact-item { display: flex; gap: 10px; margin-bottom: 14px; align-items: flex-start; font-size: 13px; }
.footer-contact-item .ic { color: var(--red); margin-top: 1px; flex-shrink: 0; }
.footer-contact-item a { color: #666; }
.footer-contact-item a:hover { color: #CC0000; }
.footer-bottom {
  border-top: 1px solid #E8E8E8;
  background: #F8F8F8;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: #888;
}
.footer-bottom a { color: #999; }
.footer-bottom a:hover { color: #CC0000; }

/* ===== BREADCRUMB ===== */
.breadcrumb { background: var(--gray-light); border-bottom: 1px solid var(--border); padding: 10px 0; }
.breadcrumb-list { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.breadcrumb-list li { font-size: 13px; color: var(--gray); display: flex; align-items: center; gap: 6px; }
.breadcrumb-list li::after { content: '›'; color: var(--gray); }
.breadcrumb-list li:last-child::after { display: none; }
.breadcrumb-list a { color: var(--blue); }
.breadcrumb-list a:hover { color: var(--red); }
.breadcrumb-list li:last-child { color: var(--red); }

/* ===== PAGE HEADER ===== */
.page-hero {
  background: linear-gradient(135deg, #F5F5F5 0%, #ECECEC 100%);
  color: #1a1a1a;
  padding: 36px 0 32px;
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid #CC0000;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23CC0000' fill-opacity='0.04' fill-rule='evenodd'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E");
}
.page-hero h1 { font-family: 'Rajdhani', sans-serif; font-size: 44px; font-weight: 700; position: relative; color: #111; }
.page-hero p { font-size: 15px; color: #666; margin-top: 8px; position: relative; }

/* ===== PRODUCT TABLE ===== */
.product-table-wrap { overflow-x: auto; border-radius: 8px; border: 1px solid var(--border); box-shadow: var(--shadow); }
.product-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.product-table th {
  background: var(--red);
  color: var(--white);
  padding: 12px 16px;
  text-align: left;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.product-table td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--gray-dark);
}
.product-table tr:hover td { background: #FFF5F5; }
.product-table tr:last-child td { border-bottom: none; }
.pdf-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--red);
  color: var(--white);
  padding: 5px 12px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 600;
  transition: background 0.2s;
}
.pdf-link:hover { background: var(--red-dark); color: var(--white); }

/* ===== UTILITIES ===== */
.text-red { color: var(--red); }
.text-blue { color: var(--blue); }
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.pb-0 { padding-bottom: 0; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-visual { width: 420px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .topbar .container { flex-direction: column; text-align: center; }
  .header-inner { flex-wrap: wrap; align-items: center; gap: 10px; }
  .logo { order: 1; flex-shrink: 1; }
  /* 語言切換按鈕：縮小只顯示一個字 */
  .lang-btn { order: 2; margin-left: auto; flex-shrink: 0; font-size: 10px; padding: 4px 7px !important; }
  .lang-btn i { display: none; }
  .lang-btn .lang-full { display: none; }
  .lang-btn .lang-short { display: inline; }
  /* 搜尋框：獨佔下一行 */
  .header-search { max-width: 100%; order: 3; flex: 0 0 100%; }
  .header-actions { display: none; }
  .logo-text { font-size: 38px; }
  .nav-list { display: none; flex-direction: column; }
  .nav-list.open { display: flex; }
  .main-nav { position: relative; }
  .nav-toggle { display: flex; }
  .nav-toggle-wrap { display: flex; justify-content: flex-end; padding: 8px 0; }
  .nav-link { padding: 12px 16px; }
  .dropdown-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border-top: none; border-left: 3px solid var(--red); margin-left: 20px; display: none; border-radius: 0; }
  .nav-item.open .dropdown-menu { display: block; }
  .hero { padding: 40px 0; }
  .hero-inner { flex-direction: column; gap: 30px; }
  .hero h1 { font-size: 38px; }
  .hero-visual { width: 100%; max-width: 480px; }
  .section-title { font-size: 28px; }
  .product-categories { grid-template-columns: 1fr 1fr; }
  .features { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .chat-panel { width: calc(100vw - 48px); right: 12px; }
  .chat-fab { right: 16px; bottom: 16px; }
  .form-row { grid-template-columns: 1fr; }
  .hide-mobile { display: none !important; }
  .about-grid { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 480px) {
  .product-categories { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .catalog-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { gap: 24px; }
  .hero-stat strong { font-size: 28px; }
}

/* ===== LANG SWITCH BUTTON ===== */
.lang-switch {
  display: flex;
  align-items: center;
  border-radius: 4px;
  overflow: hidden;
  border: 1.5px solid rgba(0,51,153,0.4);
  flex-shrink: 0;
}
.lang-switch a {
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--gray);
  text-decoration: none;
  background: transparent;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
  line-height: 1;
}
.lang-switch a:hover { background: var(--gray-light); color: var(--red); }
.lang-switch a.active { background: var(--red); color: #fff; }
.lang-switch span { color: #ccc; font-size: 10px; }

@media (max-width: 768px) {
  .lang-switch { margin-left: auto; }
  .header-actions .lang-switch { display: flex !important; }
}
