/* ysc9.com 高保真对标 — 品牌蓝换肤 */
:root {
  --brand: #2563EB;
  --brand-hover: #1D4ED8;
  --brand-bright: #3B82F6;
  --brand-light: #EFF6FF;
  --brand-soft: #EEF4FF;
  --brand-pale-top: #EFF4FF;
  --price: #FF4D5E;
  --online: #10B981;
  --bg-page: #F4F6FA;
  --bg-outer: #EEF0F4;
  --card: #fff;
  --text: #1A1A1A;
  --text-muted: #999;
  --border-light: #F0F0F0;
  --max-w: 500px;
  --font: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  /* 手机端字号阶梯（对标 ysc9 信息密度） */
  --fs-2xs: 10px;
  --fs-xs: 11px;
  --fs-sm: 12px;
  --fs-base: 14px;
  --fs-md: 15px;
  --fs-lg: 17px;
  --fs-xl: 18px;
  --fs-2xl: 22px;
  --lh-tight: 1.25;
  --lh-normal: 1.45;
}

html {
  background: var(--bg-outer);
  -webkit-text-size-adjust: 100%;
}

body.ysc-app {
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  color: #333;
  background: var(--bg-page);
  width: 100%;
  max-width: var(--max-w);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding-bottom: 0 !important;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

body.ysc-app.is-modal-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

body.ysc-app.ysc-market {
  background: linear-gradient(180deg, var(--brand-pale-top) 0, var(--bg-page) 240px, var(--bg-page) 100%);
}

body.ysc-app .ysc-main { min-height: 100vh; }
body.ysc-app.ysc-market .ysc-main,
body.ysc-app.ysc-sub .ysc-main {
  padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px));
}

@media screen and (min-width: 501px) {
  body.ysc-app .fixed-header,
  body.ysc-app .filter-bar.is-fixed,
  body.ysc-app .custom-tab-bar,
  body.ysc-app .dropdown-mask,
  body.ysc-app .dropdown-panel.is-show {
    left: calc((100vw - var(--max-w)) / 2) !important;
    right: calc((100vw - var(--max-w)) / 2) !important;
    width: auto !important;
    max-width: var(--max-w);
    margin-left: auto;
    margin-right: auto;
  }
}

.hub-page { min-height: 100vh; padding-bottom: 8px; }

.fixed-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: linear-gradient(180deg, var(--brand-pale-top), var(--bg-page));
  padding: 14px 20px 13px;
  padding-top: calc(14px + env(safe-area-inset-top, 0px));
}

.fixed-header.is-scrolled { background: var(--card); }
.fixed-header-placeholder { height: 118px; }

.top-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
}

.home-title-link { display: block; text-decoration: none; flex-shrink: 0; }

.home-title-text {
  display: inline-block;
  max-width: calc(100vw - 90px);
  height: auto;
  line-height: var(--lh-tight);
  font-size: var(--fs-xl);
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.logo-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 53px;
  min-height: 48px;
  text-decoration: none;
  flex-shrink: 0;
}

.contact-icon {
  width: 53px;
  height: 48px;
  object-fit: contain;
  display: block;
}

.search-container {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 13px;
}

.search-box {
  flex: 1;
  min-width: 0;
  height: 48px;
  box-sizing: border-box;
  border-radius: 24px;
  display: flex;
  align-items: center;
  background: var(--card);
  padding: 4px 4px 4px 16px;
  box-shadow: 0 5px 16px rgba(37, 99, 235, 0.08);
}

.search-icon { width: 21px; height: 21px; flex-shrink: 0; }

.search-input {
  flex: 1;
  min-width: 0;
  height: 40px;
  margin-left: 10px;
  border: 0;
  outline: none;
  background: transparent;
  font-size: var(--fs-base);
  color: #333;
  font-family: inherit;
  -webkit-appearance: none;
}

.search-input::placeholder { color: var(--text-muted); font-size: var(--fs-sm); }

.search-button {
  width: 72px;
  height: 40px;
  border: 0;
  border-radius: 20px;
  background: var(--brand);
  color: #fff;
  font-size: var(--fs-base);
  line-height: 40px;
  text-align: center;
  cursor: pointer;
  flex-shrink: 0;
  font-family: inherit;
}

.display-switch {
  width: 52px;
  min-width: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}

