/* ============================================================
   島物送首頁 — 專屬樣式（tokens & shared 在 shop_base.css）
   ============================================================ */

/* ---- Hero ---- */
.sh-home-hero {
  padding: 56px 0 72px;
  position: relative;
  overflow: hidden;
}
/* 沒設底圖：右半是原本食材拼貼欄留下的空位，補一團暖色暈染撐住版面 */
.sh-home-hero:not(.has-bg) {
  background:
    radial-gradient(ellipse 62% 92% at 82% 48%, #F1E4C8 0%, transparent 70%),
    linear-gradient(180deg, #FFFFFF 0%, #FAF6EE 100%);
}
/* 有設定底圖時：滿版大圖 + 米色遮罩。遮罩左濃右淡——左側壓住文案保對比，
   右側留給照片露臉（原本的食材拼貼欄已移除，右半改由底圖本身填滿）。 */
.sh-home-hero.has-bg {
  padding: 96px 0 80px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.sh-home-hero.has-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(250, 246, 238, .96) 0%,
    rgba(250, 246, 238, .92) 32%,
    rgba(250, 246, 238, .66) 62%,
    rgba(250, 246, 238, .42) 100%
  );
  pointer-events: none;
}
.sh-home-hero.has-bg > .sh-container { position: relative; z-index: 1; }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 620px);
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px;
  color: var(--brick-600);
  letter-spacing: 0.3em;
  margin-bottom: 24px;
}
.hero__eyebrow::before {
  content: ""; width: 28px; height: 1px; background: var(--brick-500);
}
.hero__title {
  font-family: var(--font-serif);
  font-size: 56px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.02em;
  color: var(--ink-900);
  margin: 0 0 24px;
}
.hero__title .period { color: var(--brick-600); }
.hero__sub {
  font-size: 17px;
  line-height: 1.85;
  color: var(--ink-700);
  margin: 0 0 32px;
  max-width: 480px;
}
.hero__ctas {
  display: flex; gap: 14px; flex-wrap: wrap;
  margin-bottom: 20px;
}
.hero__note {
  display: flex; align-items: flex-start; gap: 10px;
  background: var(--bg-card);
  border: 1px dashed var(--line-200);
  border-radius: var(--r-md);
  padding: 14px 18px;
  font-size: 13px;
  color: var(--ink-700);
  max-width: 480px;
  line-height: 1.7;
}
.hero__note .dot {
  flex: 0 0 auto;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--brick-100);
  color: var(--brick-600);
  display: grid; place-items: center;
  font-size: 11px; font-weight: 600;
  margin-top: 2px;
}
.hero__note b { color: var(--brick-600); font-weight: 600; }

/* Trust badges row */
.trust-row {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line-100);
}
/* 底圖模式：trust row 橫跨到遮罩最淡的右側，自帶一層底才讀得清楚 */
.has-bg .trust-row {
  background: rgba(255, 255, 255, .74);
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: var(--r-md);
  padding: 24px 28px;
  backdrop-filter: blur(3px);
}
.has-bg .hero__note { background: rgba(255, 255, 255, .82); }
.trust-item { display: flex; align-items: flex-start; gap: 14px; }
.trust-item__icon {
  width: 36px; height: 36px;
  border: 1px solid var(--line-200);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--brick-600);
  flex: 0 0 auto;
}
.trust-item__title { font-size: 14px; color: var(--ink-900); margin-bottom: 2px; }
.trust-item__desc  { font-size: 12px; color: var(--ink-500); line-height: 1.6; }

/* ---- Section primitives ---- */
.sh-home-hero ~ section { padding: 80px 0; }
.section-head { text-align: center; margin-bottom: 48px; }
.section-head__deco {
  display: inline-flex; align-items: center; gap: 16px;
  color: var(--ink-400); font-size: 12px; letter-spacing: 0.3em; margin-bottom: 12px;
}
.section-head__deco::before, .section-head__deco::after {
  content: ""; display: block; width: 24px; height: 1px; background: var(--line-200);
}
.section-head__title {
  font-family: var(--font-serif); font-size: 34px; font-weight: 600;
  color: var(--ink-900); margin: 0 0 14px; letter-spacing: 0.04em;
}
.section-head__sub { font-size: 15px; color: var(--ink-500); margin: 0; }

