/* ============================================================
   裏物 LIWU HOME COLLECTION — 品牌樣式表
   風格依據：安靜、極簡、輕奢；無彩度中性灰階（R=G=B，無暖調）＋白＋黑；
   字距極寬；細字體；情境攝影為主角；價格用白/炭灰，不用紅（紅僅限 LIVE）。
   ============================================================ */

:root {
  --white: #FFFFFF;
  --offwhite: #F6F6F6;
  --brand-grey: #7A7A7A;
  --brand-grey-dark: #6B6B6B;
  --text-mid: #878787;
  --text-charcoal: #353535;
  --line: #DDDDDD;
  /* 佔位照片色階：純無彩度灰階，R=G=B，完全去除暖調 */
  --grey-1: #E7E7E7;
  --grey-2: #D3D3D3;
  --grey-3: #B2B2B2;
  --grey-4: #8F8F8F;
  --serif: 'Noto Serif TC', serif;
  --sans: 'Noto Sans TC', sans-serif;
  --wide: 'Jost', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--offwhite);
  color: var(--text-charcoal);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

img { max-width: 100%; display: block; }

.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------------- placeholder image block ----------------
   拿掉真實照片前的暫代視覺：暖中性灰底 + 細斜紋，維持品牌無彩度質感。
   之後把 <div class="ph"> 換成 <img src="..."> 即可。
------------------------------------------------------------- */
.ph {
  position: relative;
  background-color: var(--grey-2);
  background-image: repeating-linear-gradient(135deg, rgba(53,53,53,0.05) 0 1px, transparent 1px 12px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--text-mid);
  font-family: var(--wide);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-align: center;
  padding: 12px;
  border-radius: 16px;
}
/* 滿版出血區塊（主視覺）維持直角，不套用圓角 */
.hero-full .ph { border-radius: 0; }
.ph.tone-a { background-color: var(--grey-1); }
.ph.tone-b { background-color: var(--grey-2); }
.ph.tone-c { background-color: var(--grey-3); color: rgba(53,53,53,0.6); }
.ph.tone-d { background-color: var(--grey-4); color: rgba(255,255,255,0.85); }

.ratio-45 { aspect-ratio: 4/5; }
.ratio-43 { aspect-ratio: 4/3; }
.ratio-169 { aspect-ratio: 16/9; }
.ratio-1610 { aspect-ratio: 16/10; }
.ratio-11 { aspect-ratio: 1/1; }
.ratio-1611 { aspect-ratio: 16/11; }

/* ---------------- header ----------------
   整條橢圓形浮動導覽列（參考 DARION）：白色膠囊、陰影浮在畫面上方，
   logo 放大，選單項目 hover 呈橢圓底色。
------------------------------------------- */
header.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px 24px 0;
  background: transparent;
}
.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 16px 0 28px;
  height: 70px;
  border-radius: 999px;
  background: rgba(255,255,255,0.96);
  box-shadow: 0 10px 34px rgba(26,26,26,0.16);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo-link { display: flex; align-items: center; text-decoration: none; }
.logo-link img { height: 32px; width: auto; }

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
nav.main-nav a {
  text-decoration: none;
  color: var(--text-charcoal);
  font-size: 12.5px;
  letter-spacing: 0.05em;
  white-space: nowrap;
  padding: 9px 16px;
  border-radius: 999px;
  transition: background .2s ease, color .2s ease;
}
nav.main-nav a:hover { background: var(--grey-1); color: var(--brand-grey-dark); }

.header-cta {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--text-charcoal);
  border: 1px solid var(--text-charcoal);
  text-decoration: none;
  font-size: 12.5px;
  letter-spacing: 0.05em;
  color: var(--white);
  white-space: nowrap;
  transition: background .25s ease, color .25s ease;
}
.header-cta:hover { background: var(--brand-grey-dark); border-color: var(--brand-grey-dark); }

.nav-toggle {
  display: none;
  align-items: center;
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: none;
  cursor: pointer;
  font-family: var(--wide);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--text-charcoal);
}

