/* 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-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 {
  display: grid;
  grid-template-columns: 204px 1fr 20px;
  gap: 0;
  margin: 16px 0
}

.focus-media img {
  width: 204px;
  height: auto;
  display: block
}

.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%
  }
}

/* === Contact 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
}

/* Contact window (聯絡窗口) */
.contact-window {
  width: 88%;
  margin: 0 auto
}

.contact-window h3 {
  margin: 0 0 6px;
  font-size: 14px;
  color: #f60
}

.contact-card {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start
}

.contact-card .dot {
  width: 13px;
  height: 11px
}

/* Dotted separator */
.dotline {
  border: none;
  border-top: 1px dotted #bbb;
  margin: 12px auto;
  width: 88%
}

/* Message board form */
.contact-form-main {
  width: 88%;
  margin: 0 auto
}

.form-note {
  color: #7a7a7a;
  font-size: 12px;
  text-align: right
}

.form-grid {
  display: grid;
  grid-template-columns: 3% 20% 1fr;
  gap: 10px 12px;
  align-items: center;
  border-top: 1px dotted #bbb;
  padding-top: 8px
}

.form-row {
  display: contents
}

.form-bullet {
  display: flex;
  align-items: center;
  justify-content: center
}

.form-label {
  font-weight: 700
}

.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center
}

.input,
.textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 13px
}

.textarea {
  min-height: 120px;
  resize: vertical
}

.form-hint {
  color: #114e9e;
  font-size: 13px
}

.required {
  color: #f60;
  margin-left: 4px
}

/* Captcha placeholder */
.captcha {
  height: 60px;
  width: 120px;
  border: 1px dashed #c7ddf4;
  background: #f5faff;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #114e9e;
  font-size: 12px
}

/* Submit row */
.form-actions {
  display: flex;
  gap: 12px;
  align-items: center
}

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

.btn.secondary {
  background: #777
}

/* Right/Left side inherited；只做列表樣式補強 */
.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
}