.display-switch-icon { width: 26px; height: 26px; }
.display-switch-text { font-size: var(--fs-xs); line-height: 1.2; color: #333; white-space: nowrap; }

.swiper-bar { overflow: hidden; padding: 0 17px; }
.swiper-track { width: 100%; height: 130px; border-radius: 13px; overflow: hidden; }
.swiper-slide { width: 100%; height: 130px; }
.banner-image { width: 100%; height: 130px; object-fit: cover; border-radius: 4px; display: block; }
.banner-image-link { display: block; width: 100%; height: 130px; text-decoration: none; }
.banner-image-link .banner-image { border-radius: 13px; }

.notice-bar {
  height: 53px;
  margin: 16px 17px 0;
  padding: 7px 14px;
  background: linear-gradient(90deg, var(--brand-soft), #F0FFF9);
  border-radius: 13px;
  box-sizing: border-box;
}

.notice-box {
  height: 40px;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notice-icon { width: 24px; font-size: 16px; line-height: 1; flex-shrink: 0; }

.notice-content {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-sm);
  color: var(--text);
  white-space: nowrap;
}

.notice-number { color: var(--brand); margin: 0 2px; font-weight: 500; }

.nav-container { margin-top: 17px; position: relative; z-index: 10; }

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: 44px;
  padding: 0 17px;
  margin-bottom: 9px;
  background: transparent;
}

.filter-bar.is-fixed {
  position: fixed;
  left: 0;
  right: 0;
  background: var(--bg-page);
  padding: 0 20px;
  z-index: 997;
}

.filter-bar-placeholder { height: 53px; }

.filter-item {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  font-size: var(--fs-base);
  color: #333;
  cursor: pointer;
  border: 0;
  background: transparent;
  padding: 6px 0;
  min-height: 40px;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}

.filter-item-last { justify-content: flex-end; }
.filter-item.is-active { color: var(--brand); font-weight: 600; }
.filter-item.is-open .dropdown-icon { transform: rotate(180deg); }

.dropdown-icon, .filter-icon { width: 16px; height: 16px; transition: transform 0.3s; }

.hot-attr-scroll {
  width: 100%;
  margin-bottom: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.hot-attr-scroll::-webkit-scrollbar { display: none; }

.hot-attr-list {
  display: flex;
  align-items: center;
  padding: 2px 18px 5px;
  white-space: nowrap;
}

.hot-attr-tag {
  display: inline-block;
  margin-right: 14px;
  padding: 8px 0;
  min-height: 36px;
  line-height: 20px;
  font-size: var(--fs-base);
  color: #1A1A1A;
  cursor: pointer;
  flex-shrink: 0;
  background: none;
  border: none;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}

.hot-attr-tag.is-active { color: var(--brand); font-weight: 500; }

.dropdown-mask {
  position: fixed;
  inset: 0;
  z-index: 996;
  background: rgba(0, 0, 0, 0.45);
  display: none;
}

.dropdown-mask.is-show { display: block; }

.dropdown-panel {
  display: none;
  position: fixed;
  background: var(--card);
  border-radius: 0 0 26px 26px;
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.12);
  z-index: 998;
  padding: 16px 20px 20px;
  box-sizing: border-box;
}

.dropdown-panel.is-show { display: block; }

.dropdown-option {
  padding: 14px 20px;
  font-size: var(--fs-md);
  color: #333;
  border-bottom: 1px solid #F5F5F5;
  cursor: pointer;
}

.dropdown-option.is-active { color: var(--brand); font-weight: 600; }

.dp-title { font-size: var(--fs-md); font-weight: 600; margin-bottom: 14px; }
.dp-price-inputs { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }

.dp-price-input {
  flex: 1;
  height: 44px;
  background: #F5F5F5;
  border-radius: 10px;
  border: 1px solid #EEE;
  padding: 0 13px;
  font-size: var(--fs-base);
  text-align: center;
  font-family: inherit;
  outline: none;
}

.dp-price-tags, .dp-region-tags { display: flex; flex-wrap: wrap; gap: 13px; margin-bottom: 20px; }

.dp-tag {
  flex: 1;
  min-width: calc(50% - 7px);
  padding: 12px 0;
  border: 1px solid transparent;
  background: #F3F6F9;
  border-radius: 10px;
  font-size: var(--fs-base);
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  font-family: inherit;
}

.dp-tag.is-active { background: var(--brand-light); border-color: #93C5FD; color: var(--brand); }
.dp-btns { display: flex; gap: 13px; }

.dp-btn {
  flex: 1;
  height: 44px;
  border-radius: 13px;
  border: 0;
  font-size: var(--fs-base);
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
}

.dp-btn-reset { background: var(--card); border: 1px solid var(--price); color: var(--price); }
.dp-btn-confirm { background: var(--brand); color: #fff; }

.goods-box {
  display: flex;
  flex-direction: column;
  padding: 0 17px;
  gap: 13px;
  margin-bottom: 88px;
}

.goods-item2 {
  padding: 13px;
  background: var(--card);
  border-radius: 10px;
  border: none;
  box-shadow: none;
}

.goods-item2-link { display: block; text-decoration: none; color: inherit; }

.goods-header { display: flex; align-items: flex-start; gap: 13px; }

.goods-header-img-box {
  width: 106px;
  height: 106px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #F3F4F6;
}

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

.goods-header-shop-box {
  flex: 1;
  min-width: 0;
  height: 106px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 4px;
}

.goods-header-shop-title {
  font-weight: 500;
  font-size: var(--fs-md);
  color: #000;
  line-height: 20px;
  margin: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.goods-header-shop-des {
  display: flex;
  align-items: center;
  overflow: hidden;
  gap: 5px;
  white-space: nowrap;
}

.goods-meta-item, .goods-meta-separator { font-size: var(--fs-sm); line-height: 16px; color: var(--text-muted); }
.goods-meta-separator { color: #CCC; }

.goods-price-section { display: flex; align-items: baseline; gap: 10px; white-space: nowrap; }
.label-text, .price-big { font-size: var(--fs-md); line-height: 20px; color: var(--price); }
.price-big { font-weight: 500; }
.price-old { font-size: var(--fs-sm); color: #AAA; }

.goods-tag-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 13px; }

.goods-stat-tag {
  min-height: 24px;
  padding: 3px 7px;
  background: #F7F8FA;
  border-radius: 5px;
  border: 1px solid transparent;
  color: #4F4F4F;
  font-size: var(--fs-sm);
  line-height: 18px;
  white-space: nowrap;
}

.goods-stat-tag:nth-child(1) { background: #FFFBF0; border-color: #FFE499; }
.goods-stat-tag:nth-child(2) { background: #F0FFF9; border-color: #99FFD5; }

.goods-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 13px;
  padding-top: 13px;
  border-top: 1px solid var(--border-light);
}

.trade-time {
  color: var(--text-muted);
  font-size: var(--fs-sm);
  line-height: 18px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 1;
}

.btn-section {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
  max-width: 62%;
}

.confirm-time-btn, .rent-btn {
  height: 34px;
  font-size: var(--fs-sm);
  line-height: 1;
  border-radius: 17px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  border: 1px solid transparent;
  box-sizing: border-box;
  max-width: 100%;
}

.confirm-time-btn.rent-btn-style { background: var(--brand); color: #fff; font-weight: 500; }
.rent-btn { background: #F7F8FA; color: #CCC; }

.goods-item2.is-large .goods-header { display: block; }
.goods-item2.is-large .goods-header-img-box { width: 100%; height: 245px; margin-bottom: 10px; }
.goods-item2.is-large .goods-header-shop-box {
  height: auto;
  display: grid;
  grid-template-areas: "price meta" "title title";
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 10px;
  row-gap: 8px;
}
.goods-item2.is-large .goods-header-shop-title { grid-area: title; font-size: var(--fs-md); line-height: 22px; }
.goods-item2.is-large .goods-header-shop-des { grid-area: meta; justify-content: flex-end; }
.goods-item2.is-large .goods-price-section { grid-area: price; }

.hub-empty { text-align: center; padding: 40px 20px; margin: 0 17px; color: var(--text-muted); }
.loadmore-text { text-align: center; padding: 10px; margin-bottom: 20px; font-size: var(--fs-sm); color: #606266; }

.hub-sell-fab {
  position: fixed;
  right: 16px;
  bottom: calc(68px + env(safe-area-inset-bottom, 0px));
  z-index: 910;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 22px;
  background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
  color: #fff !important;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.38);
  -webkit-tap-highlight-color: transparent;
}

.hub-sell-fab:active {
  transform: scale(0.97);
  opacity: 0.92;
}

@media screen and (min-width: 501px) {
  .hub-sell-fab {
    right: max(16px, calc((100vw - var(--max-w)) / 2 + 16px));
  }
}

.custom-tab-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--card);
  border-top: 1px solid var(--border-light);
  z-index: 900;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.tab-bar-content {
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  height: 60px;
  padding-bottom: 4px;
}

.tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  text-decoration: none;
  color: #333;
  padding: 4px 0 2px;
  min-height: 50px;
  -webkit-tap-highlight-color: transparent;
}

.tab-item:active { opacity: 0.7; }

.tab-item.is-active { color: var(--brand); }

.tab-icon {
  width: 24px;
  height: 24px;
  margin-bottom: 2px;
  display: block;
  object-fit: contain;
}
.tab-text { font-size: var(--fs-2xs); line-height: 1.2; }

.ysc-sub-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--card);
  border-bottom: 1px solid #E5E7EB;
  padding: 12px 17px;
  padding-top: calc(12px + env(safe-area-inset-top, 0px));
  display: flex;
  align-items: center;
  min-height: 48px;
}

.ysc-sub-back { color: #333; font-size: var(--fs-base); text-decoration: none; }
.ysc-sub-title { flex: 1; text-align: center; font-size: var(--fs-lg); font-weight: 500; margin: 0; }
.ysc-flash { padding: 10px 17px 0; }
.ysc-sub-content { padding: 16px 17px; padding-bottom: 8px; }
.ysc-detail-page { padding: 0; }

.ysc-goods-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ysc-my-goods-box {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.ysc-my-goods-box .goods-item2 {
  margin-bottom: 0;
}

.ysc-my-goods-box .confirm-time-btn {
  cursor: pointer;
  font-family: inherit;
}

.ysc-my-goods-box .confirm-time-btn.is-disabled {
  opacity: 0.55;
  pointer-events: none;
}

.my-goods-list-item.is-rejected {
  border-color: #FECACA;
}

.my-goods-reject-tip {
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #FEF2F2;
  color: #991B1B;
  font-size: 12px;
  line-height: 1.5;
}

.my-goods-reject-tip strong {
  font-weight: 600;
}

.my-goods-audit-tag--pending {
  color: #2563EB;
  background: #EFF6FF;
}

.my-goods-order-tag--pending_audit {
  color: #2563EB;
  background: #EFF6FF;
}

.my-goods-order-tag--listed,
.my-goods-order-tag--completed {
  color: #059669;
  background: #ECFDF5;
}

.my-goods-order-tag--offline {
  color: #6B7280;
  background: #F3F4F6;
}

.my-goods-order-tag--leasing {
  color: #4F46E5;
  background: #EEF2FF;
}

.my-goods-order-tag--audit_failed,
.my-goods-order-tag--refunded {
  color: #DC2626;
  background: #FEF2F2;
}

.my-goods-audit-tag--approved {
  color: #059669;
  background: #ECFDF5;
}

.my-goods-audit-tag--rejected {
  color: #DC2626;
  background: #FEF2F2;
}

.ysc-my-goods-box .rent-btn.is-disabled {
  opacity: 0.5;
  pointer-events: none;
  background: #E5E7EB;
  color: #9CA3AF;
}

.screenshot-preview-item--existing {
  position: relative;
}

.screenshot-preview-item--existing::after {
  content: '已有';
  position: absolute;
  left: 6px;
  bottom: 6px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 10px;
  line-height: 1.2;
}

.ysc-empty {
  text-align: center;
  padding: 48px 20px;
  background: var(--card);
  border-radius: 10px;
}

.ysc-empty-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #EFF6FF;
  color: var(--brand);
  font-size: 24px;
  line-height: 56px;
}

.ysc-empty h3 {
  margin: 0 0 8px;
  font-size: var(--fs-lg);
  font-weight: 500;
  color: var(--text);
}

.ysc-empty p {
  margin: 0 0 20px;
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.5;
}

.ysc-detail-cover {
  position: relative;
  width: 100%;
  height: 200px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 16px;
  background: #F3F4F6;
  box-sizing: border-box;
}

.ysc-detail-cover.has-image {
  padding: 0;
}

.ysc-detail-cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


.ysc-detail-cover-region,
.ysc-detail-cover-ratio,
.ysc-detail-cover-game {
  display: block;
  line-height: 1.4;
}

.ysc-detail-cover-region { font-size: var(--fs-sm); opacity: 0.9; }
.ysc-detail-cover-ratio { font-size: var(--fs-2xl); font-weight: 600; margin: 4px 0; }
.ysc-detail-cover-game { font-size: var(--fs-xs); opacity: 0.85; }

.ysc-detail-price-block { margin-bottom: 16px; }

/* ========== 登录 / 注册页 ========== */
body.ysc-app.ysc-auth-page {
  background: linear-gradient(180deg, #EFF4FF 0%, #F5F9FF 38%, #F8FAFC 100%);
}

body.ysc-app.ysc-auth-page .ysc-main {
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

body.ysc-app.ysc-auth-page .ysc-flash {
  position: relative;
  z-index: 2;
  padding: 10px 20px 0;
}

.auth-page {
  position: relative;
  min-height: calc(100vh - env(safe-area-inset-top, 0px));
  min-height: calc(100dvh - env(safe-area-inset-top, 0px));
  padding: calc(20px + env(safe-area-inset-top, 0px)) 20px 28px;
  overflow: hidden;
}

.auth-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.auth-bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
}

.auth-bg-orb--1 {
  top: -30px;
  right: -20px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.22) 0%, rgba(59, 130, 246, 0) 70%);
}

.auth-bg-orb--2 {
  top: 120px;
  left: -40px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.14) 0%, rgba(16, 185, 129, 0) 70%);
}

.auth-bg-orb--3 {
  top: 42px;
  right: 36px;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #60A5FA, #3B82F6);
  opacity: 0.85;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
}

.auth-brand {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 18px 0 22px;
}

.auth-brand-logo {
  display: block;
  width: 64px;
  height: 64px;
  margin: 0 auto 10px;
  border-radius: 16px;
  object-fit: cover;
}

.auth-brand-mark {
  display: inline-block;
  font-size: 42px;
  font-weight: 700;
  letter-spacing: 2px;
  line-height: 1.1;
  color: #1E3A8A;
  text-shadow: 0 2px 12px rgba(37, 99, 235, 0.12);
}

.auth-brand-tagline {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: #64748B;
}

.auth-card {
  position: relative;
  z-index: 1;
  background: #FFFFFF;
  border-radius: 24px;
  padding: 28px 22px 22px;
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.06);
}

.auth-title {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  color: #1E293B;
  line-height: 1.3;
}

.auth-desc {
  margin: 8px 0 22px;
  font-size: 14px;
  color: #94A3B8;
  line-height: 1.45;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-field {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-field-icon {
  position: absolute;
  left: 14px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.auth-field-icon img {
  display: block;
}

.auth-field input {
  width: 100%;
  height: 50px;
  padding: 0 44px 0 42px;
  border: 1px solid #E2E8F0;
  border-radius: 25px;
  background: #FFFFFF;
  font-size: 16px;
  color: #1E293B;
  outline: none;
  font-family: inherit;
  box-sizing: border-box;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.auth-field input::placeholder {
  color: #CBD5E1;
}

.auth-field input:focus {
  border-color: #93C5FD;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.auth-pwd-toggle {
  position: absolute;
  right: 6px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.auth-pwd-toggle img {
  display: block;
}

.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: -2px;
  padding: 0 4px;
}

.auth-remember {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #64748B;
  cursor: pointer;
  user-select: none;
}

.auth-remember input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--brand);
}

.auth-forgot {
  font-size: 13px;
  color: var(--brand);
  cursor: default;
}

.auth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border: 0;
  border-radius: 25px;
  font-family: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.15s;
}

.auth-btn:active {
  opacity: 0.88;
}

.auth-btn--primary {
  height: 50px;
  margin-top: 6px;
  background: linear-gradient(90deg, #3B82F6 0%, #2563EB 100%);
  color: #FFFFFF;
  font-size: 16px;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.28);
}

.auth-btn--register {
  height: 52px;
  background: #FFFFFF;
  border: 1.5px solid #BFDBFE;
  color: var(--brand);
  font-size: 17px;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.08);
}

.auth-btn--register-submit {
  height: 52px;
  font-size: 17px;
}

.auth-btn--outline {
  height: 48px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  color: #475569;
  font-size: 15px;
}

.auth-divider {
  position: relative;
  margin: 20px 0 16px;
  text-align: center;
}

.auth-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #EEF2F7;
}

.auth-divider span {
  position: relative;
  padding: 0 12px;
  background: #FFFFFF;
  font-size: 12px;
  color: #94A3B8;
}

.auth-agree {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 18px;
  font-size: 12px;
  color: #94A3B8;
  line-height: 1.5;
  cursor: pointer;
}

.auth-agree input {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--brand);
}

