:root {
  --bg: #fbf7ef;
  --surface: #ffffff;
  --surface-soft: #fff8e5;
  --line: #efe3bf;
  --text: #312b23;
  --muted: #7f7363;
  --primary: #ffd56d;
  --primary-deep: #7a5a00;
  --blue: #dfe9ff;
  --pink: #ffe4ef;
  --mint: #ddf5ec;
  --shadow: 0 24px 60px rgba(161, 127, 38, 0.12);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: radial-gradient(circle at left top, #fff8da 0%, #fbf5ee 36%, #fdfaf4 100%);
  color: var(--text);
}
a { color: inherit; text-decoration: none; }
.page-shell {
  width: min(1240px, calc(100vw - 40px));
  margin: 32px auto 48px;
}
.hero-card,
.section-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 34px;
  box-shadow: var(--shadow);
}
.hero-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  padding: 36px;
  background: linear-gradient(145deg, #fff0bf 0%, #ffe8d6 56%, #ffeaf1 100%);
  overflow: hidden;
}
.eyebrow-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.eyebrow {
  display: inline-flex;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,.78);
  color: #795900;
  font-size: 13px;
  font-weight: 700;
}
.eyebrow.soft {
  color: #655849;
}
.hero-copy h1 {
  margin: 18px 0 0;
  font-size: clamp(42px, 5vw, 64px);
  line-height: 1.06;
}
.hero-copy p {
  margin: 18px 0 0;
  color: #665c4d;
  font-size: 16px;
  line-height: 1.85;
  max-width: 620px;
}
.hero-announcement {
  margin-top: 16px;
  display: inline-flex;
  padding: 12px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.78);
  color: #6c5940;
  line-height: 1.7;
}
.hero-search {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-radius: 999px;
  background: rgba(255,255,255,.86);
  color: #655847;
  font-weight: 600;
}
.hero-search-icon {
  width: 36px;
  height: 36px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: #fff1bc;
  color: #7a5a00;
}
.hero-highlights,
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero-highlights { margin-top: 22px; }
.hero-actions {
  margin-top: 24px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-actions.compact {
  margin-top: 0;
}
.primary-btn,
.ghost-btn,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  transition: transform .16s ease, box-shadow .16s ease;
}
.primary-btn:hover,
.ghost-btn:hover,
.text-link:hover { transform: translateY(-1px); }
.primary-btn {
  padding: 14px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffd967, #ffbf36);
  color: #5b4200;
  box-shadow: 0 12px 26px rgba(255, 191, 54, .24);
}
.ghost-btn {
  padding: 14px 22px;
  border-radius: 999px;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(255,255,255,.95);
  color: #5f5647;
}
.hero-poster {
  position: relative;
  min-height: 360px;
  display: grid;
  place-items: center;
}
.poster-card {
  border-radius: 30px;
  box-shadow: 0 26px 50px rgba(108, 79, 18, .16);
}
.poster-main {
  width: min(100%, 380px);
  padding: 24px;
  background: rgba(255,255,255,.84);
  border: 1px solid rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
}
.poster-label {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff2c7;
  color: #7a5a00;
  font-size: 13px;
  font-weight: 700;
}
.poster-title {
  margin-top: 16px;
  font-size: 26px;
  line-height: 1.35;
  font-weight: 700;
  color: #342d24;
}
.poster-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.poster-grid-item {
  height: 98px;
  border-radius: 22px;
  background: linear-gradient(135deg, #fff8da, #ffd9d2);
}
.poster-grid-item.blue { background: linear-gradient(135deg, #edf2ff, #dce8ff); }
.poster-grid-item.pink { background: linear-gradient(135deg, #ffeef3, #ffdfe9); }
.poster-grid-item.mint { background: linear-gradient(135deg, #ecfbf4, #d8f3e7); }
.poster-sticker {
  position: absolute;
  padding: 12px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(255,255,255,.94);
  color: #6d5732;
  font-weight: 700;
  box-shadow: 0 14px 32px rgba(112, 90, 31, .12);
}
.sticker-top { top: 18px; right: 0; transform: rotate(7deg); }
.sticker-bottom { left: 18px; bottom: 14px; transform: rotate(-7deg); }
.content-stack {
  margin-top: 22px;
  display: grid;
  gap: 22px;
}
.section-card {
  padding: 28px;
}
.category-page-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}
.soft-gradient {
  background: linear-gradient(180deg, #fffdf7, #fffaee);
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.section-kicker {
  color: #8e7337;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.section-head h2 {
  margin: 6px 0 0;
  font-size: 28px;
}
.section-subcopy {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
}
.price-filter-block {
  margin-bottom: 18px;
}
.price-filter-row {
  margin-top: 12px;
}
.filter-chip {
  border: 1px solid #eadcb4;
  background: #fffaf0;
  color: #6d5830;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease;
}
.filter-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(161, 127, 38, 0.10);
  border-color: #dfc57d;
}
.filter-chip.is-active {
  background: linear-gradient(135deg, #ffd967, #ffbf36);
  border-color: #ffbf36;
  color: #5b4200;
}
.text-link {
  color: #7c5b00;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.price-entry-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.category-item {
  padding: 22px 18px;
  border-radius: 28px;
  background: #fffdf8;
  border: 1px solid #f4e9cd;
  text-align: center;
}
.category-link {
  display: block;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.category-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(161, 127, 38, 0.10);
  border-color: #e9d292;
}
.category-link:focus-visible {
  outline: 3px solid #ffcf54;
  outline-offset: 3px;
}
.price-entry-card {
  display: flex;
  flex-direction: column;
  min-height: 220px;
  padding: 22px;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,.72);
  box-shadow: 0 20px 40px rgba(161, 127, 38, 0.08);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.price-entry-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 44px rgba(161, 127, 38, 0.14);
  border-color: #ecd796;
}
.price-entry-card:focus-visible {
  outline: 3px solid #ffcf54;
  outline-offset: 3px;
}
.price-entry-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.price-entry-badge,
.price-entry-count {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  color: #6e5830;
  font-size: 12px;
  font-weight: 700;
}
.price-entry-title {
  margin: 18px 0 0;
  font-size: 24px;
  line-height: 1.25;
}
.price-entry-desc {
  margin: 12px 0 0;
  color: #665c4d;
  line-height: 1.75;
  font-size: 14px;
}
.price-entry-link {
  margin-top: auto;
  padding-top: 18px;
  color: #7b5a00;
  font-weight: 700;
  font-size: 14px;
}
.category-icon {
  width: 88px;
  height: 88px;
  margin: 0 auto;
  border-radius: 44px;
  display: grid;
  place-items: center;
  font-size: 34px;
  box-shadow: 0 12px 28px rgba(126, 99, 33, .12);
}
.category-name {
  margin-top: 16px;
  font-size: 18px;
  font-weight: 700;
}
.category-desc {
  margin-top: 8px;
  min-height: 44px;
  color: var(--muted);
  line-height: 1.65;
  font-size: 13px;
}
.art-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.art-item {
  padding: 22px;
  border-radius: 28px;
  background: #fffdf8;
  border: 1px solid #f4e9cd;
}
.art-dot {
  width: 44px;
  height: 44px;
  border-radius: 22px;
}
.art-title {
  margin-top: 18px;
  font-size: 20px;
  font-weight: 700;
}
.art-desc {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.75;
  font-size: 14px;
}
.section-meta {
  color: var(--muted);
  font-weight: 600;
}
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.featured-more-row {
  margin-top: 18px;
  display: flex;
  justify-content: flex-end;
}
.cake-card {
  overflow: hidden;
  border-radius: 28px;
  background: #fffefb;
  border: 1px solid #f1e4bf;
}
.cake-link {
  display: block;
  color: inherit;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.cake-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(161, 127, 38, 0.12);
  border-color: #e9d292;
}
.cake-link:focus-visible {
  outline: 3px solid #ffcf54;
  outline-offset: 3px;
}
.cake-cover {
  width: 100%;
  aspect-ratio: 1.2;
  object-fit: cover;
  display: block;
  background: linear-gradient(135deg, #fff3c0, #dfe9ff);
}
.cake-body { padding: 18px; }
.cake-top {
  display: flex;
  gap: 12px;
  justify-content: space-between;
}
.cake-name { margin: 0; font-size: 21px; }
.cake-scene {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}
.cake-price {
  color: #b86d00;
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}
.cake-price.is-promo {
  white-space: normal;
  min-width: 108px;
}
.cake-price .promo-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}
.cake-price .promo-price {
  color: #c2410c;
  font-size: 16px;
  font-weight: 800;
}
.cake-price .promo-origin {
  margin-top: 4px;
  color: #9a8d78;
  font-size: 12px;
  font-weight: 500;
  text-decoration: line-through;
}
.cake-price .promo-time {
  margin-top: 6px;
  color: #a16207;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  max-width: 140px;
}
.promo-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffedd5, #fed7aa);
  color: #9a3412;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.chip-promo {
  background: linear-gradient(135deg, #ffedd5, #fdba74) !important;
  color: #9a3412 !important;
}
.cake-tagline {
  margin: 14px 0;
  color: #5b5040;
  line-height: 1.7;
  min-height: 48px;
}
.cake-badges .chip {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff5d6;
  color: #775800;
  font-size: 12px;
  font-weight: 700;
}
.cake-footer {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed #eadcb4;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: flex-start;
  color: var(--muted);
  font-size: 13px;
}
.cake-styles {
  text-align: right;
}
.cake-detail-entry {
  margin-top: 14px;
  color: #7b5a00;
  font-weight: 700;
  font-size: 14px;
}
.loading,
.error-block {
  padding: 28px;
  border-radius: 24px;
  text-align: center;
  background: #fffdf8;
  border: 1px dashed #eddca5;
  color: var(--muted);
}
@media (max-width: 1040px) {
  .hero-card,
  .featured-grid,
  .art-grid,
  .category-grid,
  .price-entry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-card { grid-template-columns: 1fr; }
  .hero-poster { min-height: 300px; }
}
@media (max-width: 720px) {
  .page-shell { width: min(100vw - 24px, 1240px); margin: 12px auto 24px; }
  .hero-card,
  .section-card { padding: 20px; border-radius: 24px; }
  .category-page-hero { align-items: flex-start; }
  .hero-copy h1 { font-size: 40px; }
  .hero-copy p,
  .art-desc,
  .cake-tagline { font-size: 14px; }
  .hero-search {
    width: 100%;
    justify-content: flex-start;
    padding: 12px 16px;
    font-size: 14px;
  }
  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .hero-actions .primary-btn,
  .hero-actions .ghost-btn {
    width: 100%;
  }
  .hero-poster {
    min-height: 0;
  }
  .poster-main {
    width: 100%;
    padding: 18px;
  }
  .poster-title { font-size: 22px; }
  .poster-grid-item { height: 78px; }
  .sticker-top,
  .sticker-bottom {
    position: static;
    transform: none;
    margin-top: 12px;
  }
  .featured-grid { grid-template-columns: 1fr; }
  .art-grid { grid-template-columns: 1fr; }
  .price-entry-grid,
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .price-entry-card,
  .category-item { padding: 18px 12px; border-radius: 22px; min-height: 0; }
  .price-entry-title { font-size: 20px; }
  .price-entry-desc { font-size: 13px; }
  .category-icon {
    width: 68px;
    height: 68px;
    border-radius: 34px;
    font-size: 28px;
  }
  .category-name { font-size: 16px; }
  .category-desc { min-height: 0; font-size: 12px; }
  .section-head,
  .cake-top,
  .cake-footer {
    flex-direction: column;
    align-items: flex-start;
  }
  .section-head { margin-bottom: 16px; }
  .cake-name { font-size: 19px; }
  .cake-styles { text-align: left; }
}
@media (max-width: 420px) {
  .page-shell { width: min(100vw - 16px, 1240px); }
  .hero-card,
  .section-card { padding: 16px; border-radius: 20px; }
  .hero-copy h1 { font-size: 34px; }
  .price-entry-grid,
  .category-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .price-entry-top { flex-direction: column; align-items: flex-start; }
  .poster-grid { gap: 10px; }
  .poster-grid-item { height: 68px; }
}
