:root {
  --primary: #ff5a36;
  --primary-dark: #e94420;
  --primary-soft: #fff2ed;
  --ink: #20232a;
  --muted: #747984;
  --line: #e8e9ec;
  --surface: #ffffff;
  --canvas: #f6f7f9;
  --success: #18a76b;
  --shadow: 0 12px 34px rgba(25, 31, 40, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.7;
}

body,
button,
input,
select,
textarea {
  font-family: inherit;
}

img {
  max-width: 100%;
  display: block;
}

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

button,
input,
select,
textarea {
  font-size: 15px;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.top-strip {
  height: 34px;
  color: #bfc3ca;
  background: #26282d;
  font-size: 13px;
}

.top-strip .site-container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.top-links {
  display: flex;
  align-items: center;
}

.top-links a:hover {
  color: #fff;
}

.main-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.header-main {
  min-height: 82px;
  display: grid;
  grid-template-columns: 235px minmax(280px, 1fr) auto;
  align-items: center;
}

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

.brand-mark {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border-radius: 14px 14px 14px 4px;
  color: #fff;
  background: linear-gradient(135deg, #ff7c51, var(--primary));
  box-shadow: 0 7px 16px rgba(255, 90, 54, 0.28);
  font-size: 23px;
  font-weight: 800;
}

.brand-name {
  display: block;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.5px;
  line-height: 1.15;
}

.brand-subtitle {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 2px;
}

.site-search {
  height: 44px;
  display: flex;
  border: 2px solid var(--primary);
  border-radius: 9px;
  overflow: hidden;
  background: #fff;
}

.site-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 16px;
  color: var(--ink);
  background: transparent;
}

.site-search button {
  width: 88px;
  border: 0;
  color: #fff;
  background: var(--primary);
  cursor: pointer;
  font-weight: 700;
}

.site-search button:hover {
  background: var(--primary-dark);
}

.primary-button,
.outline-button,
.ghost-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 700;
  transition: 0.2s ease;
}

.primary-button {
  color: #fff;
  background: var(--primary);
  box-shadow: 0 7px 16px rgba(255, 90, 54, 0.2);
}

.primary-button:hover {
  color: #fff;
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.outline-button {
  color: var(--primary);
  border-color: var(--primary);
  background: #fff;
}

.outline-button:hover {
  color: #fff;
  background: var(--primary);
}

.ghost-button {
  color: #50545d;
  border-color: var(--line);
  background: #fff;
}

.main-nav {
  border-top: 1px solid #f0f1f3;
  background: #fff;
}

.nav-inner {
  height: 48px;
  display: flex;
  align-items: stretch;
}

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 19px;
  font-weight: 600;
  color: #494d55;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  left: 19px;
  right: 19px;
  bottom: 0;
  height: 3px;
  border-radius: 2px 2px 0 0;
  background: var(--primary);
}

.page-main {
  min-height: 62vh;
}

.hero-section {
  padding: 24px 0 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 285px 1fr;
}

.category-panel,
.hero-panel {
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.category-panel h2 {
  margin: 0;
  padding: 17px 22px;
  color: #fff;
  background: #34363c;
  font-size: 17px;
}

.category-menu {
  padding: 8px 0;
}

.category-menu a {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  min-height: 72px;
  padding: 8px 20px;
  border-bottom: 1px solid #f0f1f3;
}

.category-menu a:last-child {
  border-bottom: 0;
}

.category-menu a:hover {
  background: var(--primary-soft);
}

.category-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: var(--primary);
  background: var(--primary-soft);
}

.category-icon svg,
.category-tile .tile-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.category-menu strong {
  display: block;
  font-size: 16px;
}

.category-menu small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  line-height: 1.35;
}

.menu-arrow {
  color: #b7bac1;
  font-size: 21px;
}

