html,
body {
  font-family: "Microsoft JhengHei", "微軟正黑體", sans-serif !important;
  font-size: 16px;
  line-height: 1.6;
  background-color: #fff;
  color: #333;
}

body * {
  font-family: "Microsoft JhengHei", "微軟正黑體", sans-serif !important;
}

.brand-name {
  color: #357ABD;
  font-weight: bold;
  white-space: nowrap;
}

.amc-text {
  color: #357ABD;
  font-style: italic;
  font-weight: bold;
}

[data-role="header"] h1 .amc-text,
[data-role="header"] h1 .brand-name {
  color: #FFFFFF !important;
}

.content-brand {
  line-height: 1.4;
  margin: 18px 0 28px;
  text-align: center;
}

.content-brand-name {
  color: #357ABD;
  font-size: 24px;
  font-style: italic;
  font-weight: bold;
  line-height: 1.4;
}

.content-brand-en {
  color: #357ABD;
  font-size: 18px;
  font-style: italic;
  line-height: 1.4;
}

.content-brand > div {
  white-space: nowrap;
}

img {
  max-width: 100%;
  height: auto;
}

/* Google Tag Manager fallback iframe should remain hidden without inline styles. */
noscript iframe[src*="googletagmanager.com/ns.html"] {
  display: none;
  visibility: hidden;
  width: 0;
  height: 0;
}

/* Keep structured data helper blocks hidden after removing inline styles. */
[vocab] {
  display: none;
}

html .marquee {
  overflow: hidden;
  margin: 10px 0;
}

html marquee {
  max-width: 100%;
  font-size: 20px;
  font-weight: bold;
  color: #357ABD;
}

#sidebar .Ptitle {
  font-size: 18px;
  font-weight: bold;
  color: #357ABD;
}

#sidebar .Ptitle a,
#sidebar .sideTitle {
  color: #357ABD;
  font-size: 18px;
  font-weight: bold;
}

#sidebar .sideA {
  font-size: 16px;
  line-height: 20px;
  min-height: 20px;
}

#corplist {
  display: block;
  padding-left: 0;
}

form.contact-form {
  margin-top: 12px;
}

form.contact-form .contact-form-table {
  border-collapse: separate;
  border-spacing: 0;
  max-width: 580px;
  table-layout: fixed;
  width: 100%;
}

form.contact-form .contact-form-table td {
  padding: 8px 8px;
  vertical-align: middle;
}

form.contact-form .contact-form-table th {
  border: 0;
  box-sizing: border-box;
  color: #333;
  font-weight: normal;
  max-width: 160px;
  min-width: 160px;
  padding: 8px 15px 8px 8px;
  text-align: right;
  vertical-align: middle;
  width: 160px;
}

form.contact-form .contact-form-table th + td {
  padding-left: 0;
}

form.contact-form .contact-form-table tr:has(textarea) th,
form.contact-form .contact-form-table tr:has(textarea) td {
  vertical-align: top;
}

form.contact-form .contact-form-table tr:has(textarea) th {
  line-height: 1.6;
  padding-top: 10px;
}

form.contact-form .contact-form-table tr:has(textarea) th + td {
  padding-top: 8px;
}

form.contact-form .contact-form-table td.submit-cell {
  max-width: none;
  min-width: 0;
  padding: 14px 8px 8px;
  text-align: center;
  width: auto;
}

form.contact-form input[type="text"],
form.contact-form textarea {
  border: 1px solid #d6d6d6;
  border-radius: 5px;
  box-sizing: border-box;
  font-size: 16px;
  max-width: 100%;
  padding: 7px 9px;
  width: 100%;
}

form.contact-form textarea {
  min-height: 110px;
  resize: vertical;
}

form.contact-form input[type="text"]:focus,
form.contact-form textarea:focus {
  border-color: #4A90E2;
  box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.18);
  outline: none;
}

form.contact-form input[type="submit"] {
  background-color: #4A90E2;
  border: 1px solid #357ABD;
  border-radius: 5px;
  color: #fff;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  padding: 7px 26px;
}

form.contact-form input[type="submit"]:hover {
  background-color: #357ABD;
}

form.contact-form .submit-cell {
  text-align: center;
}

form.contact-form .required-star {
  color: #FF0000;
  font-weight: bold;
}

form.contact-form .err {
  border-color: #FF0000 !important;
}

