:root {
  --red: #d83b2d;
  --red-dark: #b92f24;
  --ink: #242424;
  --muted: #777;
  --line: #e8e8e8;
  --bg: #f4f5f7;
  --panel: #fff;
  --gold: #f6a623;
  --green: #1f9d6a;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
.wrap { width: min(1180px, calc(100vw - 32px)); margin: 0 auto; }

.topbar {
  background: #fff;
  border-top: 3px solid var(--red);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}
.ht-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.top-strip {
  height: 32px;
  border-bottom: 1px solid #f0f0f0;
}
.strip-inner {
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.strip-inner nav,
.strip-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.strip-inner a,
.link-button {
  font-size: 14px;
  color: #222;
}
.strip-inner a.active,
.channel-tabs .active {
  color: var(--red);
  font-weight: 800;
}
.link-button,
.channel-tabs button,
.channel-tabs a {
  border: 0;
  background: transparent;
  padding: 0;
}
.link-button {
  width: auto;
}
.subtle-link {
  margin-left: auto;
  color: #999;
  font-size: 13px;
}
.channel-row {
  height: 82px;
  display: grid;
  grid-template-columns: 184px minmax(620px, 1fr) 304px;
  align-items: center;
  gap: 22px;
}
.channel-scroll-shell,
.mobile-entry-shell {
  position: relative;
  min-width: 0;
}
.channel-scroll-shell {
  width: 100%;
}
.rail-scroll-btn {
  position: absolute;
  top: 50%;
  z-index: 6;
  display: none;
  place-items: center;
  width: 26px;
  height: 38px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 4px;
  background: rgba(34, 34, 34, 0.42);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.rail-scroll-btn.is-hidden {
  display: none !important;
}
.rail-scroll-btn.is-disabled {
  opacity: 0.28;
  cursor: default;
}
.rail-scroll-prev {
  left: 0;
}
.rail-scroll-next {
  right: 0;
}
.channel-tabs.dragging,
.mobile-entry-grid.dragging {
  cursor: grabbing;
  user-select: none;
}
.ht-brand {
  display: grid;
  grid-template-columns: 38px auto;
  grid-template-rows: auto auto;
  column-gap: 8px;
  min-width: 184px;
  width: 184px;
  color: #222;
  font-size: initial;
}
.ht-brand span {
  grid-row: 1 / 3;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--red);
  color: #fff;
  font-weight: 900;
  font-size: 24px;
}
.ht-brand strong {
  font-size: 20px;
  line-height: 1.1;
  white-space: nowrap;
}
.ht-brand small {
  color: #777;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
}
.channel-tabs button,
.channel-tabs a {
  position: relative;
  height: 82px;
  display: inline-flex;
  align-items: center;
  font-size: 17px;
  color: #222;
  text-decoration: none;
  white-space: nowrap;
}
.channel-tabs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-width: 0;
  overflow: visible;
}
.channel-tabs button.active::after,
.channel-tabs a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--red);
}
.ht-search {
  margin-left: 0;
  width: 320px;
}
.ht-search input {
  background: #f6f6f6;
  border: 0;
  height: 40px;
  width: 240px;
}
.ht-search button {
  height: 40px;
  width: 80px;
  padding: 0;
}
.nav-showcase {
  background: #fff;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}
.mobile-entry {
  display: none;
}
.mobile-entry-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}
.mobile-entry a {
  display: grid;
  justify-items: center;
  gap: 8px;
  color: #333;
  font-size: 13px;
  text-align: center;
}
.entry-icon {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  font-style: normal;
  font-weight: 800;
  font-size: 18px;
  box-shadow: 0 6px 16px rgba(216, 59, 45, 0.16);
}
.mobile-entry em {
  font-style: normal;
  line-height: 1.2;
  white-space: nowrap;
}
.entry-red { background: #d83b2d; }
.entry-blue { background: #4f86d8; }
.entry-green { background: #1f9d6a; }
.entry-orange { background: #f08a24; }
.entry-pink { background: #e65b73; }
.entry-gray { background: #5f6570; }
.rank-tabs,
.filter-board div,
.hot-tabs {
  display: flex;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid #f0f0f0;
}
.rank-tabs {
  height: 54px;
}
.rank-tabs strong {
  font-size: 22px;
  margin-right: 8px;
}
.rank-tabs .cat,
.filter-board button {
  width: auto;
  border: 0;
  background: transparent;
  padding: 0;
  color: #333;
  font-size: 15px;
}
.rank-tabs .cat.active {
  color: var(--red);
}
.rank-carousel-wrap {
  position: relative;
}
.rank-carousel {
  display: flex;
  gap: 18px;
  padding: 18px 0 22px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  cursor: grab;
  user-select: none;
  -webkit-overflow-scrolling: touch;
}
.rank-carousel.dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}
.rank-carousel.dragging a {
  pointer-events: none;
}
.rank-scroll-btn {
  position: absolute;
  top: 40%;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 34px;
  height: 56px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 4px;
  background: rgba(34, 34, 34, 0.72);
  color: #fff;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}
.rank-scroll-btn:hover {
  background: rgba(34, 34, 34, 0.9);
}
.rank-scroll-prev {
  left: 0;
}
.rank-scroll-next {
  right: 0;
}
.rank-card {
  position: relative;
  flex: 0 0 184px;
  display: grid;
  gap: 8px;
  scroll-snap-align: start;
}
.rank-card b {
  position: absolute;
  left: 0;
  top: 0;
  background: var(--red);
  color: #fff;
  padding: 3px 8px;
  border-radius: 2px;
  z-index: 1;
}
.rank-card img {
  width: 100%;
  aspect-ratio: 1.15;
  object-fit: cover;
  border-radius: 3px;
}
.rank-card strong {
  font-size: 14px;
  line-height: 1.45;
  font-weight: 500;
  min-height: 40px;
  overflow: hidden;
}
.rank-card span {
  color: var(--red);
  font-size: 14px;
}
.filter-board {
  border-top: 1px solid #f3f3f3;
}
.filter-board div {
  min-height: 40px;
  gap: 22px;
}
.filter-board span {
  color: #777;
  width: 44px;
}
.filter-board button:hover,
.hot-tabs button:hover {
  color: var(--red);
}
.hot-tabs {
  min-height: 58px;
  padding-top: 10px;
  align-items: flex-end;
}
.hot-tabs button {
  border: 0;
  background: transparent;
  height: 48px;
  padding: 0 22px;
  font-size: 15px;
}
.hot-tabs button.active {
  background: var(--red);
  color: #fff;
}
.hot-tabs a {
  margin-left: auto;
  background: var(--red);
  color: #fff;
  border-radius: 6px;
  padding: 11px 24px;
  margin-bottom: 10px;
}
.filter-board button.active,
.rank-tabs .cat.active {
  color: var(--red);
  font-weight: 800;
}
.site-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 30;
  transform: translate(-50%, 16px);
  border-radius: 4px;
  background: rgba(34, 34, 34, .92);
  color: #fff;
  padding: 10px 16px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.site-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.share-panel {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
}
.share-panel.show {
  display: block;
}
.share-panel-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.48);
}
.share-panel-sheet {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(520px, 100vw);
  transform: translateX(-50%);
  padding: 18px 18px 12px;
  border-radius: 14px 14px 0 0;
  background: #fff;
  box-shadow: 0 -16px 46px rgba(0, 0, 0, 0.18);
}
.share-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.share-panel-head strong {
  font-size: 17px;
}
.share-panel-head button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #f3f4f6;
  color: #666;
  font-size: 22px;
  line-height: 1;
}
.share-url-box {
  overflow: hidden;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f6f7f9;
  color: #777;
  font-size: 13px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.share-actions {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  padding: 18px 0 12px;
}
.share-actions button {
  display: grid;
  justify-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: #333;
  font-weight: 800;
}
.share-actions span {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: #fff3f1;
  color: var(--red);
  font-size: 24px;
  font-weight: 900;
}
.share-actions em {
  font-style: normal;
  font-size: 13px;
  white-space: nowrap;
}
.share-icon.weibo {
  background: #fff1f1;
  color: #e6162d;
}
.share-icon.wechat {
  background: #effaf1;
  color: #1aad19;
}
.share-icon.qq {
  background: #eef7ff;
  color: #12a5f4;
}
.share-icon.qzone {
  background: #fff8e8;
  color: #f5a400;
}
.share-icon.copy {
  background: #f3f4f6;
  color: #555;
}
.share-cancel {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  background: #f3f4f6;
  color: #333;
  font-weight: 800;
}
.home-layout {
  grid-template-columns: minmax(0, 1fr) 240px;
}
.nav {
  height: 62px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  color: var(--red);
  font-size: 24px;
  font-weight: 800;
}
.ht-brand {
  color: #222;
  font-size: initial;
  font-weight: 400;
}
.nav nav { display: flex; gap: 6px; }
.nav nav a {
  padding: 20px 12px;
  color: #555;
  border-bottom: 2px solid transparent;
}
.nav nav a.active, .nav nav a:hover {
  color: var(--red);
  border-bottom-color: var(--red);
}
.search {
  margin-left: auto;
  display: flex;
  height: 36px;
}
.search input {
  width: 260px;
  border: 1px solid var(--line);
  border-right: 0;
  border-radius: 3px 0 0 3px;
  padding: 0 12px;
}
.search button, .primary, .submit-link {
  border: 0;
  background: var(--red);
  color: #fff;
  border-radius: 3px;
  padding: 0 16px;
  font-weight: 700;
}
.ht-search input {
  width: 240px;
}
.ht-search button {
  width: 80px;
  padding: 0;
}
.page-search {
  width: 320px;
}
.page-search input {
  min-width: 0;
  flex: 1;
}
.page-search button {
  width: 80px;
  flex: 0 0 80px;
  padding: 0;
}
.primary { min-height: 42px; }
.search button:hover, .primary:hover, .submit-link:hover { background: var(--red-dark); }

.layout {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) 240px;
  gap: 18px;
  padding: 18px 0 40px;
}
.module, .panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
}
.module { padding: 14px; margin-bottom: 14px; }
.module h3, .panel h1, .feed-head h1 { margin: 0; }
.module h3 { font-size: 16px; margin-bottom: 12px; }
.module p, .feed-head p, .muted { color: var(--muted); margin: 8px 0 0; line-height: 1.7; }
.cat {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #f0f0f0;
  padding: 11px 4px;
  color: #555;
}
.cat.active, .cat:hover { color: var(--red); font-weight: 700; }

.feed-head {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.feed-head h1 { font-size: 24px; }
.submit-link {
  height: 38px;
  display: inline-flex;
  align-items: center;
}

.deal {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) 92px;
  gap: 14px;
  padding: 14px;
  margin-bottom: 12px;
  min-height: 176px;
  max-height: 176px;
  overflow: hidden;
}
.deal-image {
  display: block;
  width: 160px;
  height: 120px;
}
.deal img {
  width: 160px;
  height: 120px;
  object-fit: cover;
  border-radius: 3px;
  border: 1px solid #eee;
  background: #fafafa;
}
.deal h2 {
  display: -webkit-box;
  min-height: 44px;
  max-height: 44px;
  margin: 2px 0 6px;
  overflow: hidden;
  font-size: 17px;
  line-height: 1.3;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.deal h2 a:hover { color: var(--red); }
.meta { color: var(--muted); font-size: 13px; display: flex; gap: 10px; flex-wrap: wrap; }
.price { color: var(--red); font-size: 22px; font-weight: 800; margin: 3px 0 6px; }
.summary {
  display: block;
  min-height: 58px;
  max-height: 58px;
  margin: 0 0 8px;
  overflow: hidden;
  color: #555;
  font-size: 14px;
  line-height: 1.38;
}
.summary a {
  color: var(--red);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.summary .read-more {
  margin-left: 4px;
  color: #4f86b8;
  font-weight: 500;
  text-decoration: none;
}
.tags {
  display: flex;
  max-height: 24px;
  gap: 6px;
  overflow: hidden;
  flex-wrap: nowrap;
}
.tag {
  background: #fff4f1;
  color: var(--red);
  border: 1px solid #ffd8cf;
  border-radius: 2px;
  padding: 2px 6px;
  font-size: 12px;
}
.deal-action {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 6px;
}
.heat {
  text-align: center;
  border: 1px solid #ffd5ce;
  color: var(--red);
  background: #fff8f6;
  border-radius: 3px;
  padding: 4px 0;
  font-weight: 800;
  font-size: 18px;
  line-height: 1.15;
}
.heat small {
  font-size: 13px;
  line-height: 1.1;
}
.buy {
  text-align: center;
  background: var(--red);
  color: #fff;
  border-radius: 3px;
  padding: 10px 8px;
  font-weight: 800;
}
.buy.disabled {
  background: #e5e7eb;
  color: #777;
  cursor: not-allowed;
}
.vote-btn,
.fav-btn {
  border: 1px solid var(--line);
}
.fav-btn {
  background: #fff;
  color: #555;
  border-radius: 3px;
  padding: 8px;
  font-weight: 700;
}
.fav-btn:hover {
  color: var(--red);
  border-color: #ffd0c8;
}
.share-btn {
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #fff;
  color: #555;
  font-weight: 800;
  cursor: pointer;
}
.share-btn:hover {
  color: var(--red);
  border-color: #ffd0c8;
}
.deal-action .heat {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 32px;
  padding: 3px 0;
  font-size: 16px;
}
.deal-action .heat br {
  display: none;
}
.deal-action .heat strong,
.deal-action .heat span,
.deal-action .heat small {
  display: inline;
  margin: 0;
  font-size: 13px;
  line-height: 1;
}
.deal-action .fav-btn,
.deal-action .share-btn {
  min-height: 32px;
  padding: 4px 0;
  font-size: 13px;
  text-align: center;
}
.deal-action .buy {
  grid-column: 1 / -1;
  min-height: 34px;
  padding: 6px;
}
.detail-share {
  min-height: 40px;
}
.article-share {
  width: auto;
  min-height: 28px;
  padding: 3px 10px;
  font-size: 13px;
}
.rank ol { padding-left: 22px; margin: 0; }
.rank li { margin: 0 0 10px; line-height: 1.45; }
.quick-module h3 { margin-bottom: 12px; }
.quick-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.quick-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 8px;
  border: 1px solid #f0d6d0;
  border-radius: 4px;
  background: #fff8f6;
  color: #8f2f22;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}
.quick-links a:hover {
  border-color: #f2b6aa;
  color: var(--red);
}
.article-module h3 {
  margin-bottom: 12px;
}
.article-teasers {
  display: grid;
  gap: 12px;
}
.article-teaser {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f1f1;
}
.article-teaser:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
.article-teaser img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 4px;
  grid-row: 1 / 3;
  background: #f5f5f5;
}
.article-teaser > span {
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
}
.article-teaser strong {
  display: -webkit-box;
  max-height: 42px;
  overflow: hidden;
  color: var(--ink);
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.article-teaser small {
  display: none;
}
.article-strip {
  margin-top: 12px;
}
.compact-head {
  margin: 0 0 12px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.article-feed-teasers {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.article-feed-card {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) 92px;
  gap: 14px;
  min-height: 176px;
  max-height: 176px;
  padding: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
}
.article-feed-image {
  display: block;
  width: 160px;
  height: 120px;
  background: #f5f5f5;
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid #eee;
}
.article-feed-card img {
  width: 160px;
  height: 120px;
  object-fit: cover;
}
.article-feed-main {
  display: block;
  min-width: 0;
}
.article-feed-main strong {
  display: -webkit-box;
  min-height: 44px;
  max-height: 44px;
  margin: 2px 0 8px;
  overflow: hidden;
  font-size: 17px;
  line-height: 1.3;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.article-feed-main small {
  display: -webkit-box;
  min-height: 40px;
  max-height: 40px;
  overflow: hidden;
  color: #555;
  font-size: 14px;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.article-inline-more {
  margin-left: 6px;
  color: #4f86b8;
  font-weight: 700;
  white-space: nowrap;
}
.article-feed-action {
  align-self: end;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 3px;
  background: var(--red);
  color: #fff;
  font-weight: 800;
  text-align: center;
}
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 18px;
  padding: 18px 0 40px;
}
.article-detail {
  background: #fff;
}
.article-crumb {
  display: flex;
  gap: 8px;
  color: #999;
  font-size: 14px;
  margin-bottom: 18px;
}
.article-detail h1 {
  margin: 0 0 10px;
  font-size: 32px;
  line-height: 1.3;
}
.article-subtitle {
  margin: 0 0 14px;
  color: #666;
  font-size: 18px;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #888;
  font-size: 13px;
  margin-bottom: 18px;
}
.article-cover {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 18px;
  background: #f5f5f5;
}
.article-summary {
  padding: 14px 16px;
  background: #fff8f6;
  border-left: 3px solid var(--red);
  color: #555;
  line-height: 1.8;
}
.article-body {
  color: #333;
  font-size: 17px;
  line-height: 1.9;
}
.article-body p {
  margin: 0 0 16px;
}
.article-body h2 {
  margin: 26px 0 12px;
  font-size: 22px;
  line-height: 1.45;
}
.article-body figure {
  margin: 18px 0;
  text-align: center;
}
.article-body figure img {
  display: inline-block;
}
.article-body figcaption {
  margin-top: 8px;
  color: #999;
  font-size: 13px;
}
.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}
.article-body table {
  width: 100%;
  border-collapse: collapse;
  overflow-x: auto;
}
.article-body th,
.article-body td {
  border: 1px solid #eee;
  padding: 10px;
}
.article-products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.article-product-card {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 6px 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.article-product-card img {
  grid-row: 1 / 4;
  width: 82px;
  height: 82px;
  object-fit: cover;
  background: #f5f5f5;
}
.article-product-card span {
  color: #999;
  font-size: 12px;
}
.article-product-card em {
  color: var(--red);
  font-style: normal;
  font-weight: 800;
}

.single { padding: 24px 0 50px; }
.panel { padding: 24px; }
.narrow { max-width: 440px; margin: 40px auto; }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 18px;
}
.form-stack { display: grid; gap: 14px; margin-top: 18px; }
label { display: grid; gap: 7px; color: #555; font-weight: 700; }
input, textarea, select {
  width: 100%;
  border: 1px solid #dcdcdc;
  border-radius: 3px;
  padding: 10px 11px;
  background: #fff;
  color: var(--ink);
}
select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #5f646b 50%),
    linear-gradient(135deg, #5f646b 50%, transparent 50%);
  background-position:
    calc(100% - 28px) 50%,
    calc(100% - 18px) 50%;
  background-size: 10px 10px, 10px 10px;
  background-repeat: no-repeat;
  padding-right: 54px;
}
textarea { resize: vertical; }
.span { grid-column: 1 / -1; }
.msg { color: var(--green); font-weight: 700; }

.hidden { display: none !important; }
.admin-shell { background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 20px; }
.admin-head { display: flex; align-items: center; justify-content: space-between; }
.admin-search-box {
  margin: 14px 0 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}
.admin-search-results {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}
.admin-search-result {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid #f1f1f1;
}
.admin-search-result:first-child {
  border-top: 0;
}
.admin-search-result strong {
  display: block;
  color: var(--ink);
}
.form-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}
.form-title-row h2 {
  margin: 0;
  font-size: 20px;
}
.ghost {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 8px 14px;
}
.tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  margin: 20px 0;
}
.tab {
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 12px 10px;
}
.tab.active { color: var(--red); border-bottom-color: var(--red); font-weight: 800; }
.admin-card {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 14px;
  margin-bottom: 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}
.admin-actions { display: flex; gap: 8px; align-items: start; }
.danger { color: var(--red); border-color: #ffd0c8; }
.collection-import textarea {
  width: 100%;
  min-height: 180px;
  margin-top: 12px;
  line-height: 1.7;
}
.collection-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
}
.collection-card strong {
  display: block;
  margin-bottom: 6px;
}
.role-box {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 18px;
  margin-bottom: 14px;
  background: #fff;
}
.permission-group {
  border-top: 1px solid #f0f0f0;
  padding-top: 14px;
  margin-top: 14px;
}
.permission-group > strong {
  display: block;
  margin-bottom: 10px;
}
.permission-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 14px;
}
.log-card p {
  margin-bottom: 0;
}
.pill {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 13px;
  white-space: nowrap;
}
.inline-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}
.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.cms-taxonomy {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.article-admin-card {
  grid-template-columns: 96px minmax(0, 1fr) auto;
}
.article-admin-card > img {
  width: 96px;
  height: 72px;
  object-fit: cover;
  border-radius: 6px;
  background: #f5f5f5;
}
.cms-form label {
  display: grid;
  gap: 8px;
}
.cover-uploader {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
}
.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.editor-toolbar button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
}
.textarea-tools {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 8px;
}
.textarea-tools button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--red);
  font-weight: 700;
  cursor: pointer;
}
.textarea-tools button:hover {
  border-color: var(--red);
}
.product-pick-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}
.product-pick {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.product-pick img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 6px;
  background: #f5f5f5;
}
.site-footer {
  margin-top: 32px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  background: #fff;
  color: #777;
  font-size: 13px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 18px;
}
.site-footer a {
  color: #777;
}
.site-footer a:hover {
  color: var(--red);
}
.police-record {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.police-record img {
  width: 18px;
  height: 20px;
  object-fit: contain;
  flex: 0 0 auto;
}

.submit-page { background: #f3f4f6; }
.submit-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 18px;
  padding: 22px 0 50px;
}
.submit-main { min-width: 0; }
.submit-hero {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 22px 26px;
  margin-bottom: 14px;
}
.submit-hero h1 { margin: 0; font-size: 26px; }
.submit-hero p { margin: 8px 0 0; color: var(--muted); }
.baoliao-form { display: grid; gap: 14px; }
.step-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 22px 26px;
}
.step-title {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
}
.step-title span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--red);
  font-weight: 800;
  flex: 0 0 auto;
}
.step-title h2 { margin: 0; font-size: 18px; }
.step-title p { margin: 5px 0 0; color: var(--muted); }
.url-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  gap: 10px;
}
.url-row input {
  height: 44px;
  font-size: 15px;
}
.url-row button {
  border: 0;
  border-radius: 3px;
  background: var(--red);
  color: #fff;
  font-weight: 800;
}
.url-row button:disabled {
  background: #c9c9c9;
  cursor: wait;
}
.baoliao-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.baoliao-fields label { font-size: 14px; }
.baoliao-fields .wide { grid-column: 1 / -1; }
.submit-actions {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 18px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.submit-actions .primary {
  min-width: 150px;
}
.agree {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 8px;
  color: #555;
  font-weight: 400;
}
.agree input { width: auto; }
.tips {
  margin: 0;
  padding-left: 18px;
  color: #555;
  line-height: 1.8;
}
.submit-side {
  position: sticky;
  top: 84px;
  align-self: start;
}
.submit-wide {
  grid-template-columns: minmax(0, 1fr) 250px;
  width: min(1280px, calc(100vw - 32px));
}
.worth-form {
  display: grid;
  gap: 18px;
}
.worth-section {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 28px 30px;
}
.worth-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 14px;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.section-head h2 {
  margin: 0;
  font-size: 20px;
}
.circle-check, .check-line {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 10px;
  color: #333;
  font-size: 18px;
  font-weight: 700;
}
.circle-check input, .check-line input {
  width: 22px;
  height: 22px;
  accent-color: var(--red);
}
.check-line span {
  color: #999;
  font-size: 15px;
  font-weight: 600;
}
.option-block {
  display: grid;
  gap: 12px;
  margin: 0 0 26px 130px;
}
.option-block input,
.option-block textarea,
.mini-grid input,
.required-row input,
.required-row textarea,
.required-row select,
.admin-grid input,
.admin-grid textarea,
.admin-grid select {
  border: 0;
  background: #f4f4f4;
  min-height: 56px;
  border-radius: 6px;
  color: #5f646b;
  font-size: 18px;
}
.option-block textarea,
.required-row textarea,
.admin-grid textarea {
  min-height: 120px;
  line-height: 1.7;
}
.mini-grid {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 16px 20px;
  margin-left: 130px;
}
.required-row {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  margin-bottom: 26px;
}
.required-row label {
  display: contents;
}
.required-row label.image-add,
.required-row label.proof-box {
  display: grid;
}
.required-row.reason-row label {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 8px;
}
.reason-row label > span {
  grid-row: 1 / 3;
}
.reason-row .textarea-tools,
.reason-row textarea {
  grid-column: 2;
}
.reason-row textarea {
  width: 100%;
  box-sizing: border-box;
}
.required-row span,
.label-text {
  color: #5f646b;
  font-size: 18px;
  font-weight: 800;
}
.required-row span::first-letter,
.label-text::first-letter {
  color: var(--red);
}
.required-row select {
  min-width: 150px;
}
.required-row:has(select) {
  grid-template-columns: 140px minmax(180px, .7fr) repeat(3, minmax(150px, .45fr));
}
.price-row {
  grid-template-columns: 140px minmax(0, 1fr) 140px;
}
.unit {
  color: #999 !important;
}
.top-align {
  align-items: start;
}
.sample-box {
  margin: -8px 0 30px 140px;
  background: #fff7f7;
  border-radius: 6px;
  padding: 18px;
  color: #555;
}
.sample-box strong {
  display: block;
  margin-bottom: 14px;
  font-size: 17px;
}
.sample-box p {
  border: 1px solid #ffd9d6;
  border-radius: 6px;
  margin: 0;
  padding: 18px;
  background: #fff;
  font-size: 18px;
}
.image-editor {
  min-width: 0;
}
.image-grid {
  display: grid;
  grid-template-columns: repeat(4, 150px);
  gap: 16px;
  align-items: start;
  margin-bottom: 14px;
}
.image-tile,
.image-add,
.proof-box {
  position: relative;
  display: grid;
  place-items: center;
  width: 150px;
  height: 150px;
  background: #f3f3f3;
  border-radius: 6px;
  overflow: hidden;
  color: #cfcfcf;
  font-size: 34px;
  font-weight: 300;
}
.image-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.image-tile img[src=""] {
  display: none;
}
.image-tile:not(.has-image) .image-tile-actions {
  display: none;
}
.image-tile-actions {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(0, 0, 0, .08);
}
.image-tile-actions button {
  border: 0;
  border-radius: 0;
  padding: 7px 0;
  background: rgba(255, 255, 255, .92);
  color: #333;
  font-size: 13px;
  font-weight: 800;
}
.image-tile-actions button:hover {
  color: var(--red);
  background: #fff;
}
.image-tile span {
  position: absolute;
  left: 0;
  top: 0;
  background: #fff0f0;
  color: var(--red);
  font-size: 14px;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: 0 0 5px 0;
}
.image-add input,
.proof-box input {
  position: absolute;
  inset: 0;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  border: 0;
  border-radius: 0;
  font-size: 12px;
  background: rgba(255,255,255,.9);
}
.proof-box {
  background-size: cover;
  background-position: center;
}
.proof-editor {
  display: inline-grid;
  gap: 8px;
}
.proof-actions {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 150px;
}
.proof-editor.has-image .proof-actions {
  display: grid;
}
.proof-actions button {
  border: 1px solid var(--line);
  border-radius: 4px;
  min-height: 34px;
  background: #fff;
  color: #333;
  font-weight: 800;
}
.proof-actions button:hover {
  color: var(--red);
  border-color: #ffd0c8;
}
.proof-box.has-image,
.image-add:hover,
.proof-box:hover {
  border: 1px solid #ffd0c8;
}
.proof-box.has-image {
  color: transparent;
}
.submit-page .required-row:has(select) {
  grid-template-columns: 140px minmax(0, 1fr);
}
.admin-page .required-row:has(select) {
  grid-template-columns: 140px minmax(0, 1fr);
}
.submit-page .price-row {
  grid-template-columns: 140px minmax(0, 1fr) 140px;
}
.field-tip {
  color: #999;
  line-height: 1.7;
  margin: 10px 0 0;
}
.admin-worth-form {
  gap: 14px;
}
.admin-worth-form .worth-section {
  padding: 20px;
}
.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.admin-grid .span {
  grid-column: 1 / -1;
}
select,
.required-row select,
.admin-grid select,
.baoliao-fields select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 24 24' fill='none' stroke='%235f646b' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 28px 28px;
  padding-right: 58px;
}
.required-row select,
.admin-grid select {
  background-color: #f4f4f4;
}
.member-auth {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.member-shell {
  display: grid;
  gap: 18px;
}
.member-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 18px;
}
.member-head h1,
.member-section h2,
.member-grid h2 {
  margin: 0;
}
.member-stats {
  display: flex;
  gap: 12px;
}
.member-stats span {
  min-width: 82px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 10px 12px;
  text-align: center;
  color: #777;
}
.member-stats strong {
  display: block;
  color: var(--red);
  font-size: 22px;
}
.member-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.member-section {
  display: grid;
  gap: 12px;
}
.member-item {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 14px;
  margin-bottom: 10px;
}
.member-item strong:hover {
  color: var(--red);
}
.member-status {
  border: 1px solid #cfe9dc;
  color: var(--green);
  border-radius: 999px;
  padding: 5px 12px;
  white-space: nowrap;
}
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 18px;
  padding: 16px 0 50px;
}
.detail-main {
  min-width: 0;
  display: grid;
  gap: 14px;
}
.detail-side {
  position: sticky;
  top: 84px;
  align-self: start;
}
.detail-card {
  padding: 0;
  overflow: hidden;
}
.detail-crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  color: #999;
  font-size: 13px;
  border-bottom: 1px solid #f0f0f0;
}
.detail-crumb a:hover {
  color: var(--red);
}
.detail-titlebar {
  padding: 18px 22px 16px;
}
.detail-titlebar h1 {
  margin: 10px 0 12px;
  color: #222;
  font-size: 24px;
  line-height: 1.38;
  font-weight: 800;
}
.detail-price-line {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}
.detail-price-line strong {
  color: var(--red);
  font-size: 32px;
  line-height: 1;
}
.detail-hero {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 150px;
  gap: 18px;
  align-items: start;
  padding: 18px 22px 22px;
  border-top: 1px solid #f6f6f6;
  background: #fff;
}
.detail-photo {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fafafa;
  overflow: hidden;
}
.detail-photo img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}
.detail-note {
  margin: 14px 0 0;
  color: #555;
  line-height: 1.8;
}
.detail-meta-list {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 9px 12px;
  margin: 0 0 14px;
  padding: 14px 16px;
  background: #fafafa;
  border: 1px solid #f0f0f0;
  border-radius: 4px;
}
.detail-meta-list dt {
  color: #888;
}
.detail-meta-list dd {
  margin: 0;
  color: #333;
}
.detail-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.buy-box {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #ffe0da;
  border-radius: 4px;
  background: #fff8f6;
}
.buy-price {
  color: var(--red);
  font-size: 25px;
  font-weight: 900;
  text-align: center;
}
.detail-buy {
  display: block;
  padding: 13px 10px;
}
.buy-box p {
  margin: 0;
  color: #999;
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}
.detail-content {
  line-height: 1.8;
  padding: 22px 26px;
}
.detail-content h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-size: 18px;
}
.detail-content h2::before {
  content: "";
  width: 4px;
  height: 18px;
  background: var(--red);
  border-radius: 2px;
}
.detail-content h2:not(:first-child) {
  margin-top: 26px;
}
.detail-content p {
  margin: 0;
  color: #444;
}
.detail-content p a {
  color: var(--red);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.reason-richtext {
  color: #444;
  font-size: 16px;
  line-height: 1.9;
  word-break: break-word;
}
.reason-richtext a {
  color: var(--red);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.reason-richtext strong {
  color: var(--ink);
  font-weight: 800;
}
.reason-red {
  color: var(--red);
  font-weight: 800;
}
.reason-inline-image {
  display: block;
  max-width: 100%;
  max-height: 680px;
  margin: 12px auto;
  border-radius: 4px;
  object-fit: contain;
  background: #f6f6f6;
}
.detail-desc {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 0;
  margin: 0;
  border: 1px solid #f0f0f0;
  border-radius: 4px;
  overflow: hidden;
}
.detail-desc dt,
.detail-desc dd {
  padding: 12px 14px;
  border-bottom: 1px solid #f4f4f4;
}
.detail-desc dt {
  background: #fafafa;
  color: #777;
}
.detail-desc dd {
  margin: 0;
}
.detail-desc dt:last-of-type,
.detail-desc dd:last-of-type {
  border-bottom: 0;
}
.detail-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.detail-gallery img,
.proof-preview img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  object-fit: cover;
  background: #fafafa;
  cursor: zoom-in;
}
.detail-gallery img {
  aspect-ratio: 1;
}
.proof-preview {
  max-width: 520px;
}
.detail-photo img[data-preview-image] {
  cursor: zoom-in;
}
.image-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: rgba(20, 24, 32, 0.78);
}
.image-preview-modal.show {
  display: flex;
}
.image-preview-stage {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: min(96vw, 1180px);
  max-height: 92vh;
}
.image-preview-stage img {
  max-width: min(96vw, 1180px);
  max-height: 92vh;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
}
.image-preview-close {
  position: fixed;
  top: 20px;
  right: 24px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 0, 0, 0.42);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.image-preview-nav {
  position: absolute;
  top: 50%;
  z-index: 1001;
  width: 48px;
  height: 48px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 4px;
  color: #1677ff;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
  font-size: 36px;
  line-height: 44px;
  font-weight: 300;
  cursor: pointer;
}
.image-preview-nav:hover,
.image-preview-nav:focus-visible {
  color: #005bd6;
  background: #fff;
  outline: 2px solid rgba(22, 119, 255, 0.32);
}
.image-preview-close:hover {
  background: rgba(0, 0, 0, 0.58);
}
.image-preview-prev {
  left: 12px;
}
.image-preview-next {
  right: 12px;
}
.image-preview-count {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  min-width: 56px;
  padding: 6px 12px;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.42);
  font-size: 14px;
  text-align: center;
}