.auth-agree a {
  color: var(--brand);
  text-decoration: none;
}

/* 兼容旧类名 */
.ysc-auth-page { padding: 0; }
.ysc-auth-card { background: transparent; border-radius: 0; padding: 0; box-shadow: none; }

body.ysc-app .topbar,
body.ysc-app .footer,
body.ysc-app .tabbar { display: none !important; }

body.ysc-app .page-header,
body.ysc-app .page-header-sm { display: none; }

.ysc-publish-page .page-hero,
.ysc-publish-page .page-hero-publish,
.ysc-my-page .page-hero-my { display: none; }

/* 覆盖 app.css 旧商品卡蓝色边框 */
body.ysc-app .hub-page .goods-item2,
body.ysc-app .hub-page .goods-item2.product-card,
body.ysc-app .goods-list-item,
body.ysc-app .product-card {
  border: none !important;
  box-shadow: none !important;
  transform: none !important;
}

body.ysc-app .hub-page .goods-item2:hover,
body.ysc-app .hub-page .goods-item2.product-card:hover {
  border: none !important;
  box-shadow: none !important;
  transform: none !important;
}

body.ysc-app .goods-list-thumb { display: none !important; }

/* 详情页标签复用 */
.ysc-stat-tag {
  min-height: 24px;
  padding: 3px 7px;
  background: #F7F8FA;
  border-radius: 5px;
  border: 1px solid transparent;
  color: #4F4F4F;
  font-size: var(--fs-sm);
  line-height: 18px;
  white-space: nowrap;
  display: inline-block;
}