.hero-panel {
  min-height: 336px;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: stretch;
  background: linear-gradient(125deg, #fff6f0 0%, #fff 55%, #f1f8ff 100%);
}

.hero-copy {
  padding: 52px 28px 44px 48px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  color: var(--primary);
  font-weight: 700;
  font-size: 14px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 3px;
  border-radius: 2px;
  background: var(--primary);
}

.hero-copy h1 {
  margin: 14px 0 12px;
  font-size: clamp(31px, 4vw, 48px);
  line-height: 1.18;
  letter-spacing: -1.5px;
}

.hero-copy h1 span {
  color: var(--primary);
}

.hero-copy p {
  margin: 0 0 23px;
  color: #656a73;
  font-size: 16px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  min-height: 300px;
}

.hero-visual::before,
.hero-visual::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.hero-visual::before {
  width: 290px;
  height: 290px;
  background: rgba(255, 119, 73, 0.12);
}

.hero-visual::after {
  width: 208px;
  height: 208px;
  border: 1px dashed rgba(255, 90, 54, 0.35);
}

.floating-card {
  position: relative;
  z-index: 1;
  width: 260px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 24px 50px rgba(43, 52, 67, 0.14);
  transform: rotate(-2deg);
}

.floating-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
}

.floating-product {
  height: 135px;
  margin: 14px 0 13px;
  overflow: hidden;
  border-radius: 12px;
  background: #eef0f2;
}

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

.floating-card strong {
  display: block;
  font-size: 18px;
}

.floating-price {
  margin-top: 4px;
  color: var(--primary);
  font-size: 25px;
  font-weight: 800;
}

.floating-badge {
  position: absolute;
  z-index: 2;
  right: 16px;
  bottom: 45px;
  padding: 8px 13px;
  border-radius: 20px;
  color: #fff;
  background: var(--success);
  box-shadow: 0 8px 20px rgba(24, 167, 107, 0.25);
  font-size: 13px;
  font-weight: 700;
}

.trust-strip {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 7px 24px rgba(25, 31, 40, 0.05);
}

.trust-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px 10px;
  color: #5d6169;
  border-right: 1px solid var(--line);
}

.trust-item:last-child {
  border-right: 0;
}

.trust-item span {
  color: var(--primary);
  font-size: 19px;
}

.content-section {
  padding: 50px 0;
}

.content-section.compact {
  padding-top: 26px;
}

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

.section-heading h2 {
  margin: 0;
  font-size: 27px;
  line-height: 1.3;
}

.section-heading p {
  margin: 4px 0 0;
  color: var(--muted);
}

.section-link {
  color: var(--primary);
  font-weight: 700;
}

.category-tiles {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.category-tile {
  min-height: 160px;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  transition: 0.22s ease;
}

.category-tile:hover {
  border-color: rgba(255, 90, 54, 0.4);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.category-tile .tile-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 15px;
  border-radius: 13px;
  color: var(--primary);
  background: var(--primary-soft);
}

.category-tile .tile-icon svg {
  width: 28px;
  height: 28px;
}

.category-tile strong {
  display: block;
  font-size: 18px;
}

.category-tile span {
  color: var(--muted);
  font-size: 13px;
}

.listing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.listing-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  transition: 0.22s ease;
}

.listing-card:hover {
  border-color: rgba(255, 90, 54, 0.35);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.listing-image {
  position: relative;
  height: 0;
  padding-top: 75%;
  overflow: hidden;
  background: #eceef1;
}

.listing-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: 0.35s ease;
}

.listing-card:hover .listing-image img {
  transform: scale(1.045);
}

.listing-label {
  position: absolute;
  left: 11px;
  top: 11px;
  padding: 4px 9px;
  border-radius: 5px;
  color: #fff;
  background: rgba(30, 33, 39, 0.78);
  font-size: 12px;
}

.listing-body {
  padding: 15px 16px 16px;
}

.listing-title {
  height: 46px;
  overflow: hidden;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
}

.listing-price {
  margin-top: 9px;
  color: var(--primary);
  font-size: 21px;
  font-weight: 800;
}

.listing-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 9px;
  color: var(--muted);
  font-size: 12px;
}

.listing-location {
  display: inline-flex;
  align-items: center;
}

