/* Products.css | HTML5 分離樣式 | UTF-8 */
:root {
  --container: 1175px;
  --gap: 16px;
  --gray: #f5f5f5;
  --line: #e1e1e1;
  --muted: #7a7a7a;
  --orange: #cd7f32;
  --green: #0a8f55;
  --red: #d00;
}

* {
  box-sizing: border-box
}

html,
body {
  margin: 0;
  padding: 0
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans TC', 'Microsoft JhengHei', Arial, sans-serif;
  color: #222;
  line-height: 1.6;
  background: #fff
}

/* Helpers */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 12px
}

.highlight {
  color: #ff7a00
}

.text-orange {
  color: var(--orange)
}

.text-green {
  color: var(--green)
}

.text-red {
  color: var(--red)
}

.muted,
.muted a {
  color: var(--muted)
}

.full-img {
  width: 100%;
  height: auto
}

.sr-only {
  position: absolute;
  left: -9999px
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
  background: #fff
}

.header-inner {
  display: grid;
  grid-template-columns: 212px 1fr 240px;
  align-items: center;
  padding: 8px 0
}

.brand-logo {
  max-height: 56px;
  height: auto;
  max-width: 180px;
  height: auto;
  display: block
}

.header-title .page-keyword {
  margin: 0;
  font-size: 20px;
  font-weight: 700
}

.header-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px
}

.share-icons {
  display: flex;
  gap: 6px
}

.share-pill {
  font-size: 12px;
  padding: 2px 8px;
  border: 1px solid #ddd;
  border-radius: 12px
}

.quick-links {
  display: flex;
  gap: 10px
}

.qlink {
  font-size: 12px;
  color: #111;
  text-decoration: none
}

.qlink:hover {
  text-decoration: underline
}

.site-nav {
  border-top: 1px solid var(--line)
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 0
}

.nav-item img {
  display: block;
  height: 24px
}

.nav-div {
  display: inline-block;
  width: 48px;
  height: 23px;
  background: url('images/com-menu-div.gif') no-repeat center/contain
}

/* Hero (滿版) */
.hero {
  width: 100%;
}

.hero-img {
  width: 100%;
  height: auto;
  display: block
}

/* Main layout */
.site-main {
  display: grid;
  grid-template-columns: 211px 1fr 221px;
  gap: var(--gap);
  padding: 16px 0
}

.sidebar.left,
.sidebar.right {
  background: var(--gray);
  border-right: 1px solid #ddd;
  padding: 12px
}

/* Boxes */
.box {
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid #ddd
}

.box-title {
  margin-bottom: 10px
}

/* Left side */
.link-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0
}

.link-list li {
  padding: 8px 0;
  border-bottom: 1px dotted #ccc
}

.text-link {
  color: #0a4aa6;
  text-decoration: none
}

.text-link:hover {
  text-decoration: underline
}

.taiwan-service {
  display: flex;
  gap: 10px;
  align-items: flex-start
}

.taiwan-service-text .welcome {
  color: var(--orange);
  margin: 0 0 6px
}

/* Contact form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 8px
}

.contact-form textarea,
.contact-form input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px
}

.btn {
  padding: 8px 12px;
  border: none;
  background: #333;
  color: #fff;
  border-radius: 6px;
  cursor: pointer
}

.btn:hover {
  opacity: .9
}

/* Content */
.content {
  padding-bottom: 24px
}

.content-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #ddd
}

.content-title-img {
  height: 16px;
  width: auto
}

.breadcrumb {
  font-size: 12px;
  color: #666;
  display: flex;
  align-items: center;
  gap: 6px
}

.breadcrumb img {
  height: 11px;
  width: auto
}

/* Focus article */
.focus-box {
  display: grid;
  justify-items: center;
  grid-template-columns: 10rem 1fr 20px;
  gap: 0;
  align-items: center;
  justify-items: center;
  margin: 12px 0;
  background: #fff
}

.focus-left img {
  width: 100%;
  border: 1px solid #dcdcdc;
  padding: 2px
}
.focus-text {
  background: url('images/com-focus-bg-1.gif') repeat-y;
  padding: 12px 16px
}

.focus-title {
  color: #114e9e;
  font-size: 18px;
  margin: 4px 0 8px
}

