/* 全站共用頁尾樣式（對齊新版首頁 home.css 設計語彙，全部限定在 .ok1-footer 底下） */
.footer-wrapper.ok1-footer {
  --ft-ink: #1a2430;
  --ft-navy: #2c4058;
  --ft-blue: #446084;
  --ft-blue-d: #36506f;
  --ft-paper: #f5f7fa;
  --ft-paper-h: #edf2f7;
  --ft-line: #dde4ed;
  --ft-rule: #b8c5d4;
  --ft-text: #3b4756;
  --ft-muted: #627080;
  position: relative;
  width: 100%;
  background: var(--ft-paper);
  color: var(--ft-text);
  border-top: 1px solid var(--ft-line);
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14.5px;
  line-height: 1.7;
  letter-spacing: .02em;
  text-align: left;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

.footer-wrapper.ok1-footer:lang(en) {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 14.5px;
  line-height: 1.6;
  letter-spacing: 0;
}

.ok1-footer *,
.ok1-footer *::before,
.ok1-footer *::after {
  box-sizing: border-box;
}

.ok1-footer p,
.ok1-footer ul,
.ok1-footer li,
.ok1-footer dl,
.ok1-footer dt,
.ok1-footer dd {
  margin: 0;
  padding: 0;
}

.ok1-footer ul,
.ok1-footer li {
  list-style: none;
}

.ok1-footer dl {
  font-size: inherit;
  opacity: 1;
  text-transform: none;
}

.ok1-footer dt,
.ok1-footer dd {
  display: block;
  font-weight: 400;
  text-transform: none;
}

.ok1-footer a {
  color: inherit;
  text-decoration: none;
  background-color: transparent;
}

.ok1-footer a:hover {
  color: inherit;
}

.ok1-footer a:focus-visible {
  outline: 2px solid var(--ft-blue);
  outline-offset: 2px;
  border-radius: 2px;
}

.ok1-footer img {
  display: block;
  max-width: 100%;
  height: auto;
  opacity: 1;
  transition: none;
}

/* 外層容器（與首頁 .oh-wrap 同寬） */
.ok1-footer .ok1-ft-wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 36px 18px 28px;
}

/* 編輯式區塊小標（比照首頁 eyebrow，600 字重、不大寫粗黑） */
.ok1-footer .ok1-ft-title {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 16px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .06em;
  color: var(--ft-blue);
  text-transform: none;
}

.ok1-footer:lang(en) .ok1-ft-title {
  letter-spacing: .02em;
  text-transform: none;
}

.ok1-footer .ok1-ft-title::before {
  content: "";
  width: 18px;
  height: 1.5px;
  background: var(--ft-blue);
  flex: none;
}

.ok1-footer .ok1-ft-title a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ft-blue);
  transition: color .15s;
}

.ok1-footer .ok1-ft-title a:hover {
  color: var(--ft-navy);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

/* 上段：精選商品帶（細線格狀、3px 圓角、手機單欄橫排） */
.ok1-footer .ok1-ft-products {
  padding-bottom: 32px;
  border-bottom: 1px solid var(--ft-line);
}

.ok1-footer .ok1-ft-prod-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--ft-line);
  border: 1px solid var(--ft-line);
  border-radius: 3px;
  overflow: hidden;
}

.ok1-footer .ok1-ft-prod-item {
  display: flex;
  min-width: 0;
  background: #fff;
}

.ok1-footer .ok1-ft-prod-link {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 68px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ft-ink);
  transition: background-color .15s, color .15s;
}

.ok1-footer .ok1-ft-prod-link:hover {
  background: #fafbfd;
  color: var(--ft-blue);
}

.ok1-footer .ok1-ft-prod-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  max-width: 100px;
  max-height: 100px;
  padding: 4px;
  background: #fff;
  border: 1px solid #edf1f6;
  border-radius: 3px;
  overflow: hidden;
  flex: none;
}

.ok1-footer .ok1-ft-prod-thumb img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.ok1-footer .ok1-ft-prod-name {
  font-size: 14px;
  line-height: 1.45;
  font-weight: 500;
  color: inherit;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 中段：關於我們／聯絡 ＋ 醫療新知（手機堆疊） */
.ok1-footer .ok1-ft-main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding: 32px 0;
}

.ok1-footer .ok1-ft-about,
.ok1-footer .ok1-ft-news {
  min-width: 0;
}

