body.public-body {
  --home-bg-top: #f7f4ed;
  --home-bg-mid: #f1ece2;
  --home-bg-bottom: #fbfaf7;
  --home-blob-main: rgba(92, 126, 108, 0.12);
  --home-blob-soft: rgba(135, 114, 86, 0.08);
  --home-panel-border: rgba(217, 210, 198, 0.96);
  --home-panel-bg: rgba(255, 255, 255, 0.98);
  --home-panel-shadow: rgba(72, 66, 54, 0.08);
  --home-text-strong: #2d312b;
  --home-text-base: #455046;
  --home-text-muted: #6f786f;
  --home-accent: #5d7d68;
  --home-accent-strong: #436451;
  --home-accent-soft: #edf3ee;
  --home-secondary: #9f7d57;
  --home-line-soft: #d8d0c5;
}

body.public-body {
  min-width: 1240px;
  background:
    radial-gradient(circle at top left, var(--home-blob-main) 0, rgba(92, 126, 108, 0) 30%),
    radial-gradient(circle at bottom right, var(--home-blob-soft) 0, rgba(135, 114, 86, 0) 32%),
    linear-gradient(180deg, var(--home-bg-top) 0%, var(--home-bg-mid) 50%, var(--home-bg-bottom) 100%);
  color: var(--home-text-strong);
}

.public-shell {
  width: 1200px;
  padding: 0 0 36px;
}

.bg-blob {
  opacity: 0.12;
}

.notice-bar {
  margin: -6px -16px 12px;
  padding: 9px 18px;
  border-radius: 0;
  border: 0;
  border-bottom: 2px solid #b6c4b9;
  background: linear-gradient(90deg, #f3f5ef 0%, #eceee7 100%);
  box-shadow: none;
  justify-content: center;
}

.notice-pill {
  padding: 0;
  background: transparent;
  color: var(--home-accent-strong);
  font-size: 13px;
  letter-spacing: 0;
}

.notice-bar p {
  color: #5f6d61;
  font-size: 13px;
  font-weight: 700;
}

.panel {
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid var(--home-panel-border);
  background: var(--home-panel-bg);
  box-shadow: 0 8px 28px var(--home-panel-shadow);
  backdrop-filter: none;
}

.public-panel {
  margin-bottom: 16px;
}

.section-panel {
  overflow: hidden;
}

.hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 18px;
  align-items: stretch;
  margin-bottom: 16px;
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid var(--home-panel-border);
  background:
    linear-gradient(90deg, rgba(251, 252, 249, 0.98) 0%, rgba(241, 245, 239, 0.96) 100%);
  box-shadow: 0 12px 30px var(--home-panel-shadow);
}

.hero-copy {
  display: flex;
  align-items: center;
  min-width: 0;
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.hero-logo,
.hero-logo-fallback {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  box-shadow: none;
  flex-shrink: 0;
}

.hero-brand h1 {
  margin: 0 0 6px;
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--home-accent);
}

.hero-brand p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--home-text-base);
}

.hero-side-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding-left: 16px;
  border-left: 1px solid var(--home-line-soft);
  background: transparent;
}

.hero-side-copy {
  min-width: 0;
}

.hero-side-copy h2 {
  margin: 0;
  font-size: 18px;
  color: var(--home-text-strong);
}

.hero-side-tip {
  margin-top: 6px;
  color: var(--home-secondary);
  font-weight: 700;
}

.hero-qr,
.hero-qr-upgrade {
  width: 128px;
  height: 128px;
  border-radius: 10px;
  border: 1px solid var(--home-line-soft);
  box-shadow: 0 4px 14px var(--home-panel-shadow);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 14px;
}

.section-heading.compact {
  align-items: center;
}

.section-heading h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
  color: var(--home-text-strong);
}

.section-subtitle,
.section-heading p {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--home-text-muted);
}

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

.spotlight-card {
  position: relative;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 10px 14px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--home-panel-border);
  background: linear-gradient(180deg, #fdfdfb 0%, #f4f7f2 100%);
  box-shadow: 0 8px 18px rgba(72, 66, 54, 0.06);
}

.recommend-card-media {
  width: 112px;
  height: 112px;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.spotlight-thumb {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  object-fit: cover;
}

.hot-ribbon {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  padding: 3px 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff824f 0%, #fa6400 100%);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}

.spotlight-copy {
  display: grid;
  align-content: start;
  gap: 6px;
  min-width: 0;
}

.recommend-card-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--home-text-muted);
}

.brand-avatar-fallback {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--home-accent) 0%, var(--home-accent-strong) 100%);
  color: #fff;
  font-size: 11px;
  flex-shrink: 0;
}

.recommend-card-brand span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recommend-card-title {
  display: -webkit-box;
  margin: 0;
  font-size: 23px;
  line-height: 1.42;
  font-weight: 700;
  color: var(--home-text-strong);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.recommend-card-details {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  min-height: 22px;
  font-size: 13px;
  color: var(--home-text-muted);
}

.recommend-card-meta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}