.ysc-detail-card {
  background: var(--card);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 13px;
}

.ysc-detail-title {
  font-size: var(--fs-lg);
  font-weight: 500;
  line-height: var(--lh-tight);
  margin: 0 0 12px;
  color: var(--text);
  word-break: break-word;
}

.ysc-detail-price {
  font-size: var(--fs-2xl);
  font-weight: 600;
  color: var(--price);
}

.ysc-detail-price-sub {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-top: 4px;
}

.ysc-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.ysc-detail-grid > div {
  background: #F7F8FA;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: var(--fs-sm);
}

.ysc-detail-grid span {
  display: block;
  font-size: var(--fs-xs);
  color: var(--text-muted);
  margin-bottom: 2px;
}

.ysc-detail-grid strong {
  color: var(--text);
  font-weight: 500;
  word-break: break-all;
}

.ysc-detail-section {
  background: var(--card);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 13px;
}

.ysc-detail-section h3 {
  font-size: var(--fs-base);
  font-weight: 500;
  margin: 0 0 10px;
  color: var(--text);
}

.ysc-detail-text p {
  margin: 0 0 8px;
  font-size: var(--fs-sm);
  line-height: var(--lh-normal);
  color: #374151;
  word-break: break-word;
}

/* 表单输入保持 16px 防 iOS 自动放大，标签/按钮用阶梯字号 */
body.ysc-app.ysc-publish-page .publish-form,
body.ysc-app.ysc-sub .form-stack {
  max-width: 100%;
}

body.ysc-app.ysc-publish-page .form-item input,
body.ysc-app.ysc-publish-page .form-item select,
body.ysc-app.ysc-publish-page .form-item textarea {
  font-size: 16px;
  min-height: 44px;
}

body.ysc-app .form-item label {
  font-size: var(--fs-sm);
}

body.ysc-app .btn {
  font-size: var(--fs-base);
}

body.ysc-app .btn-lg {
  font-size: var(--fs-md);
}

body.ysc-app .publish-step-panel .step-title h3 {
  font-size: var(--fs-md);
}

body.ysc-app .publish-step-panel .step-title p {
  font-size: var(--fs-sm);
}

body.ysc-app .field-tip {
  font-size: var(--fs-xs);
  line-height: 1.5;
}

body.ysc-app .alert {
  font-size: var(--fs-sm);
}

/* ========== 发布页（与首页 hub 同风格） ========== */
body.ysc-app.ysc-publish-page {
  background: #F5F7FB;
}

body.ysc-app.ysc-publish-page.ysc-market {
  background: linear-gradient(180deg, var(--brand-pale-top) 0, #F5F7FB 180px, #F5F7FB 100%);
}

.publish-hub-page {
  min-height: 100vh;
  padding-bottom: 8px;
}

.is-hidden {
  display: none !important;
}

.publish-top-bar {
  padding: 14px 17px 0;
  padding-top: calc(14px + env(safe-area-inset-top, 0px));
  background: linear-gradient(180deg, var(--brand-pale-top), transparent);
}

.publish-hero {
  margin-top: 12px;
  padding-bottom: 2px;
}

.publish-hero-title {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #111827;
  line-height: 1.3;
}

.publish-hero-desc {
  margin: 6px 0 0;
  font-size: 13px;
  color: #8A94A3;
  line-height: 1.45;
}

/* 顶部步骤导航 */
.publish-flow-scroll {
  margin-top: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.publish-flow-scroll::-webkit-scrollbar { display: none; }

.publish-flow-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 17px 10px;
  white-space: nowrap;
}

.publish-flow-item {
  font-size: 13px;
  color: #9CA3AF;
  cursor: pointer;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.publish-flow-item.is-active {
  color: var(--brand);
  font-weight: 600;
}

.publish-flow-item.is-done {
  color: #6B7280;
}

.publish-flow-sep {
  color: #D1D5DB;
  font-size: 12px;
  flex-shrink: 0;
}

.publish-notice-bar {
  margin-top: 2px;
}

.publish-reject-bar .notice-box {
  background: #FEF2F2;
  border-color: #FECACA;
}

.publish-reject-bar .notice-content {
  color: #991B1B;
  line-height: 1.5;
}

.publish-reject-bar .notice-icon {
  background: #DC2626;
  color: #fff;
}

.publish-notice-bar .notice-dot {
  margin: 0 4px;
  color: #CCC;
}

.publish-box {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0 17px;
  margin-top: 8px;
  margin-bottom: calc(130px + env(safe-area-inset-bottom, 0px));
}

/* Section 卡片 */
.publish-card {
  position: relative;
  padding: 0;
  background: #FFFFFF;
  border: 1px solid #EEF1F5;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.035);
  overflow: hidden;
}

.publish-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--brand);
  opacity: 0.85;
}

.publish-card--step2::before { opacity: 1; }
.publish-card--step3::before { background: #10B981; opacity: 0.75; }

.publish-section-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 16px 14px;
  border-bottom: 1px solid #F1F4F8;
}

.publish-section-head--tint {
  background: linear-gradient(180deg, #F8FBFF 0%, #FFFFFF 100%);
}

.publish-section-head--trade {
  background: linear-gradient(180deg, #F6FDF9 0%, #FFFFFF 100%);
}

.publish-section-index {
  min-width: 40px;
  height: 40px;
  padding: 0 6px;
  border-radius: 8px;
  background: #EFF6FF;
  color: var(--brand);
  font-size: 15px;
  font-weight: 700;
  line-height: 40px;
  text-align: center;
  flex-shrink: 0;
  letter-spacing: 0.5px;
}

.publish-section-titles h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  color: #111827;
  line-height: 1.35;
}

.publish-section-titles p {
  margin: 5px 0 0;
  font-size: 13px;
  color: #8A94A3;
  line-height: 1.5;
}

.publish-form-grid {
  padding: 14px 16px 16px;
}

body.ysc-app.ysc-publish-page .publish-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

body.ysc-app.ysc-publish-page .form-item {
  display: grid;
  gap: 7px;
  margin-bottom: 20px;
}

body.ysc-app.ysc-publish-page .form-item:last-child {
  margin-bottom: 0;
}

body.ysc-app.ysc-publish-page .form-item label,
body.ysc-app.ysc-publish-page .form-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  line-height: 1.3;
}

body.ysc-app.ysc-publish-page .form-item--required > label > span:first-child::after {
  content: '*';
  color: #EF4444;
  margin-left: 3px;
  font-size: 12px;
}

/* 状态标签体系 */
.status-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 5px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.3;
  flex-shrink: 0;
}

.status-tag--rec {
  background: #EFF6FF;
  color: #2563EB;
  border: 1px solid #DBEAFE;
}

.status-tag--optional {
  background: #F9FAFB;
  color: #9CA3AF;
  border: 1px solid #EEF1F5;
}

.status-tag--required {
  background: #FEF2F2;
  color: #EF4444;
  border: 1px solid #FECACA;
}

.publish-yesno-group {
  display: flex;
  gap: 12px;
}