.ok1-footer .ok1-ft-about-body {
  display: flex;
  flex-direction: column;
}

.ok1-footer .ok1-ft-company {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--ft-ink);
  margin-bottom: 6px;
}

.ok1-footer .ok1-ft-addr {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ft-text);
}

.ok1-footer .ok1-ft-contact {
  margin-top: 14px;
  border-top: 1px solid var(--ft-line);
}

.ok1-footer .ok1-ft-row {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--ft-line);
}

.ok1-footer .ok1-ft-label {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ft-muted);
}

.ok1-footer .ok1-ft-val {
  min-width: 0;
  font-size: 14.5px;
  line-height: 1.5;
}

.ok1-footer .ok1-ft-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ft-blue);
  font-weight: 500;
  overflow-wrap: anywhere;
  transition: color .15s;
}

.ok1-footer .ok1-ft-link:hover {
  color: var(--ft-navy);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.ok1-footer .ok1-ft-num {
  font-variant-numeric: tabular-nums;
}

.ok1-footer .ok1-ft-line {
  font-weight: 600;
  color: var(--ft-navy);
}

.ok1-footer .ok1-ft-line:hover {
  color: var(--ft-blue);
}

/* 醫療新知清單 */
.ok1-footer .ok1-ft-news-list {
  border-top: 1px solid var(--ft-line);
}

.ok1-footer .ok1-ft-news-item {
  border-bottom: 1px solid var(--ft-line);
}

.ok1-footer .ok1-ft-news-item a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ft-ink);
  transition: color .15s;
}

.ok1-footer .ok1-ft-news-item a:hover {
  color: var(--ft-blue);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

/* 最底段：導覽連結列 ＋ 版權列 */
.ok1-footer .ok1-ft-bottom {
  border-top: 1px solid var(--ft-rule);
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ok1-footer .ok1-ft-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 18px;
}

.ok1-footer .ok1-ft-nav li {
  display: inline-flex;
  align-items: center;
}

.ok1-footer .ok1-ft-nav li a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ft-text);
  text-transform: none;
  transition: color .15s;
}

.ok1-footer .ok1-ft-nav li a:hover {
  color: var(--ft-blue);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.ok1-footer .ok1-ft-nav li.current-menu-item > a,
.ok1-footer .ok1-ft-nav li.current_page_item > a {
  color: var(--ft-navy);
  font-weight: 600;
}

.ok1-footer .ok1-ft-nav li.lang-item > a {
  color: var(--ft-blue);
}

.ok1-footer .ok1-ft-copy {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ft-muted);
  padding-top: 4px;
}

.ok1-footer .ok1-ft-copy strong {
  font-weight: 600;
  color: var(--ft-text);
}

/* ≥640px：精選商品 2 欄 */
@media (min-width: 640px) {
  .ok1-footer .ok1-ft-wrap {
    padding: 44px 15px 32px;
  }

  .ok1-footer .ok1-ft-prod-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ok1-footer .ok1-ft-prod-link {
    grid-template-columns: 60px minmax(0, 1fr);
    gap: 12px;
    padding: 12px 14px;
  }

  .ok1-footer .ok1-ft-prod-thumb {
    width: 60px;
    height: 60px;
  }

  .ok1-footer .ok1-ft-nav {
    gap: 0 22px;
  }
}

/* ≥768px：關於我們與醫療新知雙欄（英文無新知時由關於我們平衡分欄） */
@media (min-width: 768px) {
  .ok1-footer .ok1-ft-main--two {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 48px;
    align-items: start;
  }

  .ok1-footer .ok1-ft-main--single .ok1-ft-about-body {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 48px;
    align-items: start;
  }

  .ok1-footer .ok1-ft-main--single .ok1-ft-org {
    grid-column: 1;
  }

  .ok1-footer .ok1-ft-main--single .ok1-ft-contact {
    grid-column: 2;
    margin-top: 0;
  }
}

/* ≥1000px：精選商品 4 欄（縮圖維持 56px，不放大超過 100px） */
@media (min-width: 1000px) {
  .ok1-footer .ok1-ft-prod-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .ok1-footer .ok1-ft-prod-link {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
  }

  .ok1-footer .ok1-ft-prod-thumb {
    width: 56px;
    height: 56px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ok1-footer *,
  .ok1-footer *::before,
  .ok1-footer *::after {
    transition: none !important;
  }
}