.recommend-card-meta span {
  font-size: 31px;
  font-weight: 800;
  color: #e02020;
  letter-spacing: -0.02em;
}

.recommend-card-meta em {
  font-style: normal;
  font-size: 22px;
  font-weight: 900;
  color: #d60000;
  letter-spacing: 0;
}

.recommend-card-sales {
  font-size: 16px;
  font-weight: 700;
  color: #8f3b1f;
}

.recommend-card-actions {
  grid-column: 1 / -1;
}

.catalog-action-grid,
.product-table-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.catalog-action-grid .button,
.product-table-actions .button {
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--home-line-soft);
  background: var(--home-accent-soft);
  color: var(--home-accent-strong);
  box-shadow: none;
  font-size: 14px;
  font-weight: 600;
}

.catalog-search-panel {
  position: static;
  top: auto;
  z-index: auto;
  backdrop-filter: none;
}

.toolbar-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) 260px 152px;
  gap: 16px;
  align-items: end;
}

.toolbar-field {
  display: grid;
  gap: 8px;
}

.keyword-field {
  grid-template-columns: 108px minmax(0, 1fr);
  align-items: center;
}

.toolbar-label {
  color: var(--home-text-base);
  font-size: 18px;
  font-weight: 600;
}

.toolbar-label-hidden {
  display: none;
}

.toolbar-submit .button {
  min-height: 56px;
  border-radius: 12px;
  font-size: 20px;
}

.toolbar-grid input,
.toolbar-grid select {
  height: 56px;
  border-radius: 12px;
  border: 1px solid var(--home-line-soft);
  background: #fbfbf9;
  font-size: 19px;
  padding-left: 16px;
  padding-right: 16px;
}

.panel-header-stacked {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.panel-header-stacked .section-heading {
  width: 100%;
}

.panel-header-stacked .section-heading p {
  margin: 0;
  font-size: 15px;
  color: var(--home-text-muted);
}

.catalog-list-grid {
  display: grid;
  gap: 12px;
}

.catalog-list-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--home-panel-border);
  background: linear-gradient(180deg, #ffffff 0%, #f5f7f4 100%);
  box-shadow: 0 6px 16px rgba(72, 66, 54, 0.05);
}

.catalog-list-media {
  width: 112px;
}

.catalog-cover {
  width: 112px;
  height: 112px;
  border-radius: 12px;
  object-fit: cover;
}

.catalog-list-main {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.catalog-list-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}

.catalog-list-text {
  min-width: 0;
}