.publish-yesno-option {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  background: #FFFFFF;
  color: #374151;
  font-size: 15px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.publish-yesno-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.publish-yesno-option:has(input:checked) {
  border-color: var(--brand);
  background: #EFF6FF;
  color: var(--brand);
  font-weight: 600;
}

/* 输入框 */
.input-suffix-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-suffix-wrap input {
  padding-right: 36px !important;
}

.input-suffix {
  position: absolute;
  right: 12px;
  font-size: 13px;
  color: #A0A8B5;
  pointer-events: none;
}

body.ysc-app.ysc-publish-page .form-item input,
body.ysc-app.ysc-publish-page .form-item select,
body.ysc-app.ysc-publish-page .form-item textarea,
body.ysc-app.ysc-publish-page .input-suffix-wrap input {
  width: 100%;
  min-height: 45px;
  padding: 10px 12px;
  border: 1px solid #DDE3EA;
  border-radius: 10px;
  background: #FFFFFF;
  font-size: 16px;
  color: #111827;
  outline: none;
  font-family: inherit;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

body.ysc-app.ysc-publish-page .form-item input::placeholder,
body.ysc-app.ysc-publish-page .form-item textarea::placeholder {
  color: #A0A8B5;
}

body.ysc-app.ysc-publish-page .form-item select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%239CA3AF' d='M1.4 0L6 4.6 10.6 0 12 1.4 6 7.4 0 1.4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  color: #111827;
}

body.ysc-app.ysc-publish-page .form-item select.is-empty {
  color: #9CA3AF;
}

body.ysc-app.ysc-publish-page .form-item select.is-filled {
  color: #111827;
}

body.ysc-app.ysc-publish-page .form-item textarea {
  min-height: 88px;
  resize: vertical;
  line-height: 1.5;
}

body.ysc-app.ysc-publish-page .form-item input:focus,
body.ysc-app.ysc-publish-page .form-item select:focus,
body.ysc-app.ysc-publish-page .form-item textarea:focus {
  border-color: #2563EB;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

/* 说明文字 */
body.ysc-app.ysc-publish-page .field-tip {
  margin-top: 6px;
  padding: 0;
  border: none;
  background: transparent;
  font-size: 12px;
  line-height: 1.55;
  color: #8A94A3;
  max-height: none;
  overflow: visible;
}

body.ysc-app.ysc-publish-page .field-tip--muted {
  font-size: 11px;
  color: #A0A8B5;
}

body.ysc-app.ysc-publish-page .field-tip--warn {
  font-size: 12px;
  color: #8A94A3;
}

body.ysc-app.ysc-publish-page .field-tip--warn strong {
  color: #D97706;
  font-weight: 600;
}

body.ysc-app.ysc-publish-page .field-tip--callout {
  margin-top: 8px;
  padding: 7px 9px;
  background: #F8FAFD;
  border-left: 2px solid #BFDBFE;
  border-radius: 0 6px 6px 0;
  font-size: 12px;
  line-height: 1.5;
  color: #6B7280;
}

body.ysc-app.ysc-publish-page .form-item:focus-within .field-tip {
  max-height: none;
  padding: 0;
  background: transparent;
  border-left: none;
}

/* 等级提示 */
.level-indicator {
  font-size: 12px;
  font-weight: 500;
  color: var(--brand);
}

/* 分区轻识别 */
.form-block--warn {
  margin: 4px 0 20px;
  padding: 12px;
  border-radius: 10px;
  background: #FFFBF5;
  border: 1px solid #FEEDD5;
}

.form-block--warn .form-item {
  margin-bottom: 14px;
}

.form-block--warn .form-item:last-child {
  margin-bottom: 0;
}

.form-block--success {
  padding: 12px;
  border-radius: 10px;
  background: #F6FDF9;
  border: 1px solid #D1FAE5;
  margin-bottom: 0 !important;
}

/* 底部固定操作栏 */
.publish-submit-note {
  margin: 0;
  padding: 0 4px;
  font-size: 12px;
  line-height: 1.5;
  color: #8A94A3;
  text-align: center;
}

.publish-action-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(60px + env(safe-area-inset-bottom, 0px));
  z-index: 850;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  background: #FFFFFF;
  border-top: 1px solid #EEF0F3;
  box-shadow: 0 -2px 12px rgba(15, 23, 42, 0.04);
}

.publish-action-meta {
  min-width: 0;
  flex: 1;
}

.publish-action-count {
  font-size: 13px;
  color: #6B7280;
  line-height: 1.3;
}

.publish-action-btn {
  flex-shrink: 0;
  min-width: 120px;
  height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 22px;
  background: var(--brand);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.22);
  -webkit-tap-highlight-color: transparent;
}

.publish-action-btn:active {
  opacity: 0.88;
}

@media screen and (min-width: 501px) {
  .publish-action-bar {
    left: calc((100vw - var(--max-w)) / 2);
    right: calc((100vw - var(--max-w)) / 2);
    max-width: var(--max-w);
    margin: 0 auto;
  }
}

/* 结算比例滑块（对标 ysc9 uni-slider） */
.ratio-slider-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ratio-slider-value {
  font-size: var(--fs-sm);
  color: var(--brand);
  font-weight: 500;
}

.ratio-slider-value strong {
  font-weight: 600;
}

.u-slider {
  padding: 12px 2px 8px;
}

.ratio-slider {
  width: 100%;
  height: 18px;
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  outline: none;
  cursor: pointer;
}

.ratio-slider::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(
    to right,
    var(--brand) 0%,
    var(--brand) var(--ratio-percent, 50%),
    #e9e9e9 var(--ratio-percent, 50%),
    #e9e9e9 100%
  );
}

.ratio-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin-top: -7px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.15);
  border: 0;
}

.ratio-slider::-moz-range-track {
  height: 4px;
  border-radius: 2px;
  background: #e9e9e9;
}

.ratio-slider::-moz-range-progress {
  height: 4px;
  border-radius: 2px;
  background: var(--brand);
}

.ratio-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.15);
  border: 0;
}

.ratio-slider-scale {
  display: flex;
  justify-content: space-between;
  margin-top: -2px;
  padding: 0 2px;
  font-size: 11px;
  color: #9CA3AF;
  line-height: 1.2;
}

.ratio-recommend-tip {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: #DC2626;
}

.ratio-recommend-tip strong {
  font-weight: 600;
  color: #DC2626;
}

.price-estimate-panel {
  grid-column: 1 / -1;
  padding: 12px;
  background: #F8FAFD;
  border: 1px solid #EEF1F5;
  border-radius: 10px;
  margin-bottom: 20px;
}

.price-estimate-title {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: #333;
  margin-bottom: 10px;
}

.price-estimate-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #EEE;
}

.price-estimate-row:last-child {
  border-bottom: none;
}

.price-estimate-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.price-estimate-label span {
  font-size: var(--fs-sm);
  color: #333;
}

.price-estimate-label em {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  font-style: normal;
  line-height: 1.35;
}

.price-estimate-amount {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: #333;
  white-space: nowrap;
  flex-shrink: 0;
}

.price-estimate-total {
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px dashed #DDD;
  border-bottom: none;
}

.price-estimate-total span {
  font-size: var(--fs-base);
  font-weight: 500;
  color: #333;
}

.price-estimate-total .price-estimate-amount {
  font-size: var(--fs-md);
  color: var(--price);
}

.net-price-display {
  min-height: 45px;
  padding: 10px 12px;
  border: 1px solid #DDE3EA;
  border-radius: 10px;
  background: #FFFBFC;
  font-size: 20px;
  font-weight: 600;
  color: var(--price);
  line-height: 1.2;
}

.deposit-readonly {
  min-height: 45px;
  padding: 10px 12px;
  border: 1px solid #DDE3EA;
  border-radius: 10px;
  background: #FFFFFF;
  font-size: 14px;
  color: #9CA3AF;
  line-height: 1.35;
  display: flex;
  align-items: center;
}