.dotline {
  border: none;
  border-top: 1px dotted #bbb;
  margin: 12px 0
}

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 8px 0
}

.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center
}

.card img {
  width: 185px;
  height: auto;
  border: 1px solid #ddd;
  padding: 2px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .05)
}

.card-title {
  margin: 6px 0 0
}

.card-title img {
  height: 13px;
  width: auto;
  vertical-align: middle
}

/* Pager */
.pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 8px 0;
  border-top: 1px solid #ddd
}

.pager-right {
  display: flex;
  gap: 8px;
  align-items: center
}

.pager .disabled {
  color: #aaa
}

.pager .current {
  font-weight: 700
}

.page-link {
  color: #0a4aa6;
  text-decoration: none
}

.page-link:hover {
  text-decoration: underline
}

/* Right side */
.testimony .testimonial {
  display: flex;
  gap: 10px;
  align-items: flex-start
}

.testimony img {
  width: 57px;
  height: 55px
}

.service-links,
.portfolio-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0
}

.service-links li,
.portfolio-list li {
  padding: 8px 0;
  border-bottom: 1px dotted #ccc
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: #fff
}

.footer-top {
  padding: 8px 0;
  border-bottom: 1px solid var(--line)
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 14px
}

.foot-link {
  color: #111;
  text-decoration: none
}

.foot-link:hover {
  text-decoration: underline
}

.foot-div {
  display: inline-block;
  width: 25px;
  height: 11px;
  background: url('images/com-tail-div.gif') no-repeat center/contain
}

.footer-bottom {
  display: grid;
  grid-template-columns: 152px 1fr 152px;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  background: var(--gray)
}

.fansio img {
  width: 106px;
  height: 42px
}

.footer-note {
  font-size: 12px;
  color: #666
}

.footer-note .support img {
  height: 23px;
  width: 20px;
  vertical-align: middle
}

/* Responsive */
@media (max-width: 1200px) {
  .container {
    max-width: 100%
  }

  .site-main {
    grid-template-columns: 1fr;
  }

  .sidebar.left,
  .sidebar.right {
    border-right: none
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .header-inner {
    grid-template-columns: 1fr;
    row-gap: 8px
  }

  
  .header-actions {
    align-items: flex-start
  }

  .nav-inner {
    flex-wrap: wrap
  }
}

@media (max-width: 640px) {
  .product-grid {
    grid-template-columns: 1fr
  }

  .focus {
    grid-template-columns: 1fr
  }

  .focus-media img {
    width: 100%
  }
}

/* === About page additions (built on Products.css base) === */

/* Full-width main under hero (一致設定) */
.site-main.container {
  max-width: 100%;
  padding-left: 12px;
  padding-right: 12px
}

/* Section header */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #ddd
}

.section-title-img {
  height: 16px;
  width: auto
}

/* Focus box (左圖右文) */
.focus-box {
  display: grid;
  grid-template-columns: 204px 1fr 20px;
  gap: 0;
  align-items: start;
  margin: 12px 0;
  background: #fff
}

.focus-left img {
  width: 204px;
  height: auto
}

.focus-mid {
  background: #f7fbff;
  padding: 10px 12px;
  border: 1px solid #d9ecff;
  border-left: none;
  border-right: none
}

.focus-mid h2 {
  margin: 0 0 6px;
  font-size: 13px;
  color: #114e9e
}

.focus-mid p {
  margin: 0;
  font-size: 12px
}

.focus-right {
  width: 20px
}

/* About list (icon + content with dotted separators) */
.about-list {
  width: 88%;
  margin: 0 auto
}

.about-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px dotted #bbb
}

.about-item:first-child {
  border-top: none
}

.about-item .icon {
  width: 80px;
  height: 70px;
  object-fit: contain
}

.about-item .text {
  font-size: 15px;
  color: #333
}

.about-item .text .label {
  color: #f60;
  font-weight: 700;
  display: block;
  margin-bottom: 6px
}

/* Right/Left side列表補強 */
.service-links,
.portfolio-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0
}

.service-links li,
.portfolio-list li {
  padding: 8px 0;
  border-bottom: 1px dotted #ccc
}