/* 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;
  gap: var(--gap);
  padding: 8px 0
}

.brand-logo {
  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 250px;
  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%
  }
}

/* === Testimony 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 topic (左圖右文) */
.focus-box {
  display: grid;
  justify-items: center;
  grid-template-columns: 10rem 1fr 20px;
  gap: 0;
  align-items: center;
  margin: 12px 0;
  background: #fff
}

.focus-left img {
  width: 100%;
  border: 1px solid #dcdcdc;
  padding: 2px
}

.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;
  line-height: 1.8
}

.focus-right {
  width: 20px
}

/* Testimony list */
.testimony-list {
  width: 88%;
  margin: 0 auto
}

.titem {
  display: grid;
  grid-template-columns: 65px 1fr;
  gap: 12px;
  align-items: flex-start;
  padding: 8px 0;
  border-top: 1px dotted #bbb
}

.titem:first-child {
  border-top: none
}

.tavatar {
  width: 57px;
  height: 55px;
  object-fit: cover
}

.tmeta {
  display: flex;
  flex-direction: column;
  gap: 2px
}

.trole {
  color: #0d6efd;
  font-weight: 700
}

.tname {
  color: #f60;
  font-weight: 700
}

.tcontent {
  font-size: 13px;
  color: #222
}

.tcontent a {
  color: #222;
  text-decoration: underline
}

/* Right/Left sidebar extras */
.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
}



/* === Copied from index (3).css: Right column styles === */

.rightbox {
  border: 1px solid var(--line);
  border-radius: 4px;
  margin: 10px 0;
  padding: 8px 10px
}

.rightbox .titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px
}

.flow-vertical {
  display: grid;
  gap: 10px
}

.flow-row {
  display: grid;
  grid-template-columns: 32px 1fr 32px;
  gap: 6px;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px dotted #ddd
}

.flow-row:last-child {
  border-bottom: none
}

.flow-num {
  width: 26px
}

.flow-ico {
  height: 28px
}

.testimony-long .person {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 8px 0
}

.testimony-long .avatar {
  width: 57px;
  height: 55px;
  border: 0
}

.testimony-long .name {
  color: #f60;
  font-weight: 700;
  margin-bottom: 2px
}

.benefits .item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px dotted #eee
}

.benefits .badge {
  min-width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid #7bc67b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700
}

.benefits .desc {
  font-size: 12px
}

.project-list ol {
  margin: 0;
  padding-left: 20px
}

.project-list li {
  padding: 6px 0;
  border-bottom: 1px dotted #ddd
}

.project-list li:last-child {
  border-bottom: none
}

.client-list ul {
  margin: 0;
  padding-left: 20px
}

.client-list li {
  padding: 6px 0;
  border-bottom: 1px dotted #ddd
}

.client-list li:last-child {
  border-bottom: none
}

/* Right sidebar contact */
.contact-list .contact-item {
  display: flex;
  align-items: center;
  gap: 6px
}


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


/* === Aliases so existing Testimony markup picks up the same right-rail look === */
.sidebar.right .box {
  border: 1px solid var(--line);
  border-radius: 4px;
  margin: 10px 0;
  padding: 8px 10px;
  background: #fff
}

.sidebar.right .box .box-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px
}

.sidebar.right .box .box-title img {
  height: 14px;
  width: auto
}

.sidebar.right .testimony .testimonial {
  display: flex;
  gap: 10px;
  align-items: flex-start
}

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