.screenshot-upload-item {
  gap: 10px;
}

.screenshot-upload-label {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 14px;
  font-weight: 600;
  color: #1F2937;
}

.screenshot-required {
  color: #FF5000;
  font-weight: 600;
  line-height: 1;
}

.screenshot-upload-area {
  margin-top: 2px;
}

.screenshot-upload-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px;
}

.screenshot-upload-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screenshot-preview-list {
  display: contents;
}

.screenshot-preview-item,
.screenshot-add-tile {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 8px;
  overflow: hidden;
  box-sizing: border-box;
  flex-shrink: 0;
}

.screenshot-preview-item {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
}

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

.screenshot-preview-cover {
  position: absolute;
  left: 0;
  top: 0;
  padding: 2px 7px;
  background: rgba(37, 99, 235, 0.92);
  color: #fff;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.4;
  border-radius: 0 0 8px 0;
  z-index: 1;
}

.screenshot-preview-remove {
  position: absolute;
  right: 4px;
  top: 4px;
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 50%;
  background: rgba(17, 24, 39, 0.55);
  color: #fff;
  font-size: 14px;
  line-height: 20px;
  text-align: center;
  padding: 0;
  cursor: pointer;
  z-index: 2;
}

.screenshot-preview-remove:active {
  background: rgba(17, 24, 39, 0.72);
}

.screenshot-add-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #F5F6F8;
  border: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s;
}

.screenshot-add-tile:active,
.screenshot-add-tile:hover {
  background: #ECEEF2;
}

.screenshot-add-tile.is-hidden {
  display: none;
}

.screenshot-camera-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #B8BDC6;
}

.screenshot-camera-icon svg {
  display: block;
}

.screenshot-add-text {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.2;
  color: #B0B6BE;
}

.screenshot-guide-text {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.65;
  color: #8B83C9;
}

.screenshot-board-count {
  display: block;
  margin-top: 8px;
  font-size: 11px;
  color: var(--brand);
  line-height: 1.3;
}

.screenshot-board-count[hidden] {
  display: none;
}

.screenshot-board-hint {
  margin: 8px 0 0;
  font-size: 11px;
  color: #A0A8B5;
  line-height: 1.45;
}

body.ysc-app.ysc-publish-page .publish-check-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  max-height: none;
  overflow: visible;
}

body.ysc-app.ysc-publish-page .publish-check-grid .check-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 8px 12px;
  border-radius: 8px;
  background: #F3F6F9;
  border: 1px solid transparent;
  font-size: var(--fs-sm);
  color: #333;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

body.ysc-app.ysc-publish-page .publish-check-grid .check-item:has(input:checked) {
  background: var(--brand-light);
  border-color: #93C5FD;
  color: var(--brand);
}

body.ysc-app.ysc-publish-page .publish-check-grid .check-item input {
  width: 16px;
  height: 16px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  accent-color: var(--brand);
  flex-shrink: 0;
}

body.ysc-app.ysc-publish-page .publish-check-grid .check-item span {
  line-height: 1.3;
}

.publish-submit-card {
  display: none;
}

body.ysc-app.ysc-publish-page .section.container,
body.ysc-app.ysc-publish-page .publish-layout,
body.ysc-app.ysc-publish-page .publish-sidebar {
  display: none;
}

body.ysc-app.ysc-publish-page .ysc-flash {
  padding: 10px 17px 0;
}

/* 皮肤选择器（底部弹层） */
.skin-picker-trigger {
  width: 100%;
  min-height: 45px;
  padding: 10px 12px;
  border: 1px solid #DDE3EA;
  border-radius: 10px;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
}

.skin-picker-trigger.has-value {
  background: #FFFFFF;
}

.skin-picker-trigger:active {
  opacity: 0.85;
}

.skin-picker-trigger:focus-visible {
  border-color: #2563EB;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
  outline: none;
}

.skin-picker-value {
  flex: 1;
  min-width: 0;
  font-size: 16px;
  color: #111827;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.skin-picker-trigger.has-value .skin-picker-value {
  font-size: 16px;
  color: #111827;
}

.skin-picker-value.is-placeholder {
  color: #9CA3AF;
  font-size: 16px;
}

.skin-picker-arrow {
  flex-shrink: 0;
  width: auto;
  height: auto;
  margin-right: 0;
  border: 0;
  transform: none;
  font-size: 18px;
  line-height: 1;
  color: #C0C4CC;
  font-weight: 300;
}

.skin-picker-arrow::before {
  content: '›';
}

.skin-picker-values {
  display: none;
}

.skin-picker-mask[hidden],
.skin-picker-sheet[hidden] {
  display: none !important;
}

.skin-picker-mask {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.skin-picker-mask.is-open {
  opacity: 1;
}

.skin-picker-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1101;
  max-width: var(--max-w);
  margin: 0 auto;
  background: var(--card);
  border-radius: 16px 16px 0 0;
  height: min(72vh, 560px);
  min-height: 280px;
  display: flex;
  flex-direction: column;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  transform: translateY(100%);
  transition: transform 0.25s ease;
  box-sizing: border-box;
}

.skin-picker-sheet.is-open {
  transform: translateY(0);
}

.skin-picker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 0 16px;
  border-bottom: 1px solid #F0F0F0;
  flex-shrink: 0;
}