@media (max-width: 860px) {
  header.site-header { padding: 14px 16px 0; }
  .header-inner { padding: 0 10px 0 20px; height: 60px; }
  .logo-link img { height: 26px; }
  nav.main-nav {
    position: absolute;
    top: 74px;
    left: 16px;
    right: 16px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(26,26,26,0.14);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 20px;
    display: none;
  }
  nav.main-nav.open { display: flex; }
  nav.main-nav a {
    width: 100%;
    padding: 14px 0;
    border-radius: 0;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
  }
  nav.main-nav a:last-child { border-bottom: none; }
  nav.main-nav a:hover { background: none; }
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
}

/* ---------------- hero ---------------- */
.hero {
  padding: 72px 0 64px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  gap: 56px;
  align-items: end;
}
/* nendo 風：主視覺照片往右邊出血到視窗邊緣，更有戲劇感 */
@media (min-width: 1241px) {
  .hero-grid { grid-template-columns: 1.1fr 1fr; }
  .hero-grid > .ph {
    margin-right: calc(-1 * ((100vw - 1240px) / 2) - 32px);
  }
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  font-family: var(--wide);
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--brand-grey-dark);
}
.eyebrow .bar { width: 26px; height: 1px; background: var(--brand-grey-dark); }

h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 52px;
  line-height: 1.3;
  letter-spacing: 0.04em;
  margin: 0 0 20px;
}
.hero p.lead {
  max-width: 440px;
  font-size: 16px;
  line-height: 1.95;
  color: #5c5c5c;
  font-weight: 300;
  margin: 0 0 36px;
}
.btn-row { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.btn-dark {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  height: 50px;
  padding: 0 30px;
  background: var(--text-charcoal);
  color: var(--white);
  font-size: 14.5px;
  letter-spacing: 0.1em;
  transition: background .3s ease;
}
.btn-dark:hover { background: var(--brand-grey-dark); }
.btn-line {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 50px;
  padding: 0 26px;
  background: #4A4A4A;
  color: #fff;
  font-size: 14.5px;
  letter-spacing: 0.06em;
  white-space: nowrap;
  transition: background 0.2s ease;
}
.btn-line:hover { background: #353535; }
.btn-outline {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  height: 50px;
  padding: 0 30px;
  border: 1px solid var(--text-charcoal);
  color: var(--text-charcoal);
  font-size: 14.5px;
  letter-spacing: 0.1em;
}
.link-underline {
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--text-charcoal);
  border-bottom: 1px solid var(--text-charcoal);
  padding-bottom: 3px;
  white-space: nowrap;
}
.link-underline.light { color: var(--white); border-bottom-color: rgba(255,255,255,0.85); }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  h1 { font-size: 36px; }
}

/* ---------------- trust / feature row（DARION 風信任列，黑底白字） ---------------- */
.trust-band { background: var(--text-charcoal); }
.trust-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 26px 0;
}
.trust-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.trust-item .icon {
  flex: none;
  width: 26px;
  height: 26px;
  color: rgba(246,246,246,0.85);
}
.trust-item .icon svg { width: 100%; height: 100%; }
.trust-item .text-en { display: none; }
.trust-item .text-zh {
  display: block;
  font-size: 13.5px;
  letter-spacing: 0.03em;
  color: rgba(246,246,246,0.88);
  white-space: nowrap;
}
@media (max-width: 860px) {
  .trust-row { grid-template-columns: 1fr 1fr; row-gap: 20px; }
  .trust-item { justify-content: flex-start; }
}
@media (max-width: 540px) {
  .trust-row { grid-template-columns: 1fr; }
}

/* ---------------- full-bleed overlay hero（DARION 風：圖上疊字＋深色漸層） ---------------- */
.hero-full { position: relative; overflow: hidden; }
.hero-full .ph {
  width: 100%;
  aspect-ratio: 21/9;
  margin: 0;
}
@media (max-width: 860px) {
  .hero-full { height: 82vh; min-height: 520px; }
  .hero-full > img,
  .hero-full .ph {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
    margin: 0;
  }
}
.hero-full::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(18,18,18,0.75) 0%, rgba(18,18,18,0.3) 42%, rgba(18,18,18,0.02) 66%);
  pointer-events: none;
}
.hero-full-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 0 32px 52px;
}
.hero-full-content .inner { max-width: 1240px; margin: 0 auto; }
.hero-full-content .eyebrow { color: rgba(246,246,246,0.8); }
.hero-full-content .eyebrow .bar { background: rgba(246,246,246,0.8); }
.hero-full-content h1 { color: var(--white); }
.hero-full-content p.lead { color: rgba(246,246,246,0.85); }
@media (max-width: 860px) {
  .hero-full-content { padding: 0 22px 42px; }
  .hero-full-content .eyebrow { margin-bottom: 16px; font-size: 11px; letter-spacing: 0.18em; }
  .hero-full-content h1 { font-size: 33px; line-height: 1.34; margin-bottom: 16px; }
  .hero-full-content p.lead { font-size: 14.5px; line-height: 1.85; max-width: 100%; margin-bottom: 26px; }
  .hero-full-content .btn-row { gap: 20px; }
}

