#wrapper {
	margin: auto;
	width: 990px;
	clear: both;
	position: relative;
	z-index: 0;
}
#mainhead {
	width: 100%;
	position: relative;
	z-index: 0;
}
#mainbody {
	width: 100%;
	position: relative;
	z-index: 0;
}
#mainfoot {
	width: 100%;
	position: relative;
	z-index: 0;
}
#header {
	position: relative;
	z-index: 999;
}
#footer {
	position: relative;
	z-index: 0;
}
#main {
	position: relative;
	z-index: 0;
}
#main .row_01 {
}
#main table.mainContain {
}
td.col_01 {
	vertical-align: top;
}
td.col_02 {
	vertical-align: top;
}
td.col_03 {
	vertical-align: top;
}

.page_list .postcontent li a div.center {
    font-size: 20px;
    margin-top: 7px;
}

/* 上版產品搜尋 */
@media (min-width: 992px) {
  #primary-menu > ul { display: flex; align-items: center; }
  #primary-menu ul li.topnav-search {
    display: inline-flex;
    align-items: center;
    margin-left: 12px;
    padding: 0;
    vertical-align: middle;
    height: 100%;
    align-self: center;
  }
}
#primary-menu ul li.topnav-search > a { display: none; }
.top-search-form {
  display: flex;
  align-items: center;
  background: #f5f5f5;
  border: 1px solid #e2e2e2;
  border-radius: 999px;
  padding: 2px 4px 2px 14px;
  height: 34px;
  margin: 0;
  transition: all .25s ease;
}
.top-search-form:focus-within {
  background: #fff;
  border-color: #c00;
  box-shadow: 0 2px 8px rgba(204,0,0,.15);
}
.top-search-form input[type="text"] {
  width: 140px;
  height: 28px;
  border: 0;
  background: transparent;
  outline: none;
  font-size: 13px;
  color: #333;
  padding: 0;
  box-shadow: none;
}
.top-search-form input[type="text"]::placeholder { color: #999; transition: opacity .2s ease; }
.top-search-form input[type="text"]:focus::placeholder { opacity: 0; }
.top-search-form input[type="text"]:focus::-webkit-input-placeholder { color: transparent; }
.top-search-form input[type="text"]:focus::-moz-placeholder { color: transparent; }
.top-search-form input[type="text"]:focus:-ms-input-placeholder { color: transparent; }
.top-search-form button {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: #c00;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background .2s ease;
}
.top-search-form button:hover { background: #900; }
.top-search-form button i { font-size: 13px; line-height: 1; }
@media (max-width: 991px) {
  #primary-menu ul li.topnav-search {
    display: block;
    padding: 12px 15px 20px;
    border: 0;
    background: #fafafa;
  }
  #primary-menu ul li.topnav-search::before,
  #primary-menu ul li.topnav-search::after { display: none; }
  .top-search-form {
    width: 100%;
    height: 40px;
    padding: 3px 5px 3px 16px;
    background: #fff;
    border-color: #ddd;
  }
  .top-search-form input[type="text"] { width: 100%; flex: 1; height: 32px; font-size: 14px; }
  .top-search-form button { width: 32px; height: 32px; flex: 0 0 32px; }
}
.search-keyword-tip {
  margin: 0 0 20px 0;
  padding: 12px 18px;
  background: #f7f7f7;
  border-left: 3px solid #c00;
  font-size: 14px;
  border-radius: 2px;
}
.search-keyword-tip strong { color: #c00; }
.search-empty {
  padding: 60px 20px;
  text-align: center;
  color: #999;
  font-size: 16px;
}

/* 首頁服務項目輪播（oc-clients）— 圖片原始比例自適應，所有 item 上下置中 */
#oc-clients .owl-stage {
  display: flex;
  align-items: center;
}
#oc-clients .owl-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: auto;
}
#oc-clients .oc-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
#oc-clients .oc-item a {
  display: inline-block;
  position: relative;
  line-height: 0;
}
#oc-clients .oc-item img {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
}