.skin-picker-cancel,
.skin-picker-confirm {
  border: 0;
  background: transparent;
  font-size: var(--fs-base);
  font-family: inherit;
  padding: 8px 0;
  min-width: 48px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.skin-picker-cancel {
  color: #999;
  text-align: left;
}

.skin-picker-confirm {
  color: var(--brand);
  font-weight: 500;
  text-align: right;
}

.skin-picker-title {
  margin: 0;
  flex: 1;
  text-align: center;
  font-size: var(--fs-md);
  font-weight: 600;
  color: #1A1A1A;
  line-height: var(--lh-tight);
  padding: 0 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.skin-picker-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.skin-picker-option {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border: 0;
  border-bottom: 1px solid #F3F4F6;
  background: var(--card);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}

.skin-picker-option:last-child {
  border-bottom: none;
}

.skin-picker-option:active {
  background: #FAFBFC;
}

.skin-picker-option-text {
  flex: 1;
  min-width: 0;
  font-size: var(--fs-base);
  color: #333;
  line-height: var(--lh-normal);
  word-break: break-word;
}

.skin-picker-radio {
  width: 22px;
  height: 22px;
  border: 1.5px solid #D1D5DB;
  border-radius: 50%;
  flex-shrink: 0;
  box-sizing: border-box;
  position: relative;
}

.skin-picker-option.is-selected .skin-picker-radio {
  border-color: var(--brand);
  background: var(--brand);
}

.skin-picker-option.is-selected .skin-picker-radio::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: #fff;
}

@media screen and (min-width: 501px) {
  body.ysc-app .skin-picker-mask,
  body.ysc-app .skin-picker-sheet {
    left: calc((100vw - var(--max-w)) / 2);
    right: calc((100vw - var(--max-w)) / 2);
    width: auto;
    max-width: var(--max-w);
    margin-left: auto;
    margin-right: auto;
  }
}

@media (min-width: 501px) {
  body.ysc-app.ysc-publish-page .publish-form-grid .form-item.full {
    grid-column: 1 / -1;
  }
}

body.ysc-app .btn,
body.ysc-app .search-button,
body.ysc-app .dp-btn {
  min-height: 44px;
}

body.ysc-app .btn:active,
body.ysc-app .search-button:active,
body.ysc-app .filter-item:active,
body.ysc-app .hot-attr-tag:active {
  opacity: 0.75;
}

/* ========== 手机端布局微调（字号已由变量统一控制） ========== */
@media (max-width: 500px) {
  .fixed-header {
    padding-left: 12px;
    padding-right: 12px;
  }

  .search-container {
    margin-top: 14px;
    gap: 8px;
  }

  .search-button {
    width: 68px;
  }

  .display-switch {
    width: 48px;
    min-width: 48px;
  }

  .swiper-bar,
  .goods-box,
  .hub-empty {
    padding-left: 12px;
    padding-right: 12px;
  }

  .notice-bar {
    margin-left: 12px;
    margin-right: 12px;
    height: auto;
    min-height: 44px;
    padding: 6px 12px;
  }

  .notice-box {
    height: auto;
    min-height: 32px;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 2px;
  }

  .notice-content {
    flex-wrap: wrap;
    white-space: normal;
    line-height: 1.35;
    justify-content: flex-start;
  }

  .filter-bar {
    padding: 0 12px;
  }

  .filter-bar.is-fixed {
    padding: 0 12px;
  }

  .hot-attr-list {
    padding-left: 12px;
    padding-right: 12px;
  }

  .nav-container {
    margin-top: 14px;
  }

  .goods-box {
    margin-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }

  .ysc-sub-content {
    padding-left: 12px;
    padding-right: 12px;
  }

  .auth-page {
    padding-left: 16px;
    padding-right: 16px;
  }

  .auth-brand-mark {
    font-size: 36px;
  }

  .auth-card {
    padding: 24px 18px 20px;
    border-radius: 20px;
  }

  .publish-box,
  .publish-steps-list,
  .publish-top-bar {
    padding-left: 12px;
    padding-right: 12px;
  }

  .publish-notice-bar {
    margin-left: 12px;
    margin-right: 12px;
  }

  .publish-hero {
    margin-top: 10px;
  }

  .publish-hero-title {
    font-size: var(--fs-lg);
  }

  .publish-steps-scroll {
    margin-top: 8px;
  }

  body.ysc-app.ysc-publish-page .form-item textarea {
    min-height: 72px;
  }

  .publish-submit-card {
    padding: 14px 12px;
  }

  .ysc-detail-grid {
    gap: 8px;
  }
}

@media (max-width: 360px) {
  :root {
    --fs-base: 13px;
    --fs-md: 14px;
    --fs-lg: 16px;
    --fs-xl: 17px;
    --fs-2xl: 20px;
  }

  .filter-item span {
    max-width: 4.2em;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .btn-section {
    max-width: 68%;
  }
}

/* ========== 我的页面 ========== */
body.ysc-app.ysc-my-page {
  background: #F5F7FB;
}

body.ysc-app.ysc-my-page.ysc-market {
  background: linear-gradient(180deg, var(--brand-pale-top) 0, #F5F7FB 220px, #F5F7FB 100%);
}

.mine-page {
  min-height: 100vh;
  padding-bottom: 8px;
}

.mine-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: calc(16px + env(safe-area-inset-top, 0px)) 20px 18px;
  background: linear-gradient(135deg, #EFF4FF 0%, #F0FDF4 55%, #F5F7FB 100%);
}

.mine-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.mine-avatar {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 2px solid #FFFFFF;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.12);
  color: var(--brand);
  font-size: 22px;
  font-weight: 600;
  line-height: 52px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

.mine-profile-text {
  min-width: 0;
}

.mine-hello {
  display: block;
  font-size: 13px;
  color: #9CA3AF;
  line-height: 1.3;
}

.mine-username {
  margin: 4px 0 0;
  font-size: 18px;
  font-weight: 600;
  color: #111827;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mine-settings {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-top: 4px;
  border-radius: 8px;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.mine-settings:active {
  background: rgba(255, 255, 255, 0.6);
}

.mine-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 16px 12px;
  margin-top: -4px;
}

.mine-card {
  background: #FFFFFF;
  border: 1px solid #EEF1F5;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.035);
  padding: 14px 14px 16px;
}

.mine-card-title {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  line-height: 1.3;
}

.mine-grid {
  display: grid;
  gap: 8px 4px;
}

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

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

@media (max-width: 420px) {
  .mine-grid--filters {
    grid-template-columns: repeat(4, 1fr);
  }
}

.mine-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.mine-menu-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 4px 2px 2px;
  text-decoration: none;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

.mine-menu-item.is-disabled {
  opacity: 0.72;
  pointer-events: none;
}

.mine-menu-item.is-active .mine-menu-label {
  color: var(--brand);
  font-weight: 500;
}

.mine-menu-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #F8FAFD;
}

.mine-menu-item.is-active .mine-menu-icon {
  background: #EFF6FF;
}

.mine-menu-icon img {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.mine-menu-label {
  font-size: 12px;
  color: #4B5563;
  line-height: 1.3;
  text-align: center;
}

.mine-menu-badge {
  position: absolute;
  top: 0;
  right: calc(50% - 30px);
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  line-height: 16px;
  text-align: center;
}

.mine-card--balance {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
}

.mine-balance-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

.mine-balance-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mine-balance-icon img {
  display: block;
}

.mine-balance-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.mine-balance-label {
  font-size: 13px;
  color: #6B7280;
  line-height: 1.3;
}

.mine-balance-amount {
  font-size: 22px;
  font-weight: 600;
  color: #111827;
  line-height: 1.2;
}

.mine-balance-arrow {
  font-size: 18px;
  color: #D1D5DB;
  font-weight: 400;
}

.mine-withdraw-btn {
  flex-shrink: 0;
  height: 32px;
  padding: 0 16px;
  border: 0;
  border-radius: 16px;
  background: #EFF6FF;
  color: var(--brand);
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
}

.mine-withdraw-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.mine-card--tools {
  padding: 16px 12px 14px;
}

.mine-tool-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

.mine-tool-item.is-soon {
  opacity: 0.72;
}

.mine-tool-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
}

.mine-tool-icon img {
  display: block;
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.mine-tool-label {
  font-size: 12px;
  color: #4B5563;
  line-height: 1.3;
  text-align: center;
}

.mine-goods-section {
  margin-top: 4px;
}

.mine-goods-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 0 2px;
}

.mine-goods-title {
  margin: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  color: #111827;
}

.mine-goods-filter {
  padding: 2px 8px;
  border-radius: 4px;
  background: #EFF6FF;
  color: var(--brand);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
}

.mine-goods-publish {
  font-size: 13px;
  color: var(--brand);
  text-decoration: none;
  font-weight: 500;
}

.mine-goods-empty {
  padding: 28px 16px;
  border-radius: 12px;
  background: #FFFFFF;
  border: 1px solid #EEF1F5;
  text-align: center;
}

.mine-goods-empty p {
  margin: 0 0 12px;
  font-size: 13px;
  color: #8A94A3;
}

.mine-goods-empty .btn-sm {
  min-height: 36px;
  padding: 0 18px;
  font-size: 13px;
}

.ysc-my-page .ysc-my-goods-box {
  gap: 12px;
}

/* ========== 商品详情页 ========== */
body.ysc-app.ysc-detail-page {
  background: #F5F7FB;
}

body.ysc-app.ysc-detail-page.ysc-market {
  background: linear-gradient(180deg, var(--brand-pale-top) 0, #F5F7FB 200px, #F5F7FB 100%);
}

.detail-hub-page {
  min-height: 100vh;
  padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
}

.detail-top-bar {
  padding: 10px 17px 0;
  padding-top: calc(10px + env(safe-area-inset-top, 0px));
  background: linear-gradient(180deg, var(--brand-pale-top), transparent);
}

.detail-top-row {
  display: grid;
  grid-template-columns: 40px 1fr 53px;
  align-items: center;
  gap: 8px;
  min-height: 48px;
}

.detail-back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  color: #374151;
  font-size: 20px;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.detail-back:active {
  background: rgba(255, 255, 255, 0.7);
}

.detail-top-title {
  text-align: center;
  font-size: 17px;
  font-weight: 600;
  color: #111827;
  line-height: 1.3;
}

.detail-cover-wrap {
  margin: 8px 17px 0;
  border-radius: 12px;
  overflow: hidden;
  background: #EEF1F5;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.035);
}

.detail-cover-img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 200px;
  max-height: 280px;
  object-fit: cover;
  aspect-ratio: 16 / 9;
}

.detail-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px 17px 16px;
}

.detail-card {
  background: #FFFFFF;
  border: 1px solid #EEF1F5;
  border-radius: 12px;
  padding: 14px 16px 16px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.035);
}

.detail-card--hero {
  padding-top: 16px;
}

.detail-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.detail-price {
  font-size: 26px;
  font-weight: 600;
  color: var(--price);
  line-height: 1.2;
}

.detail-ratio-tag {
  flex-shrink: 0;
  padding: 3px 8px;
  border-radius: 4px;
  background: #EFF6FF;
  color: var(--brand);
  border: 1px solid #DBEAFE;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
}

.detail-price-sub {
  margin: 6px 0 12px;
  font-size: 12px;
  color: #8A94A3;
  line-height: 1.45;
}

.detail-title {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  line-height: 1.45;
  word-break: break-word;
}

.detail-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #9CA3AF;
  line-height: 1.4;
}

