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

.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 — full width under hero */
.site-main.container {
  max-width: 100%;
  padding-left: 12px;
  padding-right: 12px
}

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

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

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

.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 {
  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;
  align-items: stretch;
  justify-items: center;
  grid-template-columns: 150px 1fr 20px;
  gap: 0;
  margin: 16px 0
}

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

/* Service blocks */
.service-block {
  margin: 8px 0 24px
}

.row {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 16px
}

.row.reverse {
  grid-template-columns: 200px 1fr
}

.row.align-center {
  align-items: center
}

.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px
}

.section-title .icon {
  width: 18px;
  height: 18px
}

.service-icon {
  width: 160px;
  height: 100px;
  object-fit: cover
}

.blue {
  color: #001EF0
}

.list {
  margin: 8px 0 0;
  padding-left: 18px
}

/* 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 (min-width:1280px) {
  .row {
    grid-template-columns: 1fr 240px
  }

  .row.reverse {
    grid-template-columns: 240px 1fr
  }
}

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

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

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

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

  .focus-media img {
    width: 100%
  }

  .row,
  .row.reverse {
    grid-template-columns: 1fr
  }
}