.location-icon {
  width: 14px;
  height: 14px;
  margin-right: 4px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.page-banner {
  padding: 34px 0;
  color: #fff;
  background: linear-gradient(115deg, #33363d 0%, #454952 62%, #ff7250 140%);
}

.page-banner h1 {
  margin: 0 0 5px;
  font-size: 29px;
}

.page-banner p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
}

.filter-panel {
  padding: 6px 23px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 7px 24px rgba(25, 31, 40, 0.05);
}

.filter-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

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

.filter-label {
  padding-top: 5px;
  color: #8a8f98;
}

.filter-options {
  display: flex;
  flex-wrap: wrap;
}

.filter-option {
  padding: 5px 13px;
  border: 0;
  border-radius: 5px;
  color: #51555d;
  background: transparent;
  cursor: pointer;
}

.filter-option:hover,
.filter-option.active {
  color: var(--primary);
  background: var(--primary-soft);
}

.results-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  align-items: start;
  margin-top: 20px;
}

.results-main,
.side-card {
  border-radius: 12px;
  background: #fff;
}

.results-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}

.results-toolbar strong {
  font-size: 17px;
}

.result-item {
  display: grid;
  grid-template-columns: 190px 1fr 125px;
  padding: 20px;
  border-bottom: 1px solid var(--line);
}

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

.result-thumb {
  height: 138px;
  border-radius: 9px;
  overflow: hidden;
  background: #eee;
}

.result-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.3s ease;
}

.result-item:hover .result-thumb img {
  transform: scale(1.04);
}

.result-title {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 19px;
  font-weight: 750;
}

.result-title:hover {
  color: var(--primary);
}

.result-description {
  display: -webkit-box;
  overflow: hidden;
  color: #6d727b;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.result-tags {
  display: flex;
  flex-wrap: wrap;
  margin-top: 13px;
}

.tag {
  padding: 3px 8px;
  border-radius: 4px;
  color: #777c85;
  background: #f3f4f6;
  font-size: 12px;
}

.result-price-box {
  text-align: right;
}

.result-price-box strong {
  display: block;
  color: var(--primary);
  font-size: 22px;
}

.result-price-box span {
  color: var(--muted);
  font-size: 12px;
}

.side-card {
  padding: 22px;
  box-shadow: 0 7px 24px rgba(25, 31, 40, 0.05);
}

.side-card h3 {
  margin: 0 0 13px;
  font-size: 18px;
}

.side-card p {
  color: var(--muted);
  font-size: 13px;
}

.side-card .primary-button {
  width: 100%;
  margin-top: 8px;
}

.empty-state {
  padding: 65px 20px;
  text-align: center;
  color: var(--muted);
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  padding: 20px 0;
  color: #818690;
  font-size: 13px;
}

.breadcrumb-arrow {
  font-size: 19px;
  line-height: 1;
}

.breadcrumb a:hover {
  color: var(--primary);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  align-items: start;
  padding-bottom: 55px;
}

.detail-main,
.seller-card {
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 7px 25px rgba(25, 31, 40, 0.05);
}

.detail-gallery {
  position: relative;
  height: 510px;
  overflow: hidden;
  border-radius: 13px 13px 0 0;
  background: #edf0f2;
}

.detail-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-count {
  position: absolute;
  right: 16px;
  bottom: 16px;
  padding: 5px 11px;
  border-radius: 18px;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  font-size: 12px;
}

.detail-content {
  padding: 27px 32px 36px;
}

.detail-content h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.4;
}

.detail-price {
  margin-top: 13px;
  color: var(--primary);
  font-size: 30px;
  font-weight: 800;
}

.detail-submeta {
  display: flex;
  flex-wrap: wrap;
  margin: 14px 0 22px;
  padding-bottom: 18px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.detail-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  padding: 18px 20px;
  border-radius: 9px;
  background: #f8f9fa;
}

.detail-fact span {
  display: inline-block;
  width: 76px;
  color: #92969d;
}

.detail-section {
  margin-top: 28px;
}

.detail-section h2 {
  margin: 0 0 14px;
  padding-left: 11px;
  border-left: 4px solid var(--primary);
  font-size: 20px;
}

.detail-section p {
  color: #565b64;
  white-space: pre-line;
}

.safe-tip {
  margin-top: 25px;
  padding: 13px 16px;
  color: #8a6a25;
  border-radius: 8px;
  background: #fff8e6;
  font-size: 13px;
}

.seller-card {
  position: sticky;
  top: 18px;
  padding: 25px;
}

.seller-card h2 {
  margin: 0 0 20px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
  font-size: 20px;
}

.seller-profile {
  display: flex;
  align-items: center;
}

