﻿@charset "UTF-8";

/* ---------- 版面骨架 ---------- */
.hs-page {
  position: relative;
  overflow-x: hidden;
  background-color: #dbe3ee;
  background-image: url(../_img/bg.jpg);
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: 100% auto;
  color: #333;
  font-family: "微軟正黑體", sans-serif;
  text-align: left;
}

.hs-page a {
  text-decoration: none;
}

.hs-page .is-empty {
  display: none;
}

.hs-page .hs-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hs-page .hs-hero img {
  display: block;
  width: 100%;
  height: auto;
}

.hs-page .hs-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}

.hs-page .hs-sec {
  margin-bottom: 60px;
}

.hs-page .hs-container > .hs-sec:first-child {
  padding-top: 60px;
}

/* ---------- 區塊標題 ---------- */
.hs-page .hs-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 0 0 32px;
  min-height: 46px;
  padding: 0;
  font-size: 16px;
  line-height: 1.3;
}

.hs-page .hs-title::before,
.hs-page .hs-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #c6d8ee;
}

.hs-page .hs-title__star {
  width: 12px;
  height: 12px;
  flex: none;
}

.hs-page .hs-title__main {
  color: #1c3560;
  font-family: "Noto Serif TC", "Songti TC", serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 4px;
  white-space: nowrap;
}

.hs-page .hs-title__sub {
  color: #3f6aa6;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 3px;
  white-space: nowrap;
}

/* ---------- 主打大卡（短冊 + 拱窗，無折數） ---------- */
.hs-page .hs-hot {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 26px;
  row-gap: 25px;
  margin-bottom: 40px;
}

.hs-page .hs-hot__card {
  container-type: inline-size;
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 627 / 484;
  background: #f4f8fd;
  border-radius: 4px;
  box-shadow: 0 6px 22px rgba(63, 106, 166, 0.12);
  color: inherit;
}

.hs-page .hs-hot__card::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid #c6d8ee;
  border-radius: 2px;
  pointer-events: none;
}

.hs-page .hs-hot__photo {
  position: absolute;
  top: 5.37%;
  left: 46.41%;
  width: 51.04%;
  height: 90.08%;
}

.hs-page .hs-hot__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hs-page .hs-hot__photo.is-fallback::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid #c6d8ee;
  border-radius: 21.5cqw 21.5cqw 4px 4px;
}

.hs-page .hs-hot__arch {
  position: absolute;
  inset: 8px;
  overflow: hidden;
  background: #fff;
  border-radius: 21.5cqw 21.5cqw 4px 4px;
}

/* 2x2 棋盤：第 2、3 張照片在左 */
.hs-page .hs-hot__card:nth-child(2) .hs-hot__photo,
.hs-page .hs-hot__card:nth-child(3) .hs-hot__photo {
  left: 1.91%;
}

.hs-page .hs-hot__info,
.hs-page .hs-hot__price {
  position: absolute;
  left: 7.34%;
  width: 39.87%;
}

.hs-page .hs-hot__card:nth-child(2) .hs-hot__info,
.hs-page .hs-hot__card:nth-child(3) .hs-hot__info,
.hs-page .hs-hot__card:nth-child(2) .hs-hot__price,
.hs-page .hs-hot__card:nth-child(3) .hs-hot__price {
  left: 54.87%;
}

.hs-page .hs-hot__info {
  top: 10.74%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hs-page .hs-hot__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  color: #3f6aa6;
  font-family: "Noto Serif TC", "Songti TC", serif;
  font-weight: 700;
  font-size: max(16px, 2.55cqw);
  letter-spacing: 2px;
  line-height: 1.4;
}

.hs-page .hs-hot__eyebrow::before {
  content: "";
  flex: none;
  width: 22px;
  height: 1px;
  background: #3f6aa6;
}

.hs-page .hs-hot__brand {
  color: #7d93b5;
  font-family: "Cormorant Garamond", "Noto Serif TC", serif;
  font-weight: 600;
  font-size: max(16px, 3.19cqw);
  letter-spacing: 1px;
  line-height: 1.3;
}

.hs-page .hs-hot__name {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  color: #1c3560;
  font-family: "Noto Serif TC", "Songti TC", serif;
  font-weight: 700;
  font-size: max(18px, 3.67cqw);
  line-height: 1.48;
}

.hs-page .hs-hot__desc {
  color: #7d93b5;
  font-family: "Noto Sans TC", "微軟正黑體", sans-serif;
  font-size: max(16px, 2.55cqw);
  letter-spacing: 1px;
  line-height: 1.5;
}