@media (max-width: 980px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar, .rightbar { display: none; }
  .search { display: none; }
  .detail-page .nav {
    height: auto;
    min-height: 62px;
    flex-wrap: wrap;
    gap: 12px 18px;
    padding: 10px 0;
  }
  .detail-page .page-search {
    display: flex;
    order: 3;
    width: 100%;
    margin-left: 0;
  }
  .detail-page .page-search input {
    width: auto;
  }
  .strip-links { display: none; }
  .channel-row { height: auto; padding: 12px 0; align-items: flex-start; display: flex; }
  .channel-tabs { overflow-x: auto; gap: 18px; }
  .channel-tabs button,
  .channel-tabs a { height: 44px; white-space: nowrap; }
  .rank-carousel { grid-template-columns: repeat(3, 1fr); }
  .filter-board div { overflow-x: auto; white-space: nowrap; }
  .submit-layout { grid-template-columns: 1fr; }
  .submit-side { position: static; }
  .required-row,
  .required-row:has(select),
  .price-row,
  .mini-grid {
    grid-template-columns: 1fr;
    margin-left: 0;
  }
  .option-block { margin-left: 0; }
  .sample-box { margin-left: 0; }
  .image-grid { grid-template-columns: repeat(2, 150px); }
  .member-auth,
  .member-grid,
  .member-head { grid-template-columns: 1fr; }
  .member-stats { flex-wrap: wrap; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-side { display: none; }
  .article-layout { grid-template-columns: 1fr; }
  .article-feed-teasers { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  body { background: #f6f6f6; }
  .wrap { width: 100%; padding-inline: 10px; }
  .ht-header {
    position: sticky;
    top: 0;
    z-index: 20;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
  }
  .top-strip {
    height: 40px;
    background: #fff;
  }
  .strip-inner {
    height: 40px;
    justify-content: flex-start;
  }
  .strip-inner nav {
    gap: 22px;
    overflow-x: auto;
  }
  .strip-inner a {
    font-size: 16px;
    font-weight: 700;
  }
  .strip-inner a.active {
    color: var(--red);
  }
  .channel-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "brand search"
      "tabs tabs";
    gap: 10px 12px;
    padding: 14px 10px 0;
  }
  .ht-brand {
    grid-area: brand;
    min-width: 168px;
    width: 168px;
    grid-template-columns: 44px auto;
    column-gap: 8px;
  }
  .ht-brand span {
    width: 44px;
    height: 44px;
    font-size: 25px;
  }
  .ht-brand strong {
    font-size: 20px;
  }
  .ht-brand small {
    font-size: 12px;
  }
  .ht-search {
    grid-area: search;
    display: flex;
    width: 100%;
    min-width: 0;
    margin: 4px 0 0;
  }
  .ht-search input {
    width: 100%;
    height: 36px;
    border-radius: 18px;
    padding: 0 14px;
    background: #f2f2f2;
  }
  .ht-search button {
    display: none;
  }
  .channel-tabs {
    grid-area: tabs;
    width: calc(100vw - 20px);
    overflow-x: auto;
    gap: 26px;
    padding: 0;
    scrollbar-width: none;
    cursor: grab;
  }
  .channel-tabs::-webkit-scrollbar { display: none; }
  .channel-scroll-shell {
    grid-area: tabs;
    width: calc(100vw - 20px);
  }
  .channel-scroll-shell .channel-tabs {
    width: 100%;
  }
  .channel-scroll-shell .rail-scroll-btn {
    display: grid;
    top: 24px;
    width: 22px;
    height: 34px;
    font-size: 24px;
  }
  .channel-tabs a {
    height: 48px;
    font-size: 18px;
    font-weight: 700;
    flex: 0 0 auto;
  }
  .channel-tabs a.active::after {
    height: 3px;
    bottom: 4px;
  }
  .mobile-entry {
    display: block;
    padding: 14px 10px 12px;
    background: linear-gradient(180deg, #fff1e8 0%, #fff 72%);
  }
  .mobile-entry-shell {
    padding: 0;
  }
  .mobile-entry-shell .rail-scroll-btn {
    display: grid;
    top: 32px;
    width: 22px;
    height: 34px;
    font-size: 24px;
    background: rgba(34, 34, 34, 0.42);
  }
  .mobile-entry-grid {
    grid-template-columns: repeat(6, minmax(56px, 1fr));
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    cursor: grab;
  }
  .mobile-entry-grid::-webkit-scrollbar { display: none; }
  .mobile-entry a {
    font-size: 13px;
  }
  .entry-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
  }
  .nav-showcase {
    display: none;
  }
  .layout.home-layout {
    padding: 10px 8px 32px;
  }
  .feed-head {
    display: none;
  }
  .deals {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .deal {
    display: block;
    min-height: 0;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  }
  .deal-image {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    background: #f5f5f5;
  }
  .deal-image img,
  .deal img {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 0;
    object-fit: cover;
  }
  .deal > div:not(.deal-action) {
    padding: 9px 10px 10px;
  }
  .deal .meta {
    display: none;
  }
  .deal h2 {
    min-height: 44px;
    max-height: 44px;
    margin: 0 0 8px;
    font-size: 15px;
    line-height: 1.45;
    font-weight: 650;
    -webkit-line-clamp: 2;
  }
  .deal .price {
    margin: 0 0 4px;
    font-size: 20px;
    line-height: 1.1;
    color: var(--red);
  }
  .summary {
    display: none;
  }
  .tags {
    display: flex;
    gap: 4px;
    max-height: 24px;
    overflow: hidden;
  }
  .tag {
    font-size: 11px;
    padding: 2px 5px;
  }
  .deal-action {
    display: none;
  }
  .form-grid { grid-template-columns: 1fr; }
  .step-card, .submit-hero, .submit-actions { padding: 18px; }
  .url-row, .baoliao-fields { grid-template-columns: 1fr; }
  .admin-grid { grid-template-columns: 1fr; }
  .permission-grid { grid-template-columns: 1fr; }
  .detail-titlebar { padding: 16px; }
  .detail-titlebar h1 { font-size: 21px; }
  .detail-price-line strong { font-size: 28px; }
  .detail-hero {
    grid-template-columns: 128px minmax(0, 1fr);
    gap: 12px;
    padding: 14px 16px 18px;
  }
  .buy-box {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) 140px;
    align-items: center;
  }
  .buy-box .heat,
  .buy-box p { display: none; }
  .detail-content { padding: 18px 16px; }
  .detail-gallery { grid-template-columns: repeat(2, 1fr); }
  .article-strip {
    margin-top: 10px;
  }
  .article-feed-teasers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .article-feed-card {
    display: block;
    min-height: 0;
    max-height: none;
    padding: 0;
    border: 0;
    border-radius: 8px;
    overflow: hidden;
  }
  .article-feed-image,
  .article-feed-card img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    border: 0;
    border-radius: 0;
  }
  .article-feed-card img {
    height: 100%;
  }
  .article-feed-main {
    display: block;
    padding: 9px 10px 10px;
  }
  .article-feed-main .meta {
    display: none;
  }
  .article-feed-main strong {
    min-height: 44px;
    max-height: 44px;
    margin: 0 0 8px;
    font-size: 15px;
    line-height: 1.45;
  }
  .article-feed-main small {
    display: none;
  }
  .article-feed-action {
    display: none;
  }
  .article-layout {
    padding: 10px 8px 32px;
  }
  .article-detail {
    padding: 18px 16px;
  }
  .article-detail h1 {
    font-size: 24px;
  }
  .article-subtitle {
    font-size: 16px;
  }
  .article-products {
    grid-template-columns: 1fr;
  }
  .image-preview-modal {
    padding: 16px;
  }
  .image-preview-nav {
    width: 44px;
    height: 44px;
    font-size: 34px;
    line-height: 40px;
  }
  .image-preview-prev {
    left: 10px;
  }
  .image-preview-next {
    right: 10px;
  }
  .image-preview-close {
    top: 12px;
    right: 12px;
  }
  .worth-section { padding: 18px; }
  .circle-check, .check-line { font-size: 16px; }
  .submit-actions { align-items: stretch; flex-direction: column; }
  .submit-actions .primary { width: 100%; }
}

/* Homepage layout guard: the old generic .layout is three-column, while
   the new 参考站风格 homepage only has a feed and a right rail. */
.layout.home-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  align-items: start;
}
.home-layout .feed,
.home-layout .rightbar,
.home-layout .deal > div {
  min-width: 0;
}
.home-layout .deal {
  width: 100%;
  grid-template-columns: 160px minmax(0, 1fr) 92px;
}
.home-layout .deal h2,
.home-layout .summary,
.home-layout .meta {
  writing-mode: horizontal-tb;
  word-break: normal;
  overflow-wrap: anywhere;
}
.home-layout .deal-image,
.home-layout .deal img {
  width: 160px;
  height: 120px;
  flex: 0 0 auto;
}