.avatar {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #ffb08f, var(--primary));
  font-size: 21px;
  font-weight: 800;
}

.seller-name {
  font-size: 17px;
  font-weight: 700;
}

.seller-identity {
  color: var(--muted);
  font-size: 12px;
}

.seller-phone {
  margin: 20px 0 12px;
  padding: 15px;
  border-radius: 8px;
  background: #f7f8fa;
  text-align: center;
}

.seller-phone small {
  display: block;
  color: var(--muted);
}

.seller-phone strong {
  display: block;
  margin-top: 2px;
  font-size: 20px;
  letter-spacing: 1px;
}

.seller-card .primary-button {
  width: 100%;
}

.seller-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.form-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  align-items: start;
  padding: 30px 0 55px;
}

.form-card,
.publish-aside,
.simple-card {
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 7px 25px rgba(25, 31, 40, 0.05);
}

.fee-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding: 17px 20px;
  border: 1px solid #ffd8cc;
  border-radius: 10px;
  background: var(--primary-soft);
}

.fee-notice strong {
  color: var(--primary);
}

.fee-badge {
  flex: 0 0 auto;
  padding: 5px 11px;
  border-radius: 16px;
  color: #fff;
  background: var(--primary);
  font-size: 12px;
  font-weight: 700;
}

.form-card {
  padding: 28px 32px 34px;
}

.form-card h2 {
  margin: 0 0 24px;
  font-size: 22px;
}

.form-row {
  display: grid;
  grid-template-columns: 105px 1fr;
  margin-bottom: 20px;
}

.form-label {
  padding-top: 10px;
  font-weight: 650;
  text-align: right;
}

.required {
  margin-right: 4px;
  color: var(--primary);
}

.field,
.field-select,
.field-textarea {
  width: 100%;
  border: 1px solid #dcdfe4;
  border-radius: 8px;
  outline: 0;
  background: #fff;
  transition: 0.2s;
}

.field,
.field-select {
  height: 44px;
  padding: 0 13px;
}

.field-textarea {
  min-height: 135px;
  padding: 11px 13px;
  resize: vertical;
}

.field:focus,
.field-select:focus,
.field-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 90, 54, 0.1);
}

.field-hint {
  margin-top: 6px;
  color: #9498a0;
  font-size: 12px;
}

.inline-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.upload-box {
  position: relative;
  width: 150px;
  height: 112px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px dashed #cfd3d9;
  border-radius: 9px;
  color: #8a8f98;
  background: #fafbfc;
  cursor: pointer;
  text-align: center;
}

.upload-box:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.upload-box input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.upload-box img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.submit-row {
  padding-left: 123px;
}

.submit-row .primary-button {
  min-width: 190px;
  min-height: 48px;
}

.agreement {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}

.agreement a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.agreement a:hover,
.agreement a:focus-visible {
  text-decoration: underline;
}

.publish-aside {
  padding: 24px;
}

.publish-aside h3 {
  margin: 0 0 14px;
  font-size: 18px;
}

.step-list {
  display: grid;
}

.step-item {
  display: grid;
  grid-template-columns: 29px 1fr;
  align-items: start;
}

.step-number {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--primary);
  background: var(--primary-soft);
  font-weight: 800;
}

.step-item strong {
  display: block;
}

.step-item small {
  color: var(--muted);
}

.payment-page {
  padding: 38px 0 60px;
}

.payment-shell {
  width: min(880px, 100%);
  margin: 0 auto;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
}

.payment-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 23px 30px;
  border-bottom: 1px solid var(--line);
}

.payment-head h1 {
  margin: 0;
  font-size: 22px;
}

.secure-label {
  color: var(--success);
  font-size: 13px;
}

.order-summary {
  display: grid;
  grid-template-columns: 1fr auto;
  padding: 23px 30px;
  background: #fafbfc;
}

.order-summary p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.order-summary strong {
  display: block;
  margin-top: 3px;
  font-size: 17px;
}

.amount-box {
  text-align: right;
}

.amount-box strong {
  color: var(--primary);
  font-size: 27px;
}

.payment-body {
  padding: 28px 30px 34px;
}

.pay-methods {
  display: flex;
  margin: 13px 0 28px;
}

.pay-method {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  padding: 12px 15px;
  border: 1px solid #dfe2e7;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-weight: 700;
}

