:root {
  color-scheme: light;
  --bg: #f7f4ef;
  --surface: #ffffff;
  --ink: #273142;
  --muted: #758092;
  --line: #e7ded2;
  --accent: #d83b2d;
  --accent-strong: #b92d22;
  --accent-soft: #fff0ee;
  --navy: #26364f;
  --warning: #b86317;
  --danger: #b42318;
  --shadow: 0 16px 42px rgb(67 54 42 / 0.08);
  --radius: 14px;
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: 0;
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  align-items: center;
  gap: 18px;
  min-height: 70px;
  padding: 12px clamp(16px, 4vw, 44px);
  border-bottom: 1px solid var(--line);
  background: rgb(247 244 239 / 0.92);
  backdrop-filter: blur(18px);
}

.public-topbar {
  grid-template-columns: minmax(220px, 1fr) auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: max-content;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--navy);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 12px 28px rgb(216 59 45 / 0.16);
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 18px;
  letter-spacing: 0;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: flex;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}

.nav a,
.chip,
.ghost-btn,
.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.16s ease, background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.nav a {
  padding: 0 15px;
  color: var(--muted);
  font-size: 14px;
}

.nav a.active,
.primary-btn {
  background: var(--accent);
  color: #fff;
}

.primary-btn {
  padding: 0 18px;
  font-weight: 800;
  box-shadow: 0 12px 28px rgb(216 59 45 / 0.22);
}

.ghost-btn {
  padding: 0 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}

.primary-btn:active,
.ghost-btn:active,
.chip:active,
.buy-link:active {
  transform: translateY(1px) scale(0.99);
}

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 20px auto 48px;
}

.feed-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 14px;
}

.feed-intro h1 {
  margin: 0;
  font-size: clamp(24px, 2.5vw, 34px);
  line-height: 1.15;
  letter-spacing: 0;
}

.guide-intro h1 {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgb(216 59 45 / 0.18);
  border-radius: 999px;
  background: rgb(255 240 238 / 0.72);
  color: var(--accent);
  font-size: 15px;
  font-weight: 900;
}

.feed-intro p {
  margin: 8px 0 0;
  color: var(--muted);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.chip {
  padding: 0 15px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
}

.chip.active {
  border-color: rgb(216 59 45 / 0.34);
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800;
}

.back-top {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(22px, calc(env(safe-area-inset-bottom) + 18px));
  z-index: 20;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgb(231 222 210 / 0.9);
  border-radius: 50%;
  background: rgb(255 255 255 / 0.92);
  color: var(--navy);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 12px 30px rgb(39 49 66 / 0.14);
  cursor: pointer;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease, opacity 0.16s ease;
}

.back-top:hover {
  border-color: rgb(39 49 66 / 0.18);
  background: rgb(255 250 247 / 0.98);
}

.back-top:active {
  transform: translateY(1px) scale(0.98);
}

.back-top[hidden] {
  display: none;
}

.deal-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.deal-row {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) 154px;
  gap: 20px;
  align-items: center;
  min-height: 154px;
  padding: 16px;
  border-bottom: 1px solid #eee7df;
}

.deal-row:not(.disabled) {
  cursor: pointer;
}

.deal-row:not(.disabled):active {
  transform: translateY(1px);
}

.deal-row:last-child {
  border-bottom: 0;
}

.deal-img {
  position: relative;
  width: 140px;
  height: 112px;
  overflow: hidden;
  border-radius: 12px;
  background: #f0e9df;
}

.deal-img.disabled {
  pointer-events: none;
}

.deal-img.image-missing::after,
.deal-img:empty::after {
  content: "鲸";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--navy);
  font-size: 28px;
  font-weight: 900;
}

.deal-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.deal-img span {
  position: absolute;
  left: 8px;
  bottom: 8px;
  max-width: calc(100% - 16px);
  overflow: hidden;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgb(39 49 66 / 0.82);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.deal-copy {
  min-width: 0;
}

.guide-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.guide-kicker span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 900;
}

.guide-kicker small {
  color: var(--muted);
  font-size: 13px;
}