/* ---------------- editorial split section（大圖＋文字，propro/DARION 風） ---------------- */
.editorial {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 64px;
  align-items: center;
}
.editorial .content { max-width: 420px; }
.editorial .eyebrow-sm {
  display: block;
  font-family: var(--wide);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--text-mid);
  margin-bottom: 18px;
}
.editorial h2 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 30px;
  line-height: 1.45;
  letter-spacing: 0.02em;
  margin: 0 0 18px;
  color: var(--text-charcoal);
}
.editorial p {
  font-size: 15px;
  line-height: 1.9;
  color: #6e6e6e;
  font-weight: 300;
  margin: 0 0 30px;
}
@media (max-width: 860px) {
  .editorial { grid-template-columns: 1fr; gap: 32px; }
  .editorial .content { max-width: none; }
}

/* ---------------- pill buttons（黑色圓角膠囊，DARION 風） ---------------- */
.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 30px;
  border-radius: 999px;
  background: var(--text-charcoal);
  color: var(--white);
  text-decoration: none;
  font-size: 13.5px;
  letter-spacing: 0.06em;
  transition: background .25s ease;
}
.btn-pill:hover { background: var(--brand-grey-dark); }
.btn-pill-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text-charcoal);
  text-decoration: none;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.btn-pill-outline:hover { border-color: var(--text-charcoal); }
.btn-pill-outline.on-dark { border-color: rgba(246,246,246,0.4); color: var(--offwhite); }
.btn-pill-outline.on-dark:hover { border-color: var(--white); color: var(--white); }

/* ---------------- 深色版 band（Bestseller 風） ---------------- */
.band-dark .tag { color: rgba(246,246,246,0.55); }
.band-dark .section-head p { color: rgba(246,246,246,0.65); }
.band-dark .link-underline { color: var(--offwhite); border-color: var(--offwhite); }
.band-dark .prod-card h4 { color: var(--offwhite); }
.band-dark .prod-card .price,
.band-dark .prod-card .cat-label { color: rgba(246,246,246,0.55); }

/* ---------------- section headings ---------------- */
.section { padding: 88px 0; }
.section.tight { padding: 56px 0; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}
.section-head h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 34px;
  margin: 14px 0 0;
  line-height: 1.35;
}
.section-head p {
  max-width: 440px;
  font-size: 15px;
  line-height: 1.9;
  color: #6e6e6e;
  font-weight: 300;
  margin: 12px 0 0;
}
.tag {
  font-family: var(--wide);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--brand-grey-dark);
}

.band { background: var(--grey-1); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-dark { background: #4A4A4A; color: var(--offwhite); border-top: none; border-bottom: none; }

/* ---------------- grids ---------------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-4.tiles { gap: 3px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }

@media (max-width: 860px) {
  .grid-4, .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .grid-4, .grid-3 { grid-template-columns: 1fr; }
}

/* ---------------- category poster tiles (MUJI-style 圖上疊字) ---------------- */
.cat-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
}
.cat-card .ph { margin-bottom: 0; border-radius: 0; }
.cat-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(53,53,53,0.62) 0%, rgba(53,53,53,0.08) 45%, rgba(53,53,53,0) 62%);
  pointer-events: none;
  transition: background .3s ease;
}
.cat-card:hover::after { background: linear-gradient(to top, rgba(53,53,53,0.72) 0%, rgba(53,53,53,0.12) 45%, rgba(53,53,53,0) 62%); }
.cat-card .en {
  position: absolute;
  left: 20px;
  bottom: 52px;
  z-index: 2;
  font-family: var(--wide);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.78);
  display: block;
  margin: 0;
}
.cat-card .name {
  position: absolute;
  left: 20px;
  bottom: 18px;
  z-index: 2;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 23px;
  letter-spacing: 0.14em;
  color: var(--white);
}