@media (max-width: 980px) {
  .layout.home-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 680px) {
  .cms-taxonomy { grid-template-columns: 1fr; }
  .article-admin-card,
  .product-pick {
    grid-template-columns: 72px minmax(0, 1fr);
  }
  .article-admin-card .admin-actions,
  .product-pick button {
    grid-column: 1 / -1;
  }
  .layout.home-layout {
    padding: 10px 8px 32px;
  }
  .home-layout .deal {
    display: block;
    min-height: 0;
    max-height: none;
  }
  .home-layout .deal-image,
  .home-layout .deal img {
    width: 100%;
  }
  .home-layout .deal-image {
    height: auto;
    aspect-ratio: 1 / 1;
  }
  .home-layout .deal img {
    height: 100%;
  }
}

/* Keep submit price rows on one line: label / amount / currency. */
.submit-page .required-row.price-row {
  grid-template-columns: 140px minmax(0, 1fr) 96px;
  align-items: center;
}
.admin-page .required-row.price-row {
  grid-template-columns: 140px minmax(0, 1fr) 96px;
  align-items: center;
}
.submit-page .price-row select,
.admin-page .price-row select {
  min-width: 0;
  padding-right: 38px;
  background-position: right 8px center;
  background-size: 24px 24px;
}
.submit-page .price-row .unit,
.admin-page .price-row .unit {
  display: flex;
  align-items: center;
  height: 56px;
  color: var(--red) !important;
  font-size: 18px;
  font-weight: 800;
}

@media (max-width: 680px) {
  .submit-page .required-row.price-row {
    grid-template-columns: 112px minmax(0, 1fr) 84px;
    gap: 12px;
  }
  .admin-page .required-row.price-row {
    grid-template-columns: 112px minmax(0, 1fr) 84px;
    gap: 12px;
  }
  .submit-page .price-row .unit,
  .admin-page .price-row .unit {
    height: 50px;
  }
}