/* ---- Three Steps ---- */
.sh-home-steps {
  background: var(--bg-section);
  border-top: 1px solid var(--line-100);
  border-bottom: 1px solid var(--line-100);
}
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step-card {
  background: var(--bg-card); border: 1px solid var(--line-100);
  border-radius: var(--r-lg); padding: 32px 28px;
  position: relative; transition: transform .2s, box-shadow .2s;
}
.step-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); }
.step-card__num {
  position: absolute; top: 24px; right: 28px;
  font-family: var(--font-serif); font-size: 56px; line-height: 1;
  color: var(--bg-card-soft); font-weight: 600;
}
.step-card__icon {
  width: 56px; height: 56px;
  background: var(--brick-100); color: var(--brick-600);
  border-radius: 50%; display: grid; place-items: center; margin-bottom: 18px;
}
.step-card__title {
  font-family: var(--font-serif); font-size: 22px; color: var(--ink-900);
  margin: 0 0 8px; letter-spacing: 0.04em;
}
.step-card__desc {
  font-size: 14px; color: var(--ink-500); line-height: 1.75;
  margin: 0 0 22px; min-height: 48px;
}
.step-card__desc a { color: var(--brick-600); text-decoration: underline; text-underline-offset: 2px; }
.step-card .sh-btn { width: 100%; }

/* ---- Product DM ---- */
/* 圖片依原始比例顯示（不裁切），欄數跟著張數走：1 張置中放大、2 張並排、3 張滿列 */
.dm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.dm-grid--1 { grid-template-columns: minmax(0, 680px); justify-content: center; }
.dm-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dm-figure {
  margin: 0; background: var(--bg-card); border: 1px solid var(--line-100);
  border-radius: var(--r-md); overflow: hidden;
  transition: transform .2s, box-shadow .25s;
}
.dm-figure:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.dm-figure img { display: block; width: 100%; height: auto; }
.homepage-products-empty { grid-column: 1 / -1; text-align: center; color: var(--ink-500); }