/* ---------------- catalog product grid (propro 風：無框、簡潔) ---------------- */
.prod-card {
  text-decoration: none;
  color: inherit;
  display: block;
}
.prod-card .info { padding: 16px 2px 0; }
.prod-card .cat-label {
  font-family: var(--wide);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--text-mid);
}
.prod-card h4 {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 15.5px;
  letter-spacing: 0.03em;
  line-height: 1.5;
  margin: 10px 0 8px;
  color: var(--text-charcoal);
}
.prod-card .price {
  font-size: 13.5px;
  color: var(--text-mid);
  letter-spacing: 0.05em;
}

/* ---------------- process steps ---------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { text-align: center; }
.step .circle {
  width: 74px; height: 74px; border-radius: 50%;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(53,53,53,0.10);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 22px;
  font-family: var(--serif);
  font-size: 26px;
  color: var(--brand-grey-dark);
}
.step .step-en {
  font-family: var(--wide); font-size: 12px; letter-spacing: 0.16em;
  color: var(--brand-grey-dark); margin-bottom: 8px;
}
.step h4 { font-family: var(--serif); font-weight: 500; font-size: 19px; margin: 0 0 8px; }
.step p { font-size: 13.5px; color: #6e6e6e; font-weight: 300; line-height: 1.8; margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; } }
@media (max-width: 540px) { .steps { grid-template-columns: 1fr; } }

/* ---------------- contact / visit ---------------- */
.visit-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: stretch; }
.visit-grid > *, .grid-2 > *, .editorial > *, .hero-grid > * { min-width: 0; }
.info-list { display: flex; flex-direction: column; gap: 16px; margin: 24px 0 32px; }
.info-list .row { display: flex; gap: 16px; }
.info-list .label {
  font-family: var(--wide); font-size: 12px; letter-spacing: 0.1em;
  color: var(--text-mid); min-width: 56px; padding-top: 2px;
}
.info-list .val { font-size: 15px; color: var(--text-charcoal); }
@media (max-width: 860px) { .visit-grid { grid-template-columns: 1fr; } }

.map-frame { border: 1px solid var(--line); overflow: hidden; border-radius: 16px; }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(0.15); }

/* ---------------- footer（淺灰底） ---------------- */
footer.site-footer {
  background: #EAEAEA;
  color: var(--text-charcoal);
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 40px;
  padding: 64px 0 44px;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}
.footer-grid h5 {
  font-family: var(--wide);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--text-mid);
  margin: 0 0 16px;
  font-weight: 400;
}
.footer-grid a {
  display: block;
  text-decoration: none;
  font-size: 14px;
  color: rgba(53,53,53,0.78);
  margin-bottom: 12px;
}
.footer-grid a:hover { color: var(--text-charcoal); }
/* LINE「加入好友」按鈕：還原置中，避免被 .footer-grid a 的 display:block 蓋掉 */
.footer-grid a.btn-line {
  display: inline-flex;
  align-items: center;
  color: #fff;
  margin-bottom: 0;
}
.footer-brand-row { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.footer-brand-row img { height: 26px; width: auto; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 0; font-size: 12px; letter-spacing: 0.04em; color: var(--text-mid);
  flex-wrap: wrap; gap: 12px;
}
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------------- generic content page ---------------- */
.page-hero {
  padding: 134px 0 40px;
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: 42px; margin-bottom: 14px; }
.page-hero p { max-width: 560px; font-size: 15.5px; line-height: 1.9; color: #6e6e6e; font-weight: 300; margin: 0; }

.prose p { font-size: 15.5px; line-height: 2; color: #5c5c5c; font-weight: 300; margin: 0 0 20px; }
.prose h3 { font-family: var(--serif); font-weight: 500; font-size: 24px; margin: 0 0 16px; }

.filter-row {
  display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 40px;
}
.filter-row a {
  text-decoration: none;
  font-family: var(--wide);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-charcoal);
  border: 1px solid var(--line);
  padding: 10px 20px;
}
.filter-row a.active { background: var(--text-charcoal); color: var(--white); border-color: var(--text-charcoal); }
