:root{
  --bg: #fbf7f6;
  --card: rgba(255,255,255,.72);
  --ink: #2b2b2b;
  --muted: #7a6f6d;
  --line: rgba(40,40,40,.10);
  --accent: #d0b7b2;
  --accent2: #b8c4c2;
  --shadow: 0 18px 45px rgba(0,0,0,.08);
  --r: 18px;
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family: 微軟正黑體,ui-sans-serif, system-ui, -apple-system, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  background: radial-gradient(900px 600px at 10% 0%, rgba(208,183,178,.25), transparent 55%),
              radial-gradient(900px 600px at 90% 10%, rgba(184,196,194,.25), transparent 55%),
              var(--bg);
  color:var(--ink);
}

.wrap{
  width:min(980px, 92vw);
  margin: 26px auto 40px;
}

/* HERO：改成「上圖下字」讓橫圖完整顯示 */
.hero{
  display:flex;
  flex-direction: column;
  gap:14px;
  align-items: stretch;
  padding:16px;
  border:1px solid var(--line);
  border-radius: var(--r);
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

/* 首圖完整展開：不裁切、以高度控制 */
.hero__img{
  width: 100%;
  height: 180px;          /* 你要更高就改這裡：220/260 都可以 */
  object-fit: contain;    /* ✅關鍵：完整顯示，不裁切 */
  background: rgba(255,255,255,.55);
  border-radius: 16px;
  border: 1px solid var(--line);
  padding: 10px;          /* 給橫圖留呼吸感，避免貼邊 */
}

/* 桌機：可選擇改回左右排（但仍保持橫圖完整） */
@media (min-width: 760px){
  .hero{
    flex-direction: row;
    align-items: center;
  }
  .hero__img{
    width: 360px;         /* 桌機左側固定寬 */
    height: 120px;        /* 桌機高度 */
    padding: 10px;
  }
}

.hero__text h1{
  margin:0;
  font-size: 1.55rem;
  letter-spacing:.02em;
}
.sub{
  margin:6px 0 0;
  color: var(--muted);
  font-size: .95rem;
}

.ticker{
  margin-top:14px;
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px 14px;
  border-radius: var(--r);
  border:1px solid var(--line);
  background: rgba(255,255,255,.55);
  backdrop-filter: blur(10px);
}

.ticker__label{
  font-size:.9rem;
  color: var(--muted);
  padding:6px 10px;
  border:1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.65);
  white-space: nowrap;
}

.ticker__box{
  overflow:hidden;
  flex:1;
  border-left: 1px solid var(--line);
  padding-left: 12px;
}

.ticker__track{
  display:inline-flex;
  gap:28px;
  white-space: nowrap;
  will-change: transform;
  animation: marquee 22s linear infinite;
}

.ticker__track:hover{ animation-play-state: paused; }

@keyframes marquee{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}

.ticker a{
  color: var(--ink);
  text-decoration:none;
  border-bottom: 1px dashed rgba(0,0,0,.25);
}
.ticker a:hover{ border-bottom-style: solid; }

.muted{ color: var(--muted); }

.links{
  margin-top:16px;
  display:grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.btn{
  display:flex;
  justify-content:center;
  align-items:center;
  padding: 14px 14px;
  border-radius: 16px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.78);
  box-shadow: 0 10px 22px rgba(0,0,0,.06);
  text-decoration:none;
  color: var(--ink);
  font-weight: 600;
  letter-spacing:.02em;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}

.btn:hover{
  transform: translateY(-1px);
  border-color: rgba(208,183,178,.7);
  box-shadow: 0 14px 30px rgba(0,0,0,.09);
}

.footer{
  margin-top:18px;
  padding: 14px 10px 6px;
  text-align:center;
  color: var(--muted);
}

.icons{
  display:flex;
  justify-content:center;
  gap: 14px;
  margin-bottom:10px;
}

.icon{
  width:44px;height:44px;
  display:grid;place-items:center;
  border-radius: 14px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.65);
  color:#3a3a3a;
  text-decoration:none;
}

.icon svg{ width:22px; height:22px; }

.icon:hover{
  border-color: rgba(208,183,178,.8);
  color:#1f1f1f;
}

@media (min-width: 680px){
  .links{ grid-template-columns: 1fr 1fr; }
}

.product-zone{
  margin-top: 16px;
  padding: 16px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.55);
  backdrop-filter: blur(10px);
}

.zone-head{ margin-bottom: 12px; }
.zone-title{
  font-weight: 800;
  letter-spacing: .02em;
  font-size: 1.05rem;
}
.zone-sub{
  margin-top: 6px;
  color: var(--muted);
  font-size: .92rem;
}

.product-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.product-card{
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.78);
  box-shadow: 0 10px 22px rgba(0,0,0,.06);
  overflow: hidden;
}

/* ✅ 商品卡圖片強制正方形（1:1） */
.product-img{
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;          
  object-fit: cover;     
  display: block;
  background: rgba(255,255,255,.65);
  border-bottom: 1px solid var(--line);
}


.product-body{
  padding: 12px 12px 14px;
}

.product-title{
  font-weight: 800;
  margin: 0;
  line-height: 1.35;
}

.product-note{
  margin: 8px 0 0;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.45;
}

.product-actions{
  margin-top: 12px;
  display:flex;
}

.buy-btn{
  flex: 1;
  display:flex;
  justify-content:center;
  align-items:center;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(208,183,178,.7);
  background: rgba(208,183,178,.25);
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: .02em;
  transition: transform .12s ease, box-shadow .12s ease;
}

.buy-btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(0,0,0,.09);
}

@media (min-width: 760px){
  .product-grid{ grid-template-columns: 1fr 1fr; }
  .product-img{ height: auto; }
}

html{ scroll-behavior:smooth; }

.back-top, .back-home{
  display:inline-block;
  margin-top:16px;
  padding:10px 14px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.2);
  text-decoration:none;
}

.pager{ margin-top: 16px; }
.pager-row{ display:flex; gap:10px; align-items:center; justify-content:space-between; flex-wrap:wrap; }
.pager-pages{ display:flex; gap:8px; align-items:center; justify-content:center; flex-wrap:wrap; }

.pager-btn, .pager-num{
  display:inline-block;
  padding:10px 14px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.2);
  text-decoration:none;
}

.pager-btn.is-disabled{
  opacity:.45;
  cursor:not-allowed;
}

.pager-num.is-active{
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.28);
}

.pager-ellipsis{ opacity:.6; padding: 0 4px; }
.pager-meta{ margin-top:10px; opacity:.7; font-size: 13px; text-align:center; }