/* Placeholder gradients */
.ph-jar      { background: linear-gradient(160deg, #EBD4A6 0%, #B45C36 55%, #57211A 100%); }
.ph-snack    { background: linear-gradient(160deg, #F1DEB2 0%, #C99356 55%, #6B3D17 100%); }
.ph-dry      { background: linear-gradient(160deg, #F0E0B6 0%, #B0793A 55%, #5C351A 100%); }
.ph-noodle   { background: linear-gradient(160deg, #F4E7C6 0%, #D8B173 55%, #7A4F1E 100%); }
.ph-tea      { background: linear-gradient(160deg, #EAD9B4 0%, #93673A 55%, #3B2410 100%); }
.ph-frozen   { background: linear-gradient(160deg, #F4ECDB 0%, #BFA382 55%, #6D5638 100%); }
.ph-sauce    { background: linear-gradient(160deg, #E9CFA8 0%, #A0552C 55%, #4A2412 100%); }
.ph-stew     { background: linear-gradient(160deg, #E6CDA0 0%, #8E3F22 55%, #441A12 100%); }
.ph-dumpling { background: linear-gradient(160deg, #F5E9CC 0%, #D9B97D 60%, #8C6132 100%); }
.ph-fruit    { background: linear-gradient(160deg, #FBE9B4 0%, #E1A23B 55%, #88541A 100%); }
.ph-drink    { background: linear-gradient(160deg, #E8D9B9 0%, #8C5C30 55%, #3F2410 100%); }
.ph-seasonal { background: linear-gradient(160deg, #FAE2B6 0%, #DC8A2C 55%, #6F3A15 100%); }

.ph-icon {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -55%);
  width: 88px; height: 88px;
  color: rgba(255,245,225,.55); z-index: 1;
}

/* ---- Locked Section ---- */
/* 模糊商品拼貼是整個區塊的滿版底圖，標題與解鎖面板疊在上面；
   overflow 夾住放大後的拼貼，isolation 讓底圖/遮罩的 z-index 不外洩 */
.sh-home-locked {
  background: var(--bg-section); position: relative; padding: 96px 0;
  overflow: hidden; isolation: isolate;
}
.locked__deco {
  display: flex; align-items: center; gap: 14px; justify-content: center;
  color: var(--ink-400); font-size: 12px; letter-spacing: 0.3em; margin-bottom: 10px;
}
.locked__deco::before, .locked__deco::after { content: "／"; color: var(--ink-300); }
.locked__title {
  text-align: center; font-family: var(--font-serif); font-size: 34px;
  margin: 0 0 12px; letter-spacing: 0.06em; color: var(--ink-900);
}
.locked__sub { text-align: center; color: var(--ink-500); margin: 0 0 48px; }
.locked__stage { position: relative; display: grid; place-items: center; min-height: 320px; }
/* scale 讓 blur 在邊緣的透明暈開被推出可視區，否則四周會出現一圈灰白 */
.locked__blur-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  display: grid; grid-template-columns: repeat(5, 1fr); grid-template-rows: repeat(2, 1fr);
  gap: 18px; padding: 18px;
  filter: blur(16px) saturate(1.05); opacity: .92; transform: scale(1.08);
}
.locked__blur-tile { background-size: cover; background-position: center; border-radius: var(--r-md); }
/* 中央淡、邊緣濃：中間讓照片露臉，四周壓白撐住標題與副標的對比 */
.locked__overlay {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(255,255,255,.35) 0%, rgba(250,246,238,.78) 80%);
}
.sh-home-locked > .sh-container { position: relative; z-index: 2; }
.locked__panel {
  background: rgba(255,255,255,.96); border: 1px solid var(--line-200);
  backdrop-filter: blur(2px); border-radius: var(--r-lg);
  padding: 44px 56px 40px; text-align: center;
  width: min(540px, 90%); box-shadow: var(--shadow-lift);
}
.locked__panel-icon {
  width: 64px; height: 64px; margin: 0 auto 22px;
  background: var(--bg-card-soft); color: var(--brick-600);
  border-radius: 50%; display: grid; place-items: center;
}
.locked__panel h3 {
  font-family: var(--font-serif); font-size: 22px; margin: 0 0 18px;
  color: var(--ink-900); letter-spacing: 0.06em;
}
.locked__panel-rule {
  width: 56px; height: 1px; background: var(--line-200);
  margin: 0 auto 22px; position: relative;
}
.locked__panel-rule::before {
  content: "\2726"; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%); background: #fff;
  color: var(--line-300); padding: 0 6px; font-size: 11px;
}
.locked__panel .sh-btn-primary { width: 100%; margin-bottom: 14px; }
.locked__panel-foot { font-size: 13px; color: var(--ink-500); }
.locked__panel-foot a {
  color: var(--brick-600); border-bottom: 1px solid var(--brick-500);
  padding-bottom: 2px; margin-left: 4px;
}

/* ---- CTA Strip ---- */
.sh-home-cta-strip {
  background: var(--bg-accent); padding: 56px 0;
  border-top: 1px solid var(--line-200); border-bottom: 1px solid var(--line-200);
}
.cta-strip__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
}
.cta-strip__text { flex: 1; min-width: 260px; }
.cta-strip__title {
  font-family: var(--font-serif); font-size: 26px; margin: 0 0 8px;
  color: var(--ink-900); letter-spacing: 0.06em;
}
.cta-strip__sub { font-size: 14px; color: var(--ink-700); margin: 0; }
.cta-strip__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---- LINE Block ---- */
.sh-home-line { background: var(--bg-section); }
.line-block__grid {
  display: grid; grid-template-columns: 1.05fr 1fr;
  gap: 64px; align-items: center;
}
.line-block__text h2 {
  font-family: var(--font-serif); font-size: 32px;
  line-height: 1.45; letter-spacing: 0.04em; margin: 0 0 18px;
}
.line-block__text p { font-size: 15px; color: var(--ink-700); line-height: 1.85; margin: 0 0 24px; }
.line-features { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; margin-bottom: 28px; }
.line-feature { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--ink-700); }
.line-feature__dot { width: 6px; height: 6px; background: var(--brick-500); border-radius: 50%; margin-top: 8px; flex: 0 0 auto; }
.line-mock { display: grid; grid-template-columns: auto auto; gap: 28px; align-items: center; justify-content: center; }
.phone {
  width: 280px; background: #fff; border-radius: 36px;
  border: 1px solid var(--line-200); padding: 14px 12px; box-shadow: var(--shadow-lift);
}
.phone__bar {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 10px 12px; border-bottom: 1px solid var(--line-100); margin-bottom: 12px;
}
.phone__bar .logo { width: 32px; height: 32px; border-radius: 50%; object-fit: contain; border: 1px solid var(--line-100); }
.phone__bar .name { font-size: 13px; font-weight: 600; color: var(--ink-900); }
.phone__bar .name small { display: block; font-size: 10px; color: var(--ink-400); font-weight: 400; }
.bubble {
  background: #EEF7E7; border: 1px solid #D5E9C5; padding: 14px;
  border-radius: 4px 14px 14px 14px; margin: 0 6px 12px;
  font-size: 12px; color: var(--ink-700); line-height: 1.7;
}
.bubble strong { color: var(--brick-600); font-size: 13px; display: block; margin-bottom: 4px; }
.bubble ul { margin: 8px 0 4px; padding-left: 18px; }
.bubble li { margin-bottom: 2px; }
.bubble__cta {
  display: inline-block; margin-top: 8px; font-size: 11px;
  background: #FBF6EC; border: 1px solid #C9B996; padding: 4px 10px;
  border-radius: 4px; color: var(--brick-600);
}
.qr-block { text-align: center; }
.qr-block__qr {
  width: 140px; height: 140px; background: #fff;
  border: 1px solid var(--line-200); border-radius: var(--r-md);
  padding: 10px; margin-bottom: 12px; overflow: hidden;
}
.qr-block__qr svg { width: 100%; height: 100%; }
.qr-block__label { font-size: 12px; color: var(--ink-500); line-height: 1.5; }
.qr-block__label b { display: block; color: var(--ink-700); font-size: 13px; margin-bottom: 2px; font-weight: 600; }

/* ---- Trust Strip ---- */
.sh-home-trust { background: var(--bg-page); padding: 56px 0 64px; }
.trust-strip__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  background: var(--bg-card); border: 1px solid var(--line-100);
  border-radius: var(--r-lg); overflow: hidden;
}
.trust-cell {
  padding: 28px 24px; display: flex; align-items: flex-start;
  gap: 16px; border-right: 1px solid var(--line-100);
}
.trust-cell:last-child { border-right: 0; }
.trust-cell__icon {
  width: 44px; height: 44px; display: grid; place-items: center;
  color: var(--brick-600); border: 1px solid var(--line-200);
  border-radius: 8px; flex: 0 0 auto;
}
.trust-cell h4 { font-family: var(--font-serif); font-size: 16px; margin: 0 0 4px; color: var(--ink-900); letter-spacing: 0.05em; }
.trust-cell p { font-size: 12px; color: var(--ink-500); line-height: 1.6; margin: 0; }

/* ---- FAQ ---- */
.sh-home-faq { background: var(--bg-section); }
.faq__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 36px; }
.faq__head h2 { font-family: var(--font-serif); font-size: 30px; margin: 0; letter-spacing: 0.06em; }
.faq__head a { font-size: 13px; color: var(--brick-600); border-bottom: 1px solid var(--brick-500); padding-bottom: 2px; }
.faq__list { background: var(--bg-card); border: 1px solid var(--line-100); border-radius: var(--r-md); overflow: hidden; }
.faq__item { border-top: 1px solid var(--line-100); }
.faq__item:first-child { border-top: 0; }
.faq__item summary {
  display: flex; align-items: center; gap: 14px; padding: 22px 28px;
  cursor: pointer; list-style: none; font-size: 15px; color: var(--ink-900); transition: background .2s;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { background: var(--bg-card-soft); }
.faq__item summary::before {
  content: "?"; width: 24px; height: 24px; border-radius: 50%;
  border: 1px solid var(--brick-500); color: var(--brick-600);
  display: grid; place-items: center; font-size: 12px; font-weight: 600; flex: 0 0 auto;
}
.faq__item summary::after {
  content: ""; margin-left: auto; width: 10px; height: 10px;
  border-right: 1.5px solid var(--ink-500); border-bottom: 1.5px solid var(--ink-500);
  transform: rotate(45deg); transition: transform .2s;
}
.faq__item[open] summary::after { transform: rotate(-135deg); }
.faq__item-body { padding: 0 28px 24px 66px; color: var(--ink-700); font-size: 14px; line-height: 1.85; }

/* ---- Footer CTA ---- */
.sh-home-footer-cta {
  background: var(--bg-accent); padding: 56px 0; position: relative; overflow: hidden;
}
.footer-cta__inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 32px; }
.footer-cta__leaf { opacity: 0.4; color: var(--ink-500); line-height: 1; }
.footer-cta__center { text-align: center; }
.footer-cta__title { font-family: var(--font-serif); font-size: 28px; letter-spacing: 0.08em; color: var(--ink-900); margin: 0 0 24px; }
.footer-cta__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.footer-cta__bowl { opacity: 0.4; color: var(--ink-500); line-height: 1; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__title { font-size: 40px; }
  /* 窄螢幕沒有「右側留白給照片」可言，遮罩改整片均勻 */
  .sh-home-hero.has-bg { padding: 64px 0 64px; }
  .sh-home-hero.has-bg::before { background: rgba(250, 246, 238, .9); }
  .steps-grid, .dm-grid { grid-template-columns: 1fr; }
  .line-block__grid { grid-template-columns: 1fr; }
  /* 手機/QR 的 280px+140px 並排是 min-content 硬底，不收成一欄會把整份文件撐寬並產生橫捲 */
  .line-mock { grid-template-columns: 1fr; justify-items: center; }
  .trust-strip__grid { grid-template-columns: 1fr 1fr; }
  .trust-cell { border-right: 0; border-bottom: 1px solid var(--line-100); }
  .cta-strip__inner { flex-direction: column; text-align: center; }
  .cta-strip__actions { justify-content: center; }
  .footer-cta__inner { grid-template-columns: 1fr; text-align: center; }
  .footer-cta__leaf, .footer-cta__bowl { display: none; }
}