.pay-method-icon {
  width: 28px;
  height: 28px;
  margin-right: 9px;
  object-fit: contain;
}

.pay-method.active {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--primary-soft);
}

.qr-area {
  display: grid;
  grid-template-columns: 260px 1fr;
  align-items: center;
  width: min(600px, 100%);
  margin: 10px auto 0;
}

.qr-frame {
  position: relative;
  width: 250px;
  height: 250px;
  display: grid;
  place-items: center;
  padding: 14px;
  border: 1px solid #dfe2e7;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(25, 31, 40, 0.08);
}

.qr-grid {
  width: 218px;
  height: 218px;
  display: grid;
  grid-template-columns: repeat(29, 1fr);
  grid-template-rows: repeat(29, 1fr);
  background: #fff;
}

.qr-cell.dark {
  background: #17191d;
}

.qr-logo {
  position: absolute;
  width: 38px;
  height: 38px;
  box-sizing: border-box;
  padding: 4px;
  border: 3px solid #fff;
  border-radius: 9px;
  background: #fff;
  object-fit: contain;
}

.qr-copy h2 {
  margin: 0 0 10px;
  font-size: 23px;
}

.qr-copy p {
  margin: 6px 0;
  color: var(--muted);
}

.countdown {
  color: var(--primary);
  font-weight: 800;
}

.info-page {
  padding: 38px 0 60px;
}

.legal-shell {
  max-width: 920px;
}

.legal-card {
  padding: 38px 42px;
}

.legal-meta {
  margin: -10px 0 28px;
  color: var(--muted);
  font-size: 13px;
}

.legal-section + .legal-section {
  margin-top: 28px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.legal-section h2 {
  margin: 0 0 12px;
  font-size: 20px;
}

.legal-section p,
.legal-section li {
  color: #5f646d;
  line-height: 1.85;
}

.legal-section p {
  margin: 0;
}

.legal-section ul {
  margin: 0;
  padding-left: 22px;
}

.legal-actions {
  margin-top: 32px;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 330px;
}

.simple-card {
  padding: 32px;
}

.simple-card h2,
.simple-card h3 {
  margin-top: 0;
}

.simple-card h2 {
  font-size: 26px;
}

.simple-card h3 {
  margin-bottom: 12px;
  font-size: 19px;
}

.simple-card p {
  color: #5f646d;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 26px;
}

.value-item {
  padding: 19px;
  border-radius: 10px;
  background: #f7f8fa;
}

.value-item span {
  font-size: 25px;
}

.value-item strong {
  display: block;
  margin-top: 7px;
}

.value-item small {
  color: var(--muted);
}

.contact-list {
  display: grid;
}

.contact-item {
  display: block;
  padding: 0 0 14px 14px;
  border-left: 3px solid #ffd8cc;
}

.contact-item strong,
.contact-item span {
  display: block;
}

.contact-item span {
  color: var(--muted);
  font-size: 13px;
}

.message-form {
  display: grid;
}

.login-wrap {
  width: min(480px, calc(100% - 40px));
  margin: 46px auto 65px;
}

.login-card {
  padding: 32px;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
}

.login-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 25px;
  border-bottom: 1px solid var(--line);
}

.login-tab {
  position: relative;
  padding: 10px;
  border: 0;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 17px;
  font-weight: 700;
}

.login-tab.active {
  color: var(--primary);
}

.login-tab.active::after {
  content: "";
  position: absolute;
  left: 25%;
  right: 25%;
  bottom: -1px;
  height: 3px;
  background: var(--primary);
}

.login-panel {
  display: none;
}

.login-panel.active {
  display: block;
}

.login-panel .field {
  margin-bottom: 14px;
}

.login-panel .primary-button {
  width: 100%;
  margin-top: 5px;
}