form.contact-form .alert {
  color: #FF0000;
  display: inline-block;
  margin-left: 8px;
}

.clear,
.clearfix {
  clear: both;
}

.thanks-page {
  color: #4A90E2;
  margin: 80px auto;
  max-width: 720px;
  padding: 0 20px;
  text-align: center;
}

.thanks-icon {
  align-items: center;
  background-color: #27ae60;
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  font-size: 48px;
  font-weight: bold;
  height: 82px;
  justify-content: center;
  line-height: 1;
  margin-bottom: 22px;
  width: 82px;
}

.thanks-page h1 {
  color: #4A90E2;
  font-size: 28px;
  margin: 0 0 12px;
}

.thanks-page p {
  color: #4A90E2;
  font-size: 18px;
  margin: 0 0 22px;
}

.thanks-button {
  background-color: #4A90E2;
  border-radius: 6px;
  color: #fff !important;
  display: inline-block;
  font-weight: bold;
  padding: 10px 24px;
  text-decoration: none;
}

.thanks-button:hover {
  background-color: #357ABD;
}

#preferent .ui-icon {
  background: url(../../yellowpageMobile/images/preferent.png) 50% 50% no-repeat;
  background-size: 31px 22px;
  height: 22px;
  width: 31px;
  margin-left: -15px;
  -moz-border-radius: 0;
}

#base .ui-icon {
  background: url(../../yellowpageMobile/images/base.png) 50% 50% no-repeat;
  background-size: 31px 22px;
  height: 22px;
  width: 31px;
  margin-left: -15px;
  -moz-border-radius: 0;
}

#products .ui-icon {
  background: url(../../yellowpageMobile/images/products.png) 50% 50% no-repeat;
  background-size: 31px 22px;
  height: 22px;
  width: 31px;
  margin-left: -15px;
  -moz-border-radius: 0;
}

#contact .ui-icon {
  background: url(../../yellowpageMobile/images/contact.png) 50% 50% no-repeat;
  background-size: 31px 22px;
  height: 22px;
  width: 31px;
  margin-left: -15px;
  -moz-border-radius: 0;
}

/* 表頭橫幅：以塑膠粒照片取代舊版 BUSINESS / GLOBAL 階梯合成圖（header.jpg） */
#idx_header {
  background-image: url(../../images/header-amxc-plastic-pellets.png);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

/* 頂部導覽：上移避免與 header 圖重疊，淺灰底提高辨識度 */
#idx_menu {
  margin-top: 10px;
  margin-right: 24px;
  padding: 0;
  width: -webkit-fit-content;
  width: fit-content;
  max-width: calc(100% - 48px);
  background-color: rgba(245, 245, 245, 0.28);
  border-radius: 0;
  box-shadow: none;
}

#idx_menu li {
  margin-right: 1px;
}

#idx_menu li:last-child {
  margin-right: 0;
}

/* 頂部導覽：黑體字（繁中無襯線）、深黑字色 */
#idx_menu .menuA:link,
#idx_menu .menuA:visited {
  font-family: "Microsoft JhengHei", "微軟正黑體", "PingFang TC", "Heiti TC", "Noto Sans TC", "Source Han Sans TC", sans-serif !important;
  font-weight: bold !important;
  color: #1a1a1a !important;
}

#idx_menu .menuA:hover,
#idx_menu .menuA:active {
  font-family: "Microsoft JhengHei", "微軟正黑體", "PingFang TC", "Heiti TC", "Noto Sans TC", "Source Han Sans TC", sans-serif !important;
  font-weight: bold !important;
  color: #000000 !important;
}

/* 產品頁：說明文字在浮動圖片右側整欄排版 */
.log_content .product .ContentSubTitle,
.log_content .product .ContentDesc {
  overflow: hidden;
}

.product-desc-formatted {
  line-height: 1.65;
  word-break: normal;
  overflow-wrap: break-word;
}

.product-desc-section {
  margin: 0 0 1em;
}

.product-desc-section:last-child {
  margin-bottom: 0;
}

/* 產品頁長篇說明（如 SGL）：段落排版、圖片不撐破版面 */
.product-desc-lead {
  margin: 0 0 0.35em;
  line-height: 1.5;
}
.product-desc-prose {
  margin: 0 0 0.85em;
  line-height: 1.75;
  word-break: normal;
  overflow-wrap: break-word;
}
.product-desc-figures {
  margin: 0;
}
.product-desc-figures img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}