.deal-title {
  display: block;
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.deal-summary {
  display: -webkit-box;
  margin: 9px 0 0;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.62;
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 11px;
  color: var(--muted);
  font-size: 13px;
}

.meta-line span:first-child {
  color: var(--accent);
}

.deal-action {
  display: grid;
  justify-items: center;
  gap: 10px;
}

.price-panel {
  justify-items: stretch;
  gap: 7px;
  padding: 12px;
  border: 1px solid #f0d7d2;
  border-radius: 14px;
  background: linear-gradient(180deg, #fff7f5, #fff);
}

.price-panel small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.price-panel strong {
  display: block;
  overflow: hidden;
  color: var(--accent);
  font-size: 23px;
  font-weight: 950;
  line-height: 1.12;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.price-panel em {
  display: block;
  min-height: 18px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.buy-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 40px;
  margin-top: 4px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  transition: transform 0.16s ease, background 0.16s ease;
}

.buy-link:hover {
  background: var(--accent-strong);
}

.deal-row:focus-within {
  box-shadow: 0 0 0 4px rgb(216 59 45 / 0.10), var(--shadow);
}

.buy-link.disabled {
  pointer-events: none;
  background: #d8d0c5;
  color: #756d64;
}

.loading-row,
.empty-row {
  padding: 32px 20px;
  color: var(--muted);
  text-align: center;
}

.feed-end-row {
  padding: 18px 12px 24px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 16px;
}

.admin-page {
  font-size: 14px;
}

.admin-shell {
  width: min(1180px, calc(100% - 28px));
}

.admin-subnav {
  position: sticky;
  top: 0;
  z-index: 18;
  display: flex;
  gap: 8px;
  margin: -8px 0 12px;
  padding: 10px 2px;
  overflow-x: auto;
  background: rgb(247 244 239 / 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  scrollbar-width: none;
}

.admin-subnav::-webkit-scrollbar {
  display: none;
}

.admin-subnav a {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 0 13px;
  border: 1px solid rgb(216 59 45 / 0.14);
  border-radius: 999px;
  background: #fffaf7;
  color: #6f5f55;
  font-size: 13px;
  font-weight: 900;
  line-height: 32px;
  box-shadow: 0 8px 18px rgb(67 54 42 / 0.05);
}

.admin-group-heading {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 18px 0 9px;
}

.admin-group-heading span {
  color: var(--ink);
  font-size: 17px;
  font-weight: 950;
}

.admin-group-heading strong {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.setting-panel,
.run-panel {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 12px 30px rgb(67 54 42 / 0.07);
}

.setting-panel h2,
.run-panel h2 {
  margin: 0 0 11px;
  font-size: 16px;
}

dl {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 10px 12px;
  margin: 0;
}

dt {
  color: var(--muted);
}

dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
  font-weight: 700;
}

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

.section-title p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.admin-intro {
  margin-bottom: 12px;
}

.admin-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.metric-card {
  display: grid;
  gap: 5px;
  min-height: 96px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.metric-card span,
.metric-card em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.metric-card strong {
  align-self: end;
  color: var(--ink);
  font-size: 26px;
  line-height: 1;
  letter-spacing: 0;
}

.metric-card em b {
  color: var(--ink);
}

.primary-metric {
  background: linear-gradient(135deg, #d83b2d, #b92d22);
  color: #fff;
}

.primary-metric span,
.primary-metric strong,
.primary-metric em {
  color: #fff;
}

.admin-control-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 1fr);
  gap: 14px;
  margin-bottom: 10px;
}

.sync-control-panel,
.sync-health-panel {
  min-height: 154px;
}

.compact-settings {
  grid-template-columns: 1.35fr 1.2fr 0.9fr;
}

.admin-toolbar {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
  padding: 10px;
  border-radius: 16px;
  background: #fffaf7;
}

.admin-search {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  align-items: end;
  gap: 10px;
}

.compact-filters {
  justify-content: flex-start;
}

.bulk-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.bulk-bar strong {
  margin-right: auto;
  color: var(--ink);
}

.run-item {
  display: grid;
  grid-template-columns: 130px 1fr 180px;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.run-item:first-child {
  border-top: 0;
}

.run-time {
  color: var(--muted);
  font-size: 13px;
}

.rank-list {
  display: grid;
  gap: 8px;
}

.rank-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 8px 12px;
  align-items: center;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}

.rank-item:first-child {
  border-top: 0;
}

.rank-item > span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 900;
}

.rank-item strong {
  overflow: hidden;
  font-size: 14px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-item small {
  grid-column: 2;
  color: var(--muted);
}

.rank-item em {
  grid-column: 3;
  grid-row: 1 / 3;
  color: var(--accent);
  font-style: normal;
  font-weight: 900;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.status-badge.published,
.status-badge.done,
.status-badge.source_copy,
.status-badge.mock {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.status-badge.pending,
.status-badge.pending_auth,
.status-badge.pending_taobao_credentials,
.status-badge.taobao_permission_missing,
.status-badge.pending_huajuanyun_credentials,
.status-badge.huajuanyun_api_name_missing,
.status-badge.huajuanyun_user_missing,
.status-badge.huajuanyun_permission_missing,
.status-badge.huajuanyun_missing_num_iid,
.status-badge.huajuanyun_no_link,
.status-badge.pending_real_jd_adapter,
.status-badge.pending_real_taobao_adapter {
  background: #fff4df;
  color: var(--warning);
}

.status-badge.real_taobao,
.status-badge.real_huajuanyun {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.status-badge.hidden {
  background: #ece7df;
  color: #756d64;
}

.status-badge.unsupported,
.status-badge.failed {
  background: #ffeceb;
  color: var(--danger);
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  max-width: min(420px, calc(100vw - 44px));
  padding: 13px 16px;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 18px 52px rgb(39 49 66 / 0.24);
}

.login-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 0, rgb(216 59 45 / 0.12), transparent 34%),
    var(--bg);
}

.login-shell {
  width: min(440px, 100%);
}

.login-panel {
  display: grid;
  gap: 18px;
  padding: 28px;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.login-brand {
  width: 100%;
}

.login-copy h1 {
  margin: 4px 0 8px;
  font-size: 28px;
  line-height: 1.18;
}

.login-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.field {
  display: grid;
  gap: 8px;
  font-weight: 800;
}

.field input,
.field select {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fffaf7;
  color: var(--ink);
  font: inherit;
  outline: none;
}

.field textarea {
  width: 100%;
  min-height: 72px;
  resize: vertical;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fffaf7;
  color: var(--ink);
  font: inherit;
  line-height: 1.55;
  outline: none;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgb(216 59 45 / 0.55);
  box-shadow: 0 0 0 4px rgb(216 59 45 / 0.12);
}

.setting-form {
  display: grid;
  grid-template-columns: minmax(190px, 250px) minmax(170px, 240px) minmax(150px, 210px) auto;
  align-items: end;
  gap: 14px;
}

.content-setting-form {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.content-setting-form .ghost-btn {
  width: 100%;
  min-height: 38px;
}

.compact-field {
  gap: 7px;
  color: var(--ink);
  font-size: 13px;
}

.compact-field span {
  color: var(--muted);
  font-weight: 800;
}

.switch-field {
  align-self: stretch;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fffaf7;
}

.switch-field span {
  grid-column: 1 / 3;
}

.switch-field input {
  width: 42px;
  min-height: 24px;
  height: 24px;
  padding: 0;
  border-radius: 999px;
  accent-color: var(--accent);
}

.switch-field em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.35;
}

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

.result-hint {
  padding: 8px 2px 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.admin-deal-item {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fffaf7;
}

.admin-deal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.admin-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.admin-check input {
  width: 15px;
  height: 15px;
  accent-color: var(--accent);
}

.admin-deal-head strong,
.admin-deal-head span {
  display: block;
}

.admin-deal-head strong {
  line-height: 1.35;
}

.admin-deal-head div > span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.admin-deal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.form-error {
  min-height: 20px;
  margin: -4px 0 0;
  color: var(--danger);
  font-size: 13px;
  font-weight: 700;
}

.form-error:empty {
  display: none;
}

.login-submit {
  min-height: 46px;
}

.return-link {
  justify-self: center;
  color: var(--muted);
  font-weight: 800;
}

.open-app-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% 0, rgb(216 59 45 / 0.13), transparent 34%),
    var(--bg);
}

.open-app-shell {
  display: grid;
  min-height: 100vh;
  padding: max(24px, env(safe-area-inset-top)) 18px max(24px, env(safe-area-inset-bottom));
  place-items: center;
}

.open-app-panel {
  display: grid;
  justify-items: center;
  width: min(420px, 100%);
  padding: 30px 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgb(255 255 255 / 0.96);
  box-shadow: var(--shadow);
  text-align: center;
}

.open-app-panel h1 {
  margin: 18px 0 8px;
  font-size: 24px;
  line-height: 1.22;
}

.open-app-panel p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: var(--muted);
  line-height: 1.6;
}

.open-app-btn {
  width: 100%;
  min-height: 48px;
  margin-top: 22px;
}

.open-app-panel small {
  margin-top: 14px;
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 720px) {
  .topbar,
  .public-topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 66px;
    padding: 10px max(14px, env(safe-area-inset-left)) 10px max(14px, env(safe-area-inset-right));
  }

  .brand {
    width: 100%;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 13px;
  }

  .brand strong {
    font-size: 17px;
  }

  .brand small {
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .public-topbar .primary-btn {
    min-height: 42px;
    padding: 0 16px;
    box-shadow: 0 10px 24px rgb(216 59 45 / 0.18);
  }

  .feed-intro {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .feed-intro p {
    max-width: 28em;
    line-height: 1.55;
  }

  .deal-row {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 14px;
    min-height: 132px;
    padding: 13px;
  }

  .deal-img {
    width: 112px;
    height: 96px;
  }

  .deal-action {
    grid-column: 2;
  }

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

  .admin-overview {
    grid-template-columns: repeat(2, 1fr);
  }

  .admin-control-layout,
  .compact-settings {
    grid-template-columns: 1fr;
  }

  .admin-page .topbar {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
  }

  .admin-page .nav {
    width: max-content;
    max-width: 100%;
  }

  .setting-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  body {
    background:
      linear-gradient(180deg, #fff8f4 0, #f7f4ef 150px),
      var(--bg);
  }

  .shell {
    width: min(100% - 14px, 1120px);
    margin-top: 4px;
    margin-bottom: max(34px, env(safe-area-inset-bottom));
  }

  .public-topbar {
    border-bottom-color: rgb(231 222 210 / 0.72);
    min-height: 54px;
    padding-top: 6px;
    padding-bottom: 6px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 11px;
  }

  .brand strong {
    font-size: 16px;
  }

  .feed-intro {
    gap: 7px;
    margin-bottom: 6px;
  }

  .feed-intro h1 {
    font-size: 20px;
    line-height: 1.08;
  }

  .guide-intro h1 {
    min-height: 24px;
    padding: 0 10px;
    font-size: 14px;
  }

  .feed-intro p {
    display: none;
  }

  .filters {
    width: calc(100% + 14px);
    margin: 0 -7px;
    padding: 0 7px 1px;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .filters::-webkit-scrollbar {
    display: none;
  }

  .chip {
    flex: 0 0 auto;
    min-height: 29px;
    padding: 0 11px;
    font-size: 12px;
  }

  .settings-grid {
    grid-template-columns: 1fr;
  }

  .admin-overview {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .metric-card {
    min-height: 96px;
    padding: 12px;
    border-radius: 14px;
  }

  .metric-card strong {
    font-size: 24px;
  }

  .metric-card span,
  .metric-card em {
    font-size: 12px;
  }

  .admin-shell {
    width: min(100% - 20px, 1120px);
  }

  .admin-deal-head,
  .admin-deal-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-toolbar {
    padding: 10px;
  }

  .admin-search {
    grid-template-columns: 1fr;
  }

  .admin-search .primary-btn,
  .admin-search .ghost-btn {
    width: 100%;
    min-height: 38px;
  }

  .compact-filters {
    width: 100%;
    margin: 0;
    padding: 0 0 1px;
  }

  .bulk-bar {
    align-items: stretch;
    flex-wrap: wrap;
    justify-content: flex-start;
    padding: 10px;
  }

  .bulk-bar strong {
    width: 100%;
    margin-right: 0;
  }

  .bulk-bar .ghost-btn,
  .bulk-bar .primary-btn {
    flex: 1 1 96px;
    min-height: 38px;
  }

  .admin-check {
    width: max-content;
  }

  .rank-item {
    grid-template-columns: 30px minmax(0, 1fr) 54px;
    gap: 6px 9px;
  }

  .rank-item em {
    font-size: 13px;
  }

  .admin-deal-actions .ghost-btn,
  .admin-deal-actions .primary-btn {
    width: 100%;
    min-height: 44px;
  }

  .deal-table {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .deal-list {
    display: grid;
    gap: 5px;
  }

  .deal-row {
    grid-template-columns: 90px minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 4px 9px;
    min-height: 0;
    padding: 8px;
    border: 1px solid rgb(231 222 210 / 0.88);
    border-radius: 13px;
    background: rgb(255 255 255 / 0.96);
    box-shadow: 0 8px 22px rgb(67 54 42 / 0.055);
  }

  .deal-img {
    grid-row: 1 / 3;
    width: 90px;
    height: 90px;
    border-radius: 10px;
  }

  .deal-img span {
    left: 5px;
    bottom: 5px;
    max-width: calc(100% - 10px);
    padding: 2px 6px;
    font-size: 10px;
  }

  .guide-kicker {
    gap: 6px;
    margin-bottom: 1px;
  }

  .guide-kicker span {
    min-height: 20px;
    padding: 0 7px;
    font-size: 10px;
  }

  .guide-kicker small {
    font-size: 11px;
  }

  .deal-title {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 14px;
    line-height: 1.2;
  }

  .deal-summary {
    display: -webkit-box;
    margin-top: 3px;
    -webkit-line-clamp: 1;
    font-size: 12px;
    line-height: 1.28;
  }

  .meta-line {
    gap: 6px;
    margin-top: 3px;
    font-size: 10px;
  }

  .deal-action {
    grid-column: 2;
    margin-top: 0;
  }

  .price-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 76px;
    grid-template-rows: 13px 18px;
    align-items: center;
    gap: 0 5px;
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .price-panel small,
  .price-panel strong,
  .price-panel em {
    min-width: 0;
    grid-column: 1;
  }

  .price-panel small {
    display: none;
  }

  .price-panel strong {
    grid-row: 2;
    font-size: 16px;
    line-height: 1.12;
    white-space: nowrap;
  }

  .price-panel .deal-condition {
    display: block;
    grid-row: 1;
    overflow: hidden;
    color: var(--accent);
    font-size: 10px;
    font-style: normal;
    font-weight: 900;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .buy-link {
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: end;
    min-height: 30px;
    margin-top: 0;
    border-radius: 10px;
    font-size: 12px;
    box-shadow: 0 8px 16px rgb(216 59 45 / 0.16);
  }

  .loading-row,
  .empty-row {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
  }

  .toast {
    right: 10px;
    bottom: max(78px, calc(env(safe-area-inset-bottom) + 78px));
    max-width: calc(100vw - 20px);
    border-radius: 16px;
  }

  .back-top {
    right: max(14px, env(safe-area-inset-right));
    bottom: max(18px, calc(env(safe-area-inset-bottom) + 14px));
    width: 42px;
    height: 42px;
  }

  .run-item {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 380px) {
  .brand {
    gap: 9px;
  }

  .brand small {
    display: none;
  }

  .public-topbar .primary-btn {
    padding: 0 12px;
  }

  .deal-row {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .deal-img {
    width: 82px;
    height: 82px;
  }

  .price-panel {
    grid-template-columns: minmax(0, 1fr) 72px;
  }

  .buy-link {
    min-height: 31px;
    font-size: 12px;
  }
}

/* App feed refinements confirmed on 2026-07-29. */
.public-topbar {
  grid-template-columns: minmax(180px, 1fr) minmax(260px, 430px) auto;
}

.public-search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: #a5adba;
}

.public-search span {
  flex: 0 0 auto;
  font-size: 18px;
  line-height: 1;
}

.public-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
}

.public-search input::placeholder {
  color: #a3abb7;
}

.search-clear {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #eef1f6;
  color: #6f7785;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.search-clear[hidden] {
  display: none;
}

.feed-focus {
  position: relative;
  margin: 0 0 10px;
  overflow: hidden;
  border-radius: 16px;
  background: #d9edff;
  box-shadow: 0 12px 28px rgb(52 129 206 / 0.16);
  touch-action: pan-y;
}

.focus-track {
  position: relative;
  width: 100%;
  aspect-ratio: 768 / 320;
}

.focus-slide {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  opacity: 0;
  background: transparent;
  cursor: pointer;
  transition: opacity 0.36s ease;
}

.focus-slide.active {
  opacity: 1;
}

.focus-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.focus-placeholder {
  display: grid;
  place-items: center;
  background: #e9f4ff;
  color: var(--navy);
  font-weight: 900;
}

.focus-dots {
  position: absolute;
  right: 10px;
  bottom: 8px;
  display: flex;
  gap: 5px;
}

.focus-dot {
  width: 14px;
  height: 5px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.62);
  box-shadow: 0 1px 4px rgb(39 49 66 / 0.16);
  transform: scaleX(0.36);
  transform-origin: right center;
  transition: transform 0.2s ease, background 0.2s ease;
}

.focus-dot.active {
  background: #fff;
  transform: scaleX(1);
}

.app-bottom-nav {
  display: none;
}

.feed-refresh-float {
  display: none;
}

.app-splash {
  position: fixed;
  inset: 0;
  z-index: 100;
  overflow: hidden;
  background: #000;
  transition: opacity 0.24s ease;
}

.app-splash.closing {
  opacity: 0;
  pointer-events: none;
}

.app-splash img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-splash button {
  position: absolute;
  top: max(14px, calc(env(safe-area-inset-top) + 10px));
  right: max(14px, env(safe-area-inset-right));
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgb(0 0 0 / 0.32);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.buy-opening {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgb(39 49 66 / 0.2);
  opacity: 0;
  overscroll-behavior: contain;
  pointer-events: none;
  touch-action: none;
  transition: opacity 0.18s ease;
}

.buy-opening[hidden] {
  display: none;
}

.buy-opening.visible {
  opacity: 1;
  pointer-events: auto;
}

.buy-opening-panel {
  display: grid;
  justify-items: center;
  gap: 13px;
  width: 156px;
  min-height: 108px;
  padding: 20px 16px 18px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 46px rgb(39 49 66 / 0.24);
  color: var(--ink);
  transform: translateY(5px) scale(0.98);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.buy-opening.visible .buy-opening-panel {
  transform: translateY(0) scale(1);
}

.buy-opening-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #f2d9d5;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: buy-opening-spin 0.72s linear infinite;
}

.buy-opening-panel strong {
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.3;
}

@keyframes buy-opening-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .buy-opening,
  .buy-opening-panel {
    transition: none;
  }

  .buy-opening-spinner {
    animation: none;
    border-right-color: var(--accent);
  }
}

.focus-group-panel {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  align-items: end;
  padding: 18px;
  background: rgb(39 49 66 / 0.32);
}

.focus-group-panel[hidden] {
  display: none;
}

.focus-group-card {
  width: min(520px, 100%);
  max-height: min(76vh, 680px);
  margin: 0 auto;
  overflow: hidden;
  border-radius: 18px;
  background: #fffaf7;
  box-shadow: 0 28px 72px rgb(39 49 66 / 0.28);
}

.focus-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  padding: 0 14px 0 16px;
  border-bottom: 1px solid var(--line);
}

.focus-group-head strong {
  font-size: 16px;
}

.focus-group-head button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f0e9df;
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.focus-group-list {
  display: grid;
  gap: 8px;
  max-height: calc(min(76vh, 680px) - 54px);
  overflow-y: auto;
  padding: 10px;
}

.more-shell[hidden] {
  display: none !important;
}

.feed-page .shell[hidden] {
  display: none !important;
}

.more-hero {
  display: none;
  gap: 10px;
  margin: -20px -16px 14px;
  padding: max(24px, calc(env(safe-area-inset-top) + 18px)) 22px 22px;
  border-radius: 0 0 24px 24px;
  background: linear-gradient(135deg, #f3362f 0%, #ff6b62 100%);
  color: #fff;
  box-shadow: 0 16px 38px rgb(216 59 45 / 0.22);
}

.more-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.more-head .brand-mark {
  width: 58px;
  height: 58px;
  border-radius: 17px;
  box-shadow: 0 12px 30px rgb(0 0 0 / 0.18);
}

.more-head h1 {
  margin: 0;
  color: #fff;
  font-size: 22px;
  line-height: 1.2;
}

.more-head p {
  margin: 4px 0 0;
  color: rgb(255 255 255 / 0.86);
  font-size: 13px;
}

.more-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-left: 70px;
}

.more-links button {
  min-height: 26px;
  padding: 0;
  background: transparent;
  color: rgb(255 255 255 / 0.86);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.more-card {
  display: grid;
  gap: 14px;
  margin-bottom: 12px;
  padding: 15px 14px;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 14px 34px rgb(67 54 42 / 0.08);
}

.more-card h2 {
  margin: 0;
  font-size: 16px;
  line-height: 1.2;
}

.more-tools {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.more-tools [data-more-action="home"] {
  display: none;
}

.more-tools button {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-height: 72px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.more-tools span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 16px;
  background: #f4f6fb;
  color: var(--navy);
  font-size: 18px;
  font-weight: 900;
}

.more-tools strong {
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
}

.more-list {
  display: grid;
  gap: 0;
}

.more-item {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 8px 0;
  border-bottom: 1px solid rgb(231 222 210 / 0.72);
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.more-item:last-child {
  border-bottom: 0;
}

.more-badge {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 9px;
  background: #fff0ee;
  color: var(--accent);
  font-size: 12px;
  font-weight: 950;
}

.more-item strong {
  display: block;
  font-size: 14px;
}

.more-item em,
.more-item small {
  color: #aab1bd;
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
}

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

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

.media-config-bar,
.legal-setting-form {
  display: grid;
  gap: 10px;
}

.media-config-bar {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fffaf7;
}

.legal-setting-panel p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 12px;
}

.legal-setting-form textarea {
  min-height: 150px;
  resize: vertical;
}

.media-upload-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fffaf7;
}

.media-upload-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.media-list-wrap {
  margin-top: 12px;
}

.media-list-wrap h3 {
  margin: 0 0 10px;
  font-size: 15px;
}

.media-list {
  display: grid;
  gap: 10px;
}

.media-item {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.media-link-field {
  grid-column: 1 / 3;
}

.media-topic-field {
  grid-column: 2 / 4;
}

.media-order-field {
  grid-column: 1 / 2;
}

.media-order-field input {
  max-width: 110px;
}

.media-save-btn {
  grid-column: 3;
  align-self: end;
}

.media-item img {
  width: 84px;
  height: 50px;
  border-radius: 10px;
  object-fit: cover;
}

.media-item strong {
  display: block;
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.media-item span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.topic-panel {
  display: grid;
  gap: 12px;
  margin-bottom: 10px;
}

.topic-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(150px, 220px);
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fffaf7;
}

.topic-form .field:nth-of-type(3),
.topic-form .field:nth-of-type(4) {
  grid-column: 1 / -1;
}

.topic-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.topic-list {
  display: grid;
  gap: 10px;
}

.topic-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.topic-item strong,
.topic-item span,
.topic-item small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topic-item strong {
  font-size: 14px;
}

.topic-item span {
  margin-top: 4px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 850;
}

.topic-item small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.topic-item-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.more-detail[hidden] {
  display: none;
}

.more-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.more-detail-head h2 {
  margin: 0;
}

.more-detail-head button {
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.history-list {
  display: grid;
  gap: 8px;
}

.history-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 8px 10px;
  align-items: center;
  min-height: 62px;
  padding: 7px;
  border-radius: 12px;
  background: #fffaf7;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.history-thumb {
  grid-row: 1 / 3;
  width: 52px;
  height: 52px;
  overflow: hidden;
  border-radius: 10px;
  background: #f0e9df;
}

.history-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.history-item strong {
  overflow: hidden;
  font-size: 13px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-item small {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.legal-text {
  max-height: 52vh;
  margin: 0;
  overflow-y: auto;
  color: var(--ink);
  font: 13px/1.75 "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  white-space: pre-wrap;
}

.about-copy {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.7;
}

.about-copy p {
  margin: 0;
}

@media (max-width: 560px) {
  body.feed-page {
    display: block;
    min-height: 100dvh;
    overflow-y: auto;
    padding-bottom: max(74px, calc(env(safe-area-inset-bottom) + 64px));
  }

  /* The HuaJuanYun page is a single feed, not the standalone APP shell. */
  body.feed-page[data-feed-channel="hjy"] {
    padding-bottom: 0;
  }

  .feed-page .topbar,
  .feed-page .public-topbar {
    position: sticky;
    top: 0;
    z-index: 26;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 8px 10px;
    min-height: 0;
    padding: max(18px, calc(env(safe-area-inset-top) + 10px)) max(14px, env(safe-area-inset-left)) 8px max(14px, env(safe-area-inset-right));
    border-bottom: 0;
    background: rgb(255 250 244 / 0.96);
    box-shadow: none;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  .feed-page .brand {
    display: contents;
  }

  .feed-page .brand-mark {
    grid-column: 1;
    grid-row: 1 / 3;
    align-self: center;
    width: 34px;
    height: 34px;
    border-radius: 11px;
  }

  .feed-page .brand > span:last-child {
    grid-column: 2;
    min-width: 0;
  }

  .feed-page .brand strong {
    font-size: 16px;
    line-height: 1.1;
  }

  .feed-page .brand small {
    max-width: none;
    font-size: 11px;
  }

  .feed-page .public-search {
    grid-column: 1 / 3;
    min-height: 34px;
    padding: 0 12px;
  }

  .feed-page .public-topbar .primary-btn {
    display: none;
  }

  body.feed-page[data-feed-channel="hjy"] .public-topbar {
    grid-template-columns: 34px minmax(0, 1fr) auto;
  }

  body.feed-page[data-feed-channel="hjy"] .public-search {
    grid-column: 1 / 4;
  }

  body.feed-page[data-feed-channel="hjy"] .public-topbar .primary-btn {
    display: inline-flex;
    grid-column: 3;
    grid-row: 1;
    min-height: 34px;
    padding: 0 10px;
    border-radius: 10px;
    font-size: 12px;
    white-space: nowrap;
  }

  .feed-page .shell {
    display: block;
    width: min(100% - 14px, 1120px);
    margin-top: 0;
    margin-bottom: 10px;
    padding-bottom: 0;
  }

  .feed-page .more-shell {
    width: 100%;
    padding: 12px 16px 10px;
    background: transparent;
  }

  .feed-page .guide-intro {
    position: sticky;
    top: calc(var(--public-topbar-height, 109px) - 1px);
    z-index: 25;
    margin-top: -1px;
    margin-bottom: 8px;
    padding: 0 0 8px;
    border-radius: 0 0 18px 18px;
    background: rgb(255 250 244 / 0.96);
    box-shadow: 0 14px 24px rgb(67 54 42 / 0.09);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .feed-page .guide-intro > div:first-child {
    display: none;
  }

  .feed-page .filters {
    width: calc(100% + 14px);
    margin: 0 -7px;
    padding: 0 7px 1px;
  }

  .feed-page .feed-focus {
    margin-bottom: 7px;
    border-radius: 14px;
  }

  .feed-page .deal-table {
    overflow: visible;
  }

  .feed-page .deal-list {
    height: auto;
    overflow-y: visible;
    padding-bottom: 8px;
    scrollbar-width: none;
  }

  .feed-page .deal-list::-webkit-scrollbar {
    display: none;
  }

  .feed-page .deal-summary {
    -webkit-line-clamp: 2;
  }

  .feed-page .deal-row {
    grid-template-columns: 90px minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) 31px;
    min-height: 118px;
    align-items: stretch;
  }

  .feed-page .deal-img {
    align-self: center;
  }

  .feed-page .deal-copy {
    min-height: 0;
    overflow: hidden;
  }

  .feed-page .guide-kicker {
    min-width: 0;
    margin-bottom: 2px;
  }

  .feed-page .guide-kicker span,
  .feed-page .guide-kicker small {
    flex: 0 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .feed-page .deal-title {
    font-size: 14px;
    line-height: 1.18;
  }

  .feed-page .deal-summary {
    margin-top: 2px;
    font-size: 11px;
    line-height: 1.24;
  }

  .feed-page .meta-line {
    margin-top: 2px;
    overflow: hidden;
    white-space: nowrap;
  }

  .feed-page .meta-line span {
    display: block;
    max-width: 100%;
    overflow: hidden;
    color: var(--accent);
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .feed-page .deal-action {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 76px;
    align-self: end;
    align-items: center;
    min-height: 31px;
  }

  .feed-page .price-panel strong {
    display: block;
    align-self: center;
    color: var(--accent);
    font-size: 17px;
    font-weight: 950;
  }

  .feed-page .buy-link {
    justify-self: stretch;
  }

  .feed-page .app-bottom-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 24;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    min-height: max(66px, calc(env(safe-area-inset-bottom) + 56px));
    padding-bottom: env(safe-area-inset-bottom);
    border-top: 1px solid rgb(231 222 210 / 0.9);
    background: rgb(255 250 244 / 0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  body.feed-page[data-feed-channel="hjy"] .app-bottom-nav {
    display: none;
  }

  .feed-page .app-bottom-nav a {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 2px;
    color: #858d9c;
    font-size: 11px;
    font-weight: 850;
  }

  .feed-page .app-bottom-nav button {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 2px;
    background: transparent;
    color: #858d9c;
    font-size: 11px;
    font-weight: 850;
  }

  .feed-page .app-bottom-nav span {
    display: grid;
    place-items: center;
    width: 27px;
    height: 27px;
    border-radius: 11px;
    font-size: 15px;
  }

  .feed-page .app-bottom-nav a.active {
    color: var(--accent);
  }

  .feed-page .app-bottom-nav a.active span,
  .feed-page .app-bottom-nav button.active span {
    background: var(--accent-soft);
  }

  .feed-page .app-bottom-nav button.active {
    color: var(--accent);
  }

  .feed-page .back-top {
    right: max(14px, env(safe-area-inset-right));
    bottom: max(126px, calc(env(safe-area-inset-bottom) + 126px));
  }

  body.feed-page[data-feed-channel="hjy"] .back-top {
    bottom: max(22px, calc(env(safe-area-inset-bottom) + 18px));
  }

  .feed-page .focus-group-panel {
    padding: 12px 8px max(76px, calc(env(safe-area-inset-bottom) + 76px));
  }

  body.feed-page[data-feed-channel="hjy"] .focus-group-panel {
    padding-bottom: max(16px, calc(env(safe-area-inset-bottom) + 16px));
  }

  .feed-page .focus-group-card {
    max-height: 68vh;
    border-radius: 18px 18px 14px 14px;
  }

  .feed-page .focus-group-list {
    max-height: calc(68vh - 54px);
  }

  .feed-refresh-float {
    display: none;
  }
}

@media (max-width: 720px) {
  .admin-shell {
    width: min(100% - 18px, 1180px);
  }

  .admin-subnav {
    margin-top: -2px;
    padding: 8px 0;
  }

  .admin-group-heading {
    display: grid;
    gap: 2px;
    margin-top: 15px;
  }

  .admin-group-heading span {
    font-size: 16px;
  }

  .media-grid,
  .media-list-wrap,
  .media-config-bar {
    grid-template-columns: 1fr;
  }

  .media-item {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .media-item .ghost-btn {
    grid-column: 1 / 3;
    width: 100%;
  }

  .media-link-field,
  .media-topic-field,
  .media-order-field,
  .media-save-btn {
    grid-column: 1 / 3;
  }

  .topic-form,
  .topic-item {
    grid-template-columns: 1fr;
  }

  .topic-form .field,
  .topic-actions,
  .topic-item-actions {
    grid-column: 1;
  }

  .topic-item-actions {
    justify-content: stretch;
  }

  .topic-item-actions .ghost-btn {
    flex: 1 1 92px;
  }
}