.detail-meta-dot {
  color: #D1D5DB;
}

.detail-section-head {
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #F1F4F8;
}

.detail-section-head--warn {
  background: linear-gradient(180deg, #FFFBF5 0%, transparent 100%);
  margin: -14px -16px 14px;
  padding: 14px 16px 12px;
  border-bottom-color: #FEEDD5;
  border-radius: 12px 12px 0 0;
}

.detail-section-head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  line-height: 1.3;
}

.detail-section-head p {
  margin: 4px 0 0;
  font-size: 12px;
  color: #8A94A3;
  line-height: 1.4;
}

.detail-spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.detail-spec-item {
  padding: 10px 12px;
  border-radius: 10px;
  background: #F8FAFD;
  border: 1px solid #EEF1F5;
}

.detail-spec-label {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  color: #8A94A3;
  line-height: 1.3;
}

.detail-spec-value {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  line-height: 1.35;
  word-break: break-all;
}

.detail-kv-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.detail-kv-item {
  display: grid;
  gap: 6px;
}

.detail-kv-label {
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  line-height: 1.3;
}

.detail-kv-text {
  margin: 0;
  font-size: 13px;
  color: #6B7280;
  line-height: 1.55;
  word-break: break-word;
}

.detail-shot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.detail-shot-item {
  position: relative;
  display: block;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  background: #F3F4F6;
  -webkit-tap-highlight-color: transparent;
}

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

.detail-shot-cover {
  position: absolute;
  top: 6px;
  left: 6px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(37, 99, 235, 0.88);
  color: #fff;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.3;
}

.detail-action-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(60px + env(safe-area-inset-bottom, 0px));
  z-index: 850;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  background: #FFFFFF;
  border-top: 1px solid #EEF0F3;
  box-shadow: 0 -2px 12px rgba(15, 23, 42, 0.04);
}

.detail-action-price {
  min-width: 0;
  flex: 1;
}

.detail-action-label {
  display: block;
  font-size: 12px;
  color: #8A94A3;
  line-height: 1.3;
}

.detail-action-amount {
  display: block;
  margin-top: 2px;
  font-size: 20px;
  font-weight: 600;
  color: var(--price);
  line-height: 1.2;
}

.detail-action-btn {
  flex-shrink: 0;
  min-width: 132px;
  height: 44px;
  padding: 0 20px;
  border-radius: 22px;
  background: var(--brand);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  line-height: 44px;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.22);
  -webkit-tap-highlight-color: transparent;
}

.detail-action-btn:active {
  opacity: 0.88;
}

@media screen and (min-width: 501px) {
  .detail-action-bar {
    left: calc((100vw - var(--max-w)) / 2);
    right: calc((100vw - var(--max-w)) / 2);
    max-width: var(--max-w);
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .detail-body,
  .detail-top-bar {
    padding-left: 12px;
    padding-right: 12px;
  }

  .detail-cover-wrap {
    margin-left: 12px;
    margin-right: 12px;
  }

  .detail-spec-grid {
    gap: 8px;
  }

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

/* 发布教程页 */
.guide-page {
  padding-bottom: 24px;
}

.guide-hero {
  margin-bottom: 16px;
  padding: 20px 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand-light) 0%, #fff 100%);
  border: 1px solid rgba(37, 99, 235, 0.12);
}

.guide-hero-tag {
  display: inline-block;
  margin: 0 0 8px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--brand);
  font-size: var(--fs-xs);
  font-weight: 600;
}

.guide-hero-title {
  margin: 0 0 8px;
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: var(--text);
  line-height: var(--lh-tight);
}

.guide-hero-desc {
  margin: 0 0 16px;
  font-size: var(--fs-md);
  color: #555;
  line-height: 1.6;
}

.guide-hero-note {
  margin: 10px 0 0;
  font-size: var(--fs-sm);
  color: var(--text-muted);
  text-align: center;
}

.guide-hero-note a {
  color: var(--brand);
  text-decoration: none;
}

.guide-hero-btn {
  display: block;
  width: 100%;
  height: 48px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--brand-bright), var(--brand));
  color: #fff;
  font-size: var(--fs-lg);
  font-weight: 600;
  line-height: 48px;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.22);
}

.guide-card {
  margin-bottom: 12px;
  padding: 16px 16px 14px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.guide-card--tips {
  background: #fffdf5;
  border: 1px solid #ffe9b3;
}

.guide-card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--text);
}

.guide-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-size: var(--fs-sm);
  font-weight: 700;
  flex-shrink: 0;
}

.guide-lead {
  margin: 0 0 10px;
  font-size: var(--fs-md);
  color: #555;
  line-height: 1.6;
}

.guide-list {
  margin: 0;
  padding-left: 20px;
  font-size: var(--fs-md);
  color: #444;
  line-height: 1.65;
}

.guide-list li + li {
  margin-top: 8px;
}

.guide-list--bullet {
  list-style: disc;
}

.guide-list a {
  color: var(--brand);
  text-decoration: none;
}

.guide-dl {
  margin: 0;
}

.guide-dl > div + div {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
}

.guide-dl dt {
  margin: 0 0 4px;
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--text);
}

.guide-dl dd {
  margin: 0;
  font-size: var(--fs-md);
  color: #555;
  line-height: 1.6;
}

.guide-callout {
  margin: 12px 0;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: var(--fs-md);
  line-height: 1.6;
}

.guide-callout--warn {
  background: #fff8f0;
  border: 1px solid #ffd8a8;
  color: #7a4b00;
}

.guide-callout p {
  margin: 6px 0 0;
}

.guide-formula {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--brand-light);
  font-size: var(--fs-md);
  color: #334155;
  line-height: 1.6;
}

.guide-formula-title {
  margin: 0 0 8px;
  font-weight: 600;
  color: var(--text);
}

.guide-formula ul {
  margin: 0;
  padding-left: 18px;
}

.guide-formula-note {
  margin: 10px 0 0;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.guide-footer-actions {
  margin-top: 8px;
  padding-bottom: 8px;
}

.publish-guide-link {
  color: var(--brand);
  font-weight: 500;
  text-decoration: none;
}

.publish-guide-link:active {
  opacity: 0.75;
}
