
/* ========================================================== */
/* 一、 圖片設定區塊（只影響圖片尺寸與顯示框，不影響文字）      */
/* ========================================================== */

/* [圖片位置] 最新產品區塊縮圖（首頁「認識新款設備」列表圖片） */
.news-image img {
    width: 100% !important;
    height: 200px !important;       /* 圖片高度，可依需求改為 180px 或 220px */
    object-fit: contain !important;  /* 完整顯示圖片不裁切 */
}


/* ========================================================== */
/* 二、 文字設定區塊（只影響字體大小、粗細、行距與替換文字）      */
/* ========================================================== */

/* [文字位置] 全站一般段落與產品說明內文（p、文章內容、產品頁段落） */
body, p, .entry-content, .single-product p {
    font-size: 16px !important;      /* 內文字體大小 */
    line-height: 1.8 !important;     /* 行距 */
}

/* [文字位置] 客製/說明文章區塊文字（.prose 區塊內文） */
.prose {
    font-size: 17px !important;      /* 字體大小 */
    font-weight: 600 !important;     /* 字體粗細（600 半粗、700 粗體） */
}

/* [文字位置] 產品詳細頁右側說明文字（.detail-description） */
.detail-description {
    font-size: 16px;                 /* 產品說明文字大小 */
    line-height: 1.8;                /* 產品說明行距 */
}

/* [文字位置] 首頁 Hero 標註左半邊（顯示「專業製造的起點」，避免出現多餘 1980） */
.hero-note b {
    font-size: 0 !important;
    line-height: 1.5 !important;
    font-weight: 700 !important;
    letter-spacing: normal !important;
    margin-right: 8px !important;
}

.hero-note b::before {
    content: "專業製造的起點" !important; /* 左側文字內容 */
    font-size: 16px !important;        /* 左側文字大小（桌機） */
    line-height: 1.5 !important;
    font-weight: 700 !important;
}

.hero-note b::after {
    content: none !important;
    display: none !important;
}

/* [文字位置] 首頁 Hero 標註右半邊（「用心，延續至每個細節。」） */
.hero-note span {
    font-size: 0 !important;
    line-height: 1.5 !important;
    font-weight: 700 !important;
}

.hero-note span::before {
    content: "用心，延續至每個細節。" !important; /* 右側文字內容 */
    font-size: 14px !important;               /* 右側文字大小 */
    line-height: 1.5 !important;
    font-weight: 700 !important;
}

@media (max-width: 767px) {
    .hero-note b::before {
        font-size: 15px !important;    /* 手機版左側文字大小 */
    }
}

/* [文字位置] 產品內頁上方麵包屑導覽（首頁 / 產品總覽 / 分類 / 品名） */
.breadcrumb, .breadcrumb a {
    font-size: 15px !important;      /* 麵包屑文字大小 */
}

/* [文字位置] 產品內頁分類標籤文字（例如「烤漆儀器推車」標籤） */
.tag {
    font-size: 14px !important;      /* 分類標籤字體大小 */
    padding: 4px 10px !important;    /* 標籤內側留白（上下 4px、左右 10px） */
}

/* [文字位置] 產品內頁規格明細清單（產品分類、樣式照片等欄位文字） */
.specs,
.specs dt,
.specs dd {
    font-size: 15px !important;      /* 規格名稱與規格內容字體大小 */
    line-height: 1.6 !important;     /* 規格列行距 */
}

/* [文字位置] 導覽列主選單連結文字（產品總覽、最新產品、客製服務、關於穎鴻） */
.nav a, .nav.open a {
    font-size: 17px !important;      /* 導覽選單文字大小 */
}

/* [文字位置] 導覽列（Header）品牌中文名稱 */
.header .brand strong {
    font-size: 0 !important;
    visibility: hidden !important;
}

.header .brand strong::after {
    content: "穎鴻不銹鋼器具有限公司" !important; /* 導覽列中文公司名稱 */
    font-size: 18px !important;                 /* 導覽列中文大小 */
    font-weight: 700 !important;
    color: #1a2b4c !important;
    visibility: visible !important;
    display: inline-block !important;
    white-space: nowrap !important;
}

/* [文字位置] 導覽列（Header）品牌英文副標題 */
.header .brand small {
    font-size: 0 !important;
    visibility: hidden !important;
}

.header .brand small::after {
    content: "Ying-Hong Stainless Steel Co., LTD." !important; /* 導覽列英文名稱 */
    font-size: 11px !important;                              /* 導覽列英文大小 */
    font-weight: 500 !important;
    color: #4a5568 !important;
    letter-spacing: 0.5px !important;
    white-space: nowrap !important;
    display: inline-block !important;
    visibility: visible !important;
}

/* [文字位置] 頁尾（Footer）品牌中文名稱（深色背景用白色字） */
.footer .brand strong {
    font-size: 0 !important;
    visibility: hidden !important;
}