.hs-page .hs-hot__price {
  /* 價格（含逗號下緣）不超過照片底部：10.5% ≈ hot_1 下圓外環底距卡片底（拱窗卡照片底為 9.5%） */
  bottom: 10.5%;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hs-page .hs-hot__origin {
  color: #7d93b5;
  font-family: "Noto Sans TC", "微軟正黑體", sans-serif;
  font-size: max(16px, 2.55cqw);
  text-decoration: line-through;
  white-space: nowrap;
}

/* 點數：沿用 pditem-point（P 圖示 + 數字） */
.hs-page .hs-hot__point {
  color: #d23f35;
  font-family: "Crimson Pro", "Noto Serif TC", serif;
  font-weight: 700;
  font-size: max(46px, 10.5cqw);
  line-height: 1.1;
  white-space: nowrap;
}

/* 靠左對齊品名：權重需高於後面 .hs-page .pditem-point 的置中 */
.hs-page .hs-hot__point.pditem-point {
  justify-content: flex-start;
}

.hs-page .hs-hot__point::before {
  width: 0.62em;
  height: 0.62em;
  margin-right: 8px;
  margin-top: 0.08em;
}

/* ---------- P 圖示（比照 Q3 .pditem-point::before，SVG mask + currentColor） ---------- */
.hs-page .pditem-point {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hs-page .pditem-point::before {
  content: "";
  width: 1.25rem;
  height: 1.25rem;
  margin-right: 4px;
  margin-top: 1px;
  flex-shrink: 0;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M14.3722 7.66509C14.3721 3.96094 11.3692 0.958014 7.66509 0.958014C3.96095 0.958039 0.958039 3.96095 0.958014 7.66509C0.958014 11.3692 3.96094 14.3721 7.66509 14.3722V15.3302C3.43177 15.3301 0 11.8984 0 7.66509C2.52547e-05 3.43179 3.43179 2.52556e-05 7.66509 0C11.8984 0 15.3301 3.43177 15.3302 7.66509C15.3302 11.8984 11.8984 15.3302 7.66509 15.3302V14.3722C11.3693 14.3722 14.3722 11.3693 14.3722 7.66509Z' fill='black'/><path d='M5.22483 3.97289V11.4981H6.45795V8.61027H8.32345C10.1573 8.61027 11.0743 7.83035 11.0743 6.28104C11.0743 4.74228 10.1573 3.97289 8.34452 3.97289H5.22483ZM6.45795 5.02684H8.24967C8.78718 5.02684 9.18768 5.1217 9.45117 5.32195C9.70412 5.51166 9.83059 5.82785 9.83059 6.28104C9.83059 6.73424 9.70412 7.06097 9.45117 7.26122C9.19822 7.45093 8.79772 7.55632 8.24967 7.55632H6.45795V5.02684Z' fill='black'/></svg>");
  mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M14.3722 7.66509C14.3721 3.96094 11.3692 0.958014 7.66509 0.958014C3.96095 0.958039 0.958039 3.96095 0.958014 7.66509C0.958014 11.3692 3.96094 14.3721 7.66509 14.3722V15.3302C3.43177 15.3301 0 11.8984 0 7.66509C2.52547e-05 3.43179 3.43179 2.52556e-05 7.66509 0C11.8984 0 15.3301 3.43177 15.3302 7.66509C15.3302 11.8984 11.8984 15.3302 7.66509 15.3302V14.3722C11.3693 14.3722 14.3722 11.3693 14.3722 7.66509Z' fill='black'/><path d='M5.22483 3.97289V11.4981H6.45795V8.61027H8.32345C10.1573 8.61027 11.0743 7.83035 11.0743 6.28104C11.0743 4.74228 10.1573 3.97289 8.34452 3.97289H5.22483ZM6.45795 5.02684H8.24967C8.78718 5.02684 9.18768 5.1217 9.45117 5.32195C9.70412 5.51166 9.83059 5.82785 9.83059 6.28104C9.83059 6.73424 9.70412 7.06097 9.45117 7.26122C9.19822 7.45093 8.79772 7.55632 8.24967 7.55632H6.45795V5.02684Z' fill='black'/></svg>");
}

/* ---------- 品牌橫幅 ---------- */
.hs-page .hs-banner {
  margin-bottom: 32px;
  border-radius: 4px;
  overflow: hidden;
}

.hs-page .hs-banner img {
  display: block;
  width: 100%;
  aspect-ratio: 2564 / 800;
  object-fit: cover;
}

/* ---------- 商品列（swiper） ---------- */
.hs-page .hs-swiper {
  position: relative;
  padding: 0 40px;
  overflow: hidden;
}

.hs-page .hs-swiper .swiper-slide {
  height: auto;
}

/* 商品卡（歸零站台 .pditem 的 padding / 圓角 / 陰影） */
.hs-page .hs-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0 0 16px;
  background: #fff;
  border: 0;
  border-radius: 8px;
  box-shadow: none;
  filter: drop-shadow(1.775px 2.662px 3.106px #cbcbcb);
  text-align: center;
  transition: transform 0.3s ease-in-out;
}

.hs-page .hs-card:hover {
  transform: translateY(-4px);
}

.hs-page .hs-card .pditem-lazyImg {
  display: block;
  box-sizing: border-box;
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 16px;
  object-fit: contain;
}

.hs-page .hs-card .pditem-txt {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0 16px;
  padding: 12px 0;
  border-top: 1px solid #f5f5f5;
  font-size: 16px;
  line-height: 1.4;
  text-align: left;
}

.hs-page .hs-card .hs-card__brand {
  font-size: 16px;
  line-height: 1.3;
  color: #7d93b5;
}

.hs-page .hs-card .pditem-txt__tit {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 600;
  color: #1c3560;
}

/* 市價貼底：卡片 flex column，市價 margin-top:auto 把價格區推到底 */
.hs-page .hs-card .pditem-mprice {
  margin: auto 9px 0;
  font-size: 16px;
  line-height: 1.3;
  text-align: center;
  text-decoration: line-through;
  color: #959595;
}

.hs-page .hs-card .pditem-point {
  margin: 10px 9px 0;
  font-family: "Crimson Pro", "Noto Serif TC", serif;
  font-size: 18px;
  line-height: 1.3;
  white-space: nowrap;
  font-weight: 700;
  color: #d23f35;
}

/* 箭頭 */
.hs-page .hs-nav,
.hs-page .hs-brand-nav {
  position: absolute;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(63, 106, 166, 0.2);
  cursor: pointer;
  transition: transform 0.2s;
}

.hs-page .hs-nav {
  top: 40%;
  margin-top: -18px;
}

.hs-page .hs-nav--prev {
  left: 0;
}

.hs-page .hs-nav--next {
  right: 0;
}

.hs-page .hs-nav::after,
.hs-page .hs-brand-nav::after {
  content: "";
  width: 9px;
  height: 9px;
  border-top: 2px solid #3f6aa6;
  border-right: 2px solid #3f6aa6;
}

.hs-page .hs-nav--prev::after,
.hs-page .hs-brand-nav--prev::after {
  transform: rotate(-135deg);
  margin-left: 4px;
}

.hs-page .hs-nav--next::after,
.hs-page .hs-brand-nav--next::after {
  transform: rotate(45deg);
  margin-right: 4px;
}

.hs-page .hs-nav:hover,
.hs-page .hs-brand-nav:hover {
  transform: scale(1.1);
}

.hs-page .hs-nav.swiper-button-disabled,
.hs-page .hs-brand-nav.swiper-button-disabled,
.hs-page .hs-nav.swiper-button-lock,
.hs-page .hs-brand-nav.swiper-button-lock {
  display: none;
}

/* ---------- 品牌形象輪播 ---------- */
.hs-page .hs-brand {
  margin-bottom: 0;
  padding-bottom: 60px;
}

.hs-page .hs-brand-swiper {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}

.hs-page .hs-brand-swiper .swiper-slide img {
  display: block;
  width: 100%;
  aspect-ratio: 1280 / 500;
  object-fit: cover;
}

.hs-page .hs-brand-nav {
  top: 50%;
  margin-top: -28px;
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.85);
}

.hs-page .hs-brand-nav--prev {
  left: 16px;
}

.hs-page .hs-brand-nav--next {
  right: 16px;
}

/* ===== RWD（依螢幕寬度由大到小） ===== */
@media (max-width: 1200px) {
  .hs-page .hs-title {
    gap: 14px;
  }
  .hs-page .hs-title__main {
    font-size: 26px;
  }
  .hs-page .hs-title__sub {
    font-size: 18px;
  }
}

@media (max-width: 1199px) {
  /* 兩欄時卡片太窄，最小字級會把價格擠出卡片，改單欄（卡片最寬 627px）。
     限寬與置中加在 .hs-hot，不可對卡片設 margin:auto（auto margin + container-type 會塌成 0 寬） */
  .hs-page .hs-hot {
    grid-template-columns: 1fr;
    row-gap: 16px;
    max-width: 627px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 992px) {
  .hs-page .hs-container > .hs-sec:first-child {
    padding-top: 32px;
  }
  .hs-page .hs-title__main {
    font-size: 24px;
    letter-spacing: 3px;
  }
  .hs-page .hs-title__sub {
    font-size: 17px;
    letter-spacing: 2px;
  }
  .hs-page .hs-sec {
    margin-bottom: 48px;
  }
  .hs-page .hs-swiper {
    padding: 0 34px;
  }
  .hs-page .hs-brand-nav {
    width: 44px;
    height: 44px;
    margin-top: -22px;
  }
}

@media (max-width: 768px) {
  .hs-page .hs-title {
    gap: 10px;
    margin-bottom: 24px;
  }
  .hs-page .hs-title__main {
    font-size: 22px;
    letter-spacing: 2px;
  }
  .hs-page .hs-title__sub {
    font-size: 16px;
    letter-spacing: 1px;
  }
  .hs-page .hs-banner {
    margin-bottom: 24px;
  }
  .hs-page .hs-swiper {
    padding: 0 30px;
  }
  .hs-page .hs-brand {
    padding-bottom: 48px;
  }
}

@media (max-width: 576px) {
  .hs-page .hs-container {
    padding: 0 12px;
  }
  .hs-page .hs-container > .hs-sec:first-child {
    padding-top: 20px;
  }
  .hs-page .hs-sec {
    margin-bottom: 40px;
  }
  .hs-page .hs-title__main {
    font-size: 18px;
    letter-spacing: 1px;
  }
  .hs-page .hs-title__sub {
    font-size: 14px;
    letter-spacing: 1px;
  }

  /* 主打卡手機單欄：流式排版，照片在上、文字與價格依序往下 */
  .hs-page .hs-hot__card,
  .hs-page .hs-hot__card:nth-child(n) {
    aspect-ratio: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 22px 22px 24px;
    gap: 14px;
  }
  .hs-page .hs-hot__card .hs-hot__photo,
  .hs-page .hs-hot__card:nth-child(n) .hs-hot__photo {
    position: relative;
    top: auto;
    left: auto;
    width: min(100%, 300px);
    height: auto;
    aspect-ratio: 320 / 436;
    margin: 0 auto;
  }
  .hs-page .hs-hot__card .hs-hot__info,
  .hs-page .hs-hot__card .hs-hot__price,
  .hs-page .hs-hot__card:nth-child(n) .hs-hot__info,
  .hs-page .hs-hot__card:nth-child(n) .hs-hot__price {
    position: static;
    width: auto;
  }
  .hs-page .hs-hot__arch,
  .hs-page .hs-hot__photo.is-fallback::before {
    border-radius: 130px 130px 4px 4px;
  }
  .hs-page .hs-hot__eyebrow {
    font-size: 14px;
  }
  .hs-page .hs-hot__brand {
    font-size: 16px;
  }
  .hs-page .hs-hot__name {
    font-size: 19px;
    -webkit-line-clamp: unset;
  }
  .hs-page .hs-hot__desc,
  .hs-page .hs-hot__origin {
    font-size: 14px;
  }
  .hs-page .hs-hot__point {
    font-size: 46px;
  }

  .hs-page .hs-card .pditem-lazyImg {
    padding: 10px;
  }
  .hs-page .hs-card .pditem-txt {
    margin: 0 10px;
    padding: 10px 0;
  }
  .hs-page .hs-card .hs-card__brand {
    font-size: 13px;
  }
  .hs-page .hs-card .pditem-txt__tit {
    font-size: 14px;
  }
  .hs-page .hs-card .pditem-mprice {
    font-size: 13px;
  }
  .hs-page .hs-card .pditem-point {
    font-size: 16px;
  }
  .hs-page .pditem-point::before {
    width: 1rem;
    height: 1rem;
  }
  .hs-page .hs-hot__point::before {
    width: 0.62em;
    height: 0.62em;
  }

  .hs-page .hs-nav {
    width: 30px;
    height: 30px;
    margin-top: -15px;
  }
  .hs-page .hs-swiper {
    padding: 0 24px;
  }
  .hs-page .hs-brand-nav {
    width: 32px;
    height: 32px;
    margin-top: -16px;
  }
  .hs-page .hs-brand {
    padding-bottom: 40px;
  }
}

@media (max-width: 414px) {
  .hs-page .hs-title__main {
    font-size: 16px;
  }
  .hs-page .hs-title__sub {
    font-size: 13px;
  }
  .hs-page .hs-swiper {
    padding: 0 20px;
  }
}