.account-hint {
  margin-top: 15px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.site-footer {
  color: #bec1c7;
  background: #2d3036;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.35fr 0.8fr 1fr;
  padding: 42px 0 30px;
}

.footer-brand .brand-name {
  color: #fff;
}

.footer-brand p {
  max-width: 450px;
  margin: 14px 0 0;
  color: #aeb2ba;
  font-size: 13px;
}

.footer-column h3 {
  margin: 0 0 13px;
  color: #fff;
  font-size: 15px;
}

.footer-links {
  display: grid;
  font-size: 13px;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  padding: 17px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  color: #92969f;
  font-size: 12px;
  text-align: center;
}

.footer-bottom a {
  color: #b8bbc2;
}

.toast {
  position: fixed;
  z-index: 99;
  left: 50%;
  bottom: 35px;
  padding: 11px 20px;
  border-radius: 8px;
  color: #fff;
  background: rgba(32, 35, 42, 0.93);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 15px);
  transition: 0.25s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 980px) {
  .header-main {
    grid-template-columns: auto 1fr;
    padding: 14px 0;
  }

  .site-search {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .header-publish {
    justify-self: end;
  }

  .nav-inner {
    overflow-x: auto;
  }

  .nav-link {
    flex: 0 0 auto;
  }

  .hero-grid,
  .results-layout,
  .detail-layout,
  .form-shell,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .category-panel {
    display: none;
  }

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

  .results-layout aside {
    display: none;
  }

  .seller-card {
    position: static;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .site-container {
    width: min(100% - 24px, 1180px);
  }

  .top-strip {
    display: none;
  }

  .brand-subtitle {
    display: none;
  }

  .brand-name {
    font-size: 21px;
  }

  .header-publish {
    padding: 0 13px;
  }

  .header-publish span:last-child {
    display: none;
  }

  .nav-inner {
    height: 45px;
  }

  .nav-link {
    padding: 0 13px;
  }

  .hero-section {
    padding-top: 12px;
  }

  .hero-panel {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding: 34px 25px;
  }

  .hero-visual {
    display: none;
  }

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

  .trust-item:nth-child(2) {
    border-right: 0;
  }

  .trust-item:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .category-tiles,
  .listing-grid,
  .value-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: start;
  }

  .content-section {
    padding: 35px 0;
  }

  .filter-row {
    grid-template-columns: 1fr;
  }

  .result-item {
    grid-template-columns: 120px 1fr;
    padding: 15px;
  }

  .result-thumb {
    height: 105px;
  }

  .result-title {
    font-size: 16px;
  }

  .result-description,
  .result-tags {
    display: none;
  }

  .result-price-box {
    grid-column: 2;
    text-align: left;
  }

  .detail-gallery {
    height: 300px;
  }

  .detail-content {
    padding: 22px 18px 28px;
  }

  .detail-content h1 {
    font-size: 23px;
  }

  .detail-facts {
    grid-template-columns: 1fr;
  }

  .form-card {
    padding: 22px 18px;
  }

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

  .form-label {
    text-align: left;
    padding-top: 0;
  }

  .inline-fields,
  .order-summary,
  .qr-area {
    grid-template-columns: 1fr;
  }

  .submit-row {
    padding-left: 0;
  }

  .submit-row .primary-button {
    width: 100%;
  }

  .fee-notice {
    align-items: start;
  }

  .payment-head,
  .order-summary,
  .payment-body {
    padding-left: 20px;
    padding-right: 20px;
  }

  .amount-box {
    text-align: left;
  }

  .pay-methods {
    flex-direction: column;
  }

  .qr-area {
    justify-items: center;
  }

  .qr-copy {
    text-align: center;
  }

  .footer-main {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: auto;
  }
}

/* 兼容旧版浏览器：统一使用相邻元素边距。 */
#siteHeader {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  background: #fff;
}

body {
  padding-top: 165px;
}

button:focus,
button:active,
a:focus,
a:active {
  outline: none !important;
}

button::-moz-focus-inner {
  border: 0;
}

.top-links a + a {
  margin-left: 18px;
}

.header-main > .site-search,
.header-main > .header-publish {
  margin-left: 28px;
}

.brand > * + *,
.primary-button > * + *,
.outline-button > * + *,
.ghost-button > * + * {
  margin-left: 7px;
}

.brand > * + * {
  margin-left: 11px;
}

.nav-link + .nav-link {
  margin-left: 8px;
}

.hero-panel {
  margin-left: 16px;
}

.category-menu a > * + * {
  margin-left: 10px;
}

.eyebrow::before {
  margin-right: 8px;
}

.hero-actions {
  margin-right: -12px;
  margin-bottom: -12px;
}