.footer .brand strong::after {
    content: "穎鴻不銹鋼器具有限公司" !important; /* 頁尾中文公司名稱 */
    font-size: 18px !important;                 /* 頁尾中文大小 */
    font-weight: 700 !important;
    color: #ffffff !important;
    visibility: visible !important;
    display: inline-block !important;
    white-space: nowrap !important;
}

/* [文字位置] 頁尾（Footer）品牌英文副標題 */
.footer .brand small {
    font-size: 0 !important;
    visibility: hidden !important;
}

.footer .brand small::after {
    content: "Ying-Hong Stainless Steel Co., LTD." !important; /* 頁尾英文名稱 */
    font-size: 11px !important;                              /* 頁尾英文大小 */
    font-weight: 500 !important;
    letter-spacing: 0.5px !important;
    white-space: nowrap !important;
    display: inline-block !important;
    visibility: visible !important;
}

/* [文字位置] 頁尾（Footer）聯絡資訊、連結與版權文字 */
.footer p, .footer a, .footer li {
    font-size: 14px !important;      /* 頁尾一般文字與連結大小 */
}

/* 只隱藏「02 客製器械盒」卡片原本的圖片，其他卡片完全不動 */
.category-tile[href*="category=cases"] > img {
  opacity: 0;
  pointer-events: none;
}

/* 確保「02 客製器械盒」卡片有相對定位與防溢出基準 */
.category-tile[href*="category=cases"] {
  position: relative;
  overflow: hidden;
  min-width: 0;
}

/* 用 ::after 在右下角放上正式外網圖片（桌面版尺寸） */
.category-tile[href*="category=cases"]::after {
  content: "";
  position: absolute;
  right: 24px;
  bottom: 24px;
  width: 145px;
  height: 112px;
  max-width: calc(100% - 36px);
  max-height: calc(100% - 36px);
  background-image: url("https://ying-hong.com/assets/media/13d2d359340090dc349501e34f82e9c5b7a143e7498f7a58670e79800aeabaa3.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: right bottom;
  pointer-events: none;
}

/* 手機版：縮小外網圖片尺寸與右下角邊距，避免超出卡片左邊界或蓋到文字 */
@media (max-width: 767px) {
  .category-tile[href*="category=cases"]::after {
    right: 12px;
    bottom: 12px;
    width: 84px;
    height: 65px;
    max-width: calc(100% - 20px);
    max-height: calc(100% - 20px);
  }
}

/* 1. 讓官方 LINE 連結與左側 LINE QR Code 往右移，對齊／靠近下方 LINE ID 文字 */
.contact-panel .social-links > a:nth-child(1),
.contact-panel .qr-row > :nth-child(1) {
  margin-left: 50px;
}

/* 2. 維持原本 YouTube 連結與右側 QR Code 靠右但再往左退一點 */
.contact-panel .social-links > a:nth-child(2),
.contact-panel .qr-row > :nth-child(2) {
  margin-left: auto;
  margin-right: 28px;
}

/* 手機版微調間距，避免擠壓或換行過寬 */
@media (max-width: 767px) {
  .contact-panel .social-links > a:nth-child(1),
  .contact-panel .qr-row > :nth-child(1) {
    margin-left: 12px;
  }

  .contact-panel .social-links > a:nth-child(2),
  .contact-panel .qr-row > :nth-child(2) {
    margin-left: auto;
    margin-right: 12px;
  }
}

/* 讓 FAX 傳真、電話與公司地址字級一致放大，並同步支援窄螢幕與手機版 */
.contact-lines p,
.contact-lines address {
  font-size: 21px !important;
  line-height: 1.5 !important;
  margin: 0 !important;
}

@media (max-width: 800px) {
  .contact-lines p,
  .contact-lines address {
    font-size: 21px !important;
  }
}

@media (max-width: 767px) {
  .contact-lines p,
  .contact-lines a,
  .contact-lines address {
    font-size: 20px !important;
  }
}

/* 放大詢問清單文字框（#inquiry-text）內的文字 */
.inquiry-box textarea,
#inquiry-text {
  font-size: 16px !important;
  line-height: 1.75 !important;
}

@media (max-width: 767px) {
  .inquiry-box textarea,
  #inquiry-text {
    font-size: 15px !important;
    line-height: 1.7 !important;
  }
}

/* 放大首頁 intro-band 區塊的「從需求出發，讓設備各就其位。」strong 文字 */
body .intro-band strong {
  font-size: 16px !important;
  line-height: 1.5 !important;
}

@media (max-width: 800px) {
  body .intro-band strong {
    font-size: 15px !important;
  }
}

@media (max-width: 767px) {
  body .intro-band strong {
    font-size: 14px !important;
  }
}