.product-table-title {
  display: -webkit-box;
  margin: 0;
  font-size: 24px;
  line-height: 1.46;
  color: var(--home-text-strong);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-table-meta {
  margin-top: 6px;
  font-size: 16px;
  color: var(--home-text-base);
}

.catalog-list-code {
  margin-top: 4px;
  font-size: 15px;
  color: var(--home-text-muted);
}

.catalog-list-price {
  flex: 0 0 148px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  align-self: center;
}

.catalog-list-price strong {
  display: block;
  font-size: 34px;
  line-height: 1.1;
  color: #e02020;
  letter-spacing: -0.02em;
}

.catalog-list-price span {
  display: block;
  margin-top: 18px;
  font-size: 22px;
  font-weight: 900;
  color: #d60000;
  line-height: 1.2;
  white-space: normal;
  word-break: break-word;
  text-align: center;
}

.catalog-list-price em {
  display: block;
  margin-top: 14px;
  font-style: normal;
  font-size: 18px;
  font-weight: 800;
  color: #8f3b1f;
  text-align: center;
}

.product-table-actions {
  width: 260px;
}

.pagination-line {
  margin-top: 22px;
}

.page-pill {
  min-width: 42px;
  padding: 9px 14px;
  border-radius: 10px;
  border: 1px solid #ded5cc;
  box-shadow: none;
}

.page-pill.active {
  background: var(--home-accent);
}

.page-jump {
  border-radius: 10px;
  box-shadow: none;
}

.page-jump input {
  border-radius: 8px;
}

.empty-block {
  padding: 24px;
  text-align: center;
  color: #7a6a5b;
}

.modal-card {
  width: min(560px, 100%);
  text-align: center;
}

.qr-preview {
  margin-top: 14px;
  width: min(420px, 100%);
  max-width: 100%;
  height: auto;
  margin-left: auto;
  margin-right: auto;
}

.qr-modal-tip {
  margin: 14px 0 0;
  text-align: center;
  font-size: 16px;
  line-height: 1.65;
  color: var(--home-secondary);
  font-weight: 700;
  white-space: normal;
  word-break: break-word;
  max-width: 100%;
}

.link-preview {
  margin-top: 14px;
}

.public-footer {
  text-align: center;
  color: var(--home-text-muted);
  padding: 18px 0 8px;
  font-size: 15px;
  line-height: 1.9;
}

.footer-company {
  font-size: 18px;
  font-weight: 700;
  color: var(--home-text-strong);
}

.footer-line {
  color: var(--home-text-muted);
}

.footer-record a {
  color: var(--home-accent);
  text-decoration: none;
}

.footer-record a:hover {
  color: var(--home-accent-strong);
}

.placeholder {
  display: grid;
  place-items: center;
  border: 1px dashed rgba(255, 122, 69, 0.28);
  color: #7a6a5b;
}

@media (max-width: 980px) {
  .public-shell {
    width: min(100vw - 12px, 100%);
    padding: 0 0 18px;
  }

  .panel {
    padding: 12px;
    border-radius: 12px;
  }

  .public-panel {
    margin-bottom: 10px;
  }

  .notice-bar {
    margin: -4px -12px 10px;
    padding: 7px 12px;
  }

  .notice-pill,
  .notice-bar p {
    font-size: 10px;
  }

  .hero-card {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px;
    border-radius: 14px;
  }

  .hero-brand {
    align-items: flex-start;
    gap: 10px;
  }

  .hero-logo,
  .hero-logo-fallback {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }

  .hero-brand h1 {
    font-size: 18px;
    margin-bottom: 4px;
  }

  .hero-brand p,
  .hero-side-tip {
    font-size: 12px;
    line-height: 1.55;
  }

  .hero-side-panel {
    grid-template-columns: minmax(0, 1fr) 74px;
    gap: 10px;
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid rgba(243, 225, 204, 0.92);
    padding-top: 10px;
  }

  .hero-side-copy h2 {
    font-size: 14px;
    margin-bottom: 3px;
  }

  .hero-qr,
  .hero-qr-upgrade {
    width: 92px;
    height: 92px;
    border-radius: 8px;
  }

  .section-heading {
    margin-bottom: 10px;
    gap: 8px;
    align-items: flex-start;
    flex-direction: column;
  }

  .section-heading h2 {
    font-size: 19px;
  }

  .section-subtitle,
  .section-heading p {
    margin-top: 2px;
    font-size: 12px;
  }

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

  .spotlight-card {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 8px;
    padding: 9px;
    border-radius: 10px;
  }

  .recommend-card-media,
  .catalog-list-media,
  .catalog-cover,
  .spotlight-thumb {
    width: 72px;
    height: 72px;
    border-radius: 9px;
  }

  .hot-ribbon {
    top: 6px;
    left: 6px;
    padding: 2px 6px;
    font-size: 8px;
  }

  .recommend-card-brand {
    gap: 6px;
    font-size: 11px;
  }

  .brand-avatar-fallback {
    width: 18px;
    height: 18px;
    font-size: 10px;
  }

  .recommend-card-title,
  .product-table-title {
    font-size: 16px;
    line-height: 1.52;
  }

  .recommend-card-details,
  .catalog-list-code,
  .product-table-meta {
    font-size: 13px;
  }

  .recommend-card-meta {
    display: block;
  }

  .recommend-card-meta span,
  .catalog-list-price strong {
    font-size: 24px;
  }

  .recommend-card-meta em,
  .catalog-list-price span {
    font-size: 18px;
  }

  .recommend-card-sales,
  .catalog-list-price em {
    font-size: 14px;
  }

  .catalog-action-grid,
  .product-table-actions {
    gap: 6px;
  }

  .catalog-action-grid .button,
  .product-table-actions .button {
    min-height: 30px;
    padding: 6px 8px;
    border-radius: 8px;
    font-size: 11px;
  }

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

  .keyword-field {
    grid-column: 1 / -1;
    grid-template-columns: 86px minmax(0, 1fr);
  }

  .toolbar-submit {
    grid-column: 1 / -1;
  }

  .toolbar-label {
    font-size: 15px;
  }

  .toolbar-grid input,
  .toolbar-grid select,
  .toolbar-submit .button {
    height: 50px;
    min-height: 50px;
    border-radius: 12px;
    font-size: 17px;
  }

  .catalog-list-card {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
    border-radius: 10px;
  }

  .catalog-list-head {
    display: block;
  }

  .catalog-list-price {
    margin-top: 6px;
    align-items: center;
    text-align: center;
  }

  .product-table-actions {
    width: 100%;
  }

  .pagination-line {
    gap: 6px;
    margin-top: 14px;
  }

  .page-pill {
    min-width: 34px;
    padding: 7px 10px;
    font-size: 13px;
  }

  .page-jump {
    gap: 6px;
    padding: 4px 6px;
  }

  .page-jump span {
    font-size: 11px;
  }

  .page-jump input {
    width: 54px;
    padding: 6px 8px;
  }

  .modal-card {
    width: min(420px, 100%);
    padding: 18px;
    border-radius: 18px;
  }

  .qr-preview {
    width: min(340px, 100%);
  }

  .qr-modal-tip {
    font-size: 15px;
  }

  .public-footer {
    font-size: 13px;
    line-height: 1.8;
  }

  .footer-company {
    font-size: 16px;
  }
}
