:root {
  color: #222;
  background: #f3f4f6;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    linear-gradient(to bottom, #fcf5ee 0, #f3f4f6 320px),
    #f3f4f6;
}

button {
  padding: 0;
  border: 0;
  border-radius: 0;
  appearance: none;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
}

.page {
  min-height: 100vh;
  max-width: 750px;
  margin: 0 auto;
  padding: max(14px, env(safe-area-inset-top)) 14px calc(28px + env(safe-area-inset-bottom));
}

.hero {
  height: 136px;
  margin-bottom: 14px;
  border-radius: 16px;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 38%, rgba(255, 255, 255, .34), transparent 18%),
    linear-gradient(135deg, #ff7b3d 0%, #f59b46 48%, #f5c56d 100%);
  box-shadow: 0 10px 26px rgba(226, 112, 44, .12);
}

.hero-copy {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px;
  color: #fff;
}

.hero-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  opacity: .86;
}

.hero h1 {
  margin: 8px 0 0;
  font-size: 31px;
  line-height: 1.05;
  letter-spacing: 0;
}

.hero p {
  margin: 9px 0 0;
  font-size: 15px;
}

.panel,
.image-link {
  margin-bottom: 14px;
  padding: 18px 16px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .035);
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.section-head h2,
.image-link h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 900;
}

.section-head span,
.image-link p {
  margin: 0;
  color: #8d8f88;
  font-size: 14px;
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px 10px;
}

.brand-item,
.category-item {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.brand-logo {
  width: 64px;
  height: 42px;
  border-radius: 12px;
  background: #f8f6f2;
  object-fit: contain;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .035);
}

.brand-name,
.category-name {
  width: 100%;
  margin-top: 5px;
  color: #222;
  font-size: 13px;
  line-height: 1.3;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-scroll,
.product-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.category-scroll::-webkit-scrollbar,
.product-scroll::-webkit-scrollbar {
  display: none;
}

.category-grid {
  width: max-content;
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(2, 72px);
  grid-auto-columns: 72px;
  gap: 12px 12px;
}

.category-img {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  object-fit: cover;
  background: #f8f6f2;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .035);
}

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

.campaign-card {
  height: 92px;
  padding: 13px 12px;
  border-radius: 18px;
  display: flex;
  justify-content: space-between;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .72);
}

.campaign-title {
  display: block;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.15;
}

.campaign-tag {
  display: block;
  width: fit-content;
  max-width: 92px;
  margin-top: 10px;
  padding: 5px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 4px 14px rgba(255, 100, 40, .12);
  color: #e94b30;
  font-size: 12px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.campaign-img {
  width: 66px;
  height: 66px;
  align-self: center;
  object-fit: contain;
}

.product-row {
  width: max-content;
  display: flex;
  gap: 12px;
}

.scroll-product {
  width: 104px;
  padding: 10px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .04);
}

.scroll-product img {
  width: 84px;
  height: 84px;
  object-fit: contain;
}

.scroll-product-name {
  display: block;
  height: 40px;
  margin-top: 8px;
  color: #222;
  font-size: 14px;
  font-weight: 800;
  line-height: 20px;
  overflow: hidden;
  text-align: center;
}

.price {
  display: block;
  margin-top: 8px;
  color: #f33a35;
  font-size: 20px;
  font-weight: 900;
}

.image-link {
  min-height: 92px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.image-thumb {
  width: 82px;
  height: 68px;
  flex-shrink: 0;
  border-radius: 13px;
  background:
    radial-gradient(circle at 30% 35%, #9bd2ff 0 7px, transparent 8px),
    linear-gradient(135deg, #e7f5ff, #d9efe6);
}

.waterfall {
  display: flex;
  gap: 12px;
}

.waterfall-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feed-card {
  padding: 12px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .04);
}

.feed-card img {
  width: 100%;
  height: 176px;
  object-fit: contain;
}

.feed-card:nth-child(2n) img {
  height: 200px;
}

.feed-name {
  display: block;
  min-height: 42px;
  color: #222;
  font-size: 16px;
  font-weight: 900;
  line-height: 21px;
  text-align: center;
}

.feed-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}

.feed-btn {
  padding: 6px 13px;
  border-radius: 16px;
  background: linear-gradient(135deg, #ff6b4a, #ff1020);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 6px 14px rgba(255, 16, 32, .18);
}
