body{
  margin:0;
  background:#f3efe7;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang HK","Microsoft JhengHei",sans-serif;
  color:#333;
}

.wrap{
  max-width:1023px;
  margin:0 auto;
  padding:12px;
  box-sizing:border-box;
}

/* top hero */
.ipage-hero{
  width:100%;
  border-radius:16px;
  overflow:hidden;
  margin:0 0 12px;
}

.ipage-hero img{
  width:100%;
  height:auto;          /* 🔥 關鍵：顯示完整高度 */
  display:block;
}

/* intro line */
.fn-subhint{
  margin:0 0 14px;
  color:#6b5b4a;
  font-size:16px;
  line-height:1.45;
  text-align:center;
}

/* section title */
.section-title,
.section-search{
  margin:12px 0 8px;
  font-size:17px;
  font-weight:700;
  color:#5a4634;
}

/* category buttons */
.cats{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:0 0 14px;
}

.cats span{
  display:inline-block;
  padding:10px 14px;
  background:#fff;
  border:1px solid #e4d8c9;
  border-radius:12px;
  font-size:15px;
  line-height:1.2;
  color:#4d3c2f;
  cursor:pointer;
  box-shadow:0 1px 4px rgba(0,0,0,0.04);
}

.cats span:hover{
  background:#fbf6ef;
}

/* chips */
.pool{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:0 0 14px;
}

.pool span{
  display:inline-block;
  padding:8px 12px;
  background:#fff;
  border:1px solid #e5ddd2;
  border-radius:999px;
  font-size:14px;
  line-height:1.2;
  color:#4d3c2f;
  cursor:pointer;
}

.pool span:hover{
  background:#faf5ee;
}

.pool span.active{
  background:#e67e22;
  border-color:#e67e22;
  color:#fff;
  font-weight:700;
}

/* search */
.search{
  width:100%;
  box-sizing:border-box;
  padding:12px 14px;
  margin:0 0 14px;
  border:1px solid #d8cec1;
  border-radius:12px;
  background:#fff;
  font-size:16px;
  color:#333;
  outline:none;
}

.search:focus{
  border-color:#e67e22;
  box-shadow:0 0 0 3px rgba(230,126,34,0.12);
}

/* actions */
.actions{
  display:flex;
  gap:10px;
  margin:0 0 16px;
}

.btn{
  flex:1;
  padding:16px 16px;
  border:none;
  border-radius:12px;
  background:#e67e22;
  color:#fff;
  font-size:18px;
  font-weight:700;
  line-height:1.2;
  letter-spacing:0.3px;
  cursor:pointer;
  box-shadow:0 2px 0 rgba(0,0,0,0.08);
}

.btn:hover{
  opacity:0.96;
}

.btn.secondary{
  background:#d9d4cd;
  color:#333;
  font-size:18px;
  font-weight:600;
}

/* result grid */
.grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:12px;
}

.card{
  display:block;
  background:#fff;
  border-radius:14px;
  overflow:hidden;
  text-decoration:none;
  color:#333;
  box-shadow:0 4px 14px rgba(0,0,0,0.08);
}

.card:hover{
  transform:translateY(-1px);
}

.card img{
  display:block;
  width:100%;
  aspect-ratio:1 / 1;
  object-fit:cover;
  background:#eee;
}

.title{
  padding:8px 8px 10px;
  text-align:center;
  font-size:15px;
  font-weight:700;
  line-height:1.35;
  color:#3f3126;
}

/* empty / message */
.empty{
  grid-column:1 / -1;
  background:#fff;
  border-radius:14px;
  padding:18px;
  text-align:center;
  color:#6b5b4a;
  box-shadow:0 4px 14px rgba(0,0,0,0.06);
}

/* mobile */
@media (max-width:768px){
  .wrap{
    padding:10px;
  }

  .ipage-hero{
    width:100%;
    border-radius:14px;
    margin-bottom:10px;
  }

  .fn-subhint{
    font-size:15px;
    margin-bottom:12px;
  }

  .section-title,
  .section-search{
    font-size:16px;
    margin:10px 0 8px;
  }

  .cats{
    gap:8px;
    margin-bottom:12px;
  }

  .cats span{
    padding:9px 12px;
    font-size:14px;
    border-radius:10px;
  }

  .pool{
    gap:8px;
    margin-bottom:12px;
  }

  .pool span{
    padding:8px 11px;
    font-size:14px;
  }

  .search{
    padding:12px 13px;
    font-size:16px;
    margin-bottom:12px;
  }

  .actions{
    gap:8px;
    margin-bottom:14px;
  }

  .btn{
    padding:16px 12px;
    font-size:18px;
    border-radius:12px;
  }

  .btn.secondary{
    font-size:18px;
  }

  .grid{
    grid-template-columns:repeat(2,1fr);
    gap:10px;
  }

  .title{
    font-size:14px;
    padding:8px 6px 10px;
  }
}