.hero-actions > * {
  margin-right: 12px;
  margin-bottom: 12px;
}

.trust-item > span {
  margin-right: 10px;
}

.section-heading > * + * {
  margin-left: 20px;
}

.category-tiles {
  margin-right: -16px;
  margin-bottom: -16px;
}

.category-tile {
  margin-right: 16px;
  margin-bottom: 16px;
}

.listing-grid {
  margin-right: -18px;
  margin-bottom: -18px;
}

.listing-card {
  margin-right: 18px;
  margin-bottom: 18px;
}

.filter-row > * + * {
  margin-left: 13px;
}

.filter-options {
  margin-right: -6px;
  margin-bottom: -6px;
}

.filter-option {
  margin-right: 6px;
  margin-bottom: 6px;
}

.results-layout > aside {
  margin-left: 20px;
}

.result-item > * + * {
  margin-left: 21px;
}

.result-tags {
  margin-right: -7px;
  margin-bottom: -7px;
}

.result-tags .tag {
  margin-right: 7px;
  margin-bottom: 7px;
}

.breadcrumb > * + * {
  margin-left: 7px;
}

.detail-layout > .seller-card {
  margin-left: 22px;
}

.detail-submeta > * + * {
  margin-left: 25px;
}

.detail-facts {
  margin-right: -20px;
  margin-bottom: -11px;
}

.detail-fact {
  margin-right: 20px;
  margin-bottom: 11px;
}

.seller-profile > * + * {
  margin-left: 13px;
}

.form-shell > aside {
  margin-left: 22px;
}

.fee-notice > * + * {
  margin-left: 20px;
}

.form-row > * + * {
  margin-left: 18px;
}

.inline-fields > * + * {
  margin-left: 12px;
}

.step-item + .step-item {
  margin-top: 18px;
}

.step-item > * + * {
  margin-left: 10px;
}

.order-summary > * + * {
  margin-left: 25px;
}

.pay-method + .pay-method {
  margin-left: 12px;
}

.qr-copy {
  margin-left: 45px;
}

.info-grid > * + * {
  margin-left: 22px;
}

.value-grid {
  margin-right: -14px;
  margin-bottom: -14px;
}

.value-item {
  margin-right: 14px;
  margin-bottom: 14px;
}

.contact-item + .contact-item {
  margin-top: 18px;
}

.contact-item > * + * {
  margin-left: 12px;
}

.message-form > * + * {
  margin-top: 14px;
}

.footer-column {
  margin-left: 55px;
}

.footer-links > * + * {
  margin-top: 7px;
}

@media (max-width: 980px) {
  body {
    padding-top: 213px;
  }

  .header-main > .site-search {
    margin-top: 16px;
    margin-left: 0;
  }

  .header-main > .header-publish {
    margin-left: 16px;
  }

  .hero-panel,
  .detail-layout > .seller-card,
  .form-shell > aside,
  .info-grid > * + * {
    margin-left: 0;
  }

  .detail-layout > .seller-card,
  .form-shell > aside,
  .info-grid > * + * {
    margin-top: 22px;
  }

  .footer-column {
    margin-left: 0;
  }

  .footer-column + .footer-column {
    margin-left: 55px;
  }
}

@media (max-width: 680px) {
  body {
    padding-top: 176px;
  }

  .category-tiles,
  .listing-grid,
  .value-grid {
    margin-right: 0;
  }

  .category-tile,
  .listing-card,
  .value-item {
    margin-right: 0;
  }

  .filter-row > * + *,
  .form-row > * + * {
    margin-top: 6px;
    margin-left: 0;
  }

  .result-item > * + * {
    margin-left: 14px;
  }

  .detail-submeta > * + * {
    margin-left: 14px;
  }

  .detail-fact {
    margin-right: 0;
  }

  .inline-fields > * + *,
  .order-summary > * + * {
    margin-top: 12px;
    margin-left: 0;
  }

  .pay-method + .pay-method {
    margin-top: 12px;
    margin-left: 0;
  }

  .qr-copy {
    margin-top: 25px;
    margin-left: 0;
  }

  .footer-column + .footer-column,
  .footer-main > * + * {
    margin-top: 28px;
    margin-left: 0;
  }
}