/* 首頁精選作品區塊美化 */
.index-portfolio-section {
  position: relative;
  padding: 80px 0 90px !important;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'><path d='M0 39.5h40M19.5 0v40' stroke='%23ffffff' stroke-opacity='0.55' stroke-width='1' fill='none'/><circle cx='20' cy='20' r='1' fill='%23c00' fill-opacity='0.08'/></svg>"),
    linear-gradient(180deg, #eef1f5 0%, #dde3eb 100%) !important;
  background-repeat: repeat, no-repeat;
}
/* 讓卡片 hover 浮起陰影不被裁切：保留 owl-stage-outer overflow hidden（避免相鄰張數露出），改用 padding 預留空間 */
.index-portfolio-section .owl-stage-outer {
  padding: 16px 0 28px;
  margin: -16px 0 -28px;
}
.index-portfolio-section::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent 0%, #c00 50%, transparent 100%);
  opacity: .4;
}
.index-section-heading {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}
.index-section-heading h2 {
  margin: 0 0 8px;
  font-size: 32px;
  font-weight: 700;
  color: #222;
  letter-spacing: 2px;
  position: relative;
  display: inline-block;
}
.index-section-heading h2 strong { color: #c00; }
.index-section-subtitle {
  display: block;
  font-size: 13px;
  letter-spacing: 6px;
  color: #999;
  text-transform: uppercase;
  font-weight: 300;
}
.index-section-divider {
  width: 60px;
  height: 3px;
  background: #c00;
  margin: 18px auto 0;
  border-radius: 2px;
}
.index-portfolio-section .iportfolio {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,.06);
  transition: transform .35s ease, box-shadow .35s ease;
  margin: 8px 0 12px;
}
.index-portfolio-section .iportfolio:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(0,0,0,.15);
}
.index-portfolio-section .portfolio-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}
.index-portfolio-section .portfolio-image a {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}
.index-portfolio-section .portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.index-portfolio-section .iportfolio:hover .portfolio-image img {
  transform: scale(1.08);
}
.index-portfolio-section .portfolio-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.35) 100%);
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}
.index-portfolio-section .iportfolio:hover .portfolio-image::after { opacity: 1; }
.index-portfolio-section .portfolio-desc {
  padding: 18px 12px 16px;
  text-align: center;
}
.index-portfolio-section .portfolio-desc h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}
.index-portfolio-section .portfolio-desc h3 a {
  color: #333;
  text-decoration: none;
  transition: color .25s ease;
  position: relative;
  display: inline-block;
  padding-bottom: 4px;
}
.index-portfolio-section .portfolio-desc h3 a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  background: #c00;
  transition: all .3s ease;
  transform: translateX(-50%);
}
.index-portfolio-section .iportfolio:hover .portfolio-desc h3 a {
  color: #c00;
}
.index-portfolio-section .iportfolio:hover .portfolio-desc h3 a::after {
  width: 30px;
}
@media (max-width: 767px) {
  .index-portfolio-section { padding: 50px 0 60px !important; }
  .index-section-heading { margin-bottom: 30px; }
  .index-section-heading h2 { font-size: 24px; }
  .index-section-subtitle { font-size: 11px; letter-spacing: 4px; }
}

/* 首頁服務項目區塊美化（淺色） */
.index-service-section {
  position: relative;
  padding: 80px 0 90px !important;
  background: linear-gradient(180deg, #ffffff 0%, #f7f7f7 100%) !important;
  overflow: hidden;
}
.index-service-section::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent 0%, #c00 50%, transparent 100%);
  opacity: .35;
}
.index-section-heading-light h2 { color: #222; }
.index-section-heading-light h2 strong { color: #c00; }
.index-section-heading-light .index-section-subtitle { color: #999; }
.index-section-heading-light .index-section-divider { background: #c00; }
.index-service-section .index-service-title {
  margin: 30px auto 0 !important;
  padding: 18px 24px !important;
  max-width: 980px;
  text-align: center;
  font-size: 14px !important;
  line-height: 1.9;
  color: #555 !important;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 8px;
  letter-spacing: .5px;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.index-service-section #oc-clients {
  margin-top: 40px !important;
}
.index-service-section .oc-item {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #eee;
  box-shadow: 0 4px 12px rgba(0,0,0,.06);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.index-service-section .oc-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,.12);
  border-color: #c00;
}
.index-service-section .oc-item a { padding: 8px; box-sizing: border-box; }
@media (max-width: 767px) {
  .index-service-section { padding: 50px 0 60px !important; }
  .index-service-section .index-service-title {
    font-size: 13px !important;
    padding: 14px 16px !important;
    line-height: 1.8;
  }
}
