/* 集市。组件用 ui.css，这里只放本页的排版 */

main.has-foot {
  padding-bottom: calc(112px + env(safe-area-inset-bottom));
}

h2.section-title {
  color: var(--ink);
  font-weight: 600;
}

.mine-dot {
  position: absolute;
  top: 8px;
  right: 8px;
}

#mine-open {
  position: relative;
}

/* 四个货架 */
.shelves {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-top: 20px;
  padding: 4px;
  border-radius: 14px;
  background: var(--soft);
}

.shelves button {
  min-height: 44px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--muted);
  font-size: 16px;
  cursor: pointer;
  transition: transform 150ms ease;
}

.shelves button:active {
  transform: scale(0.97);
}

.shelves button.on {
  background: var(--paper);
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(26, 24, 20, 0.12);
}

.shelf-search {
  margin-top: 12px;
}

.shelf-tools {
  margin-top: 12px;
}

.legend {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

#shelf-body {
  margin-top: 16px;
}

.stack {
  display: grid;
  gap: 12px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  min-width: 0;
}

.tag.ink {
  background: var(--ink);
  color: #fff;
}

.tag.line {
  background: transparent;
  box-shadow: inset 0 0 0 1px #d9d1c3;
  color: var(--ink);
}

/* 假照片：颜色块加一笔线条画 */
.pic {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: rgba(26, 24, 20, 0.62);
}

.pic .icon {
  width: 42%;
  height: 42%;
  stroke-width: 1.1;
}

.pic.zoom .icon {
  width: 78%;
  height: 78%;
}

.pic-note {
  position: absolute;
  left: 10px;
  bottom: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 252, 247, 0.75);
  color: var(--ink);
  font-size: 12px;
}

/* 两列的商品和作品 */
.goods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.gcard {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  color: var(--ink);
}

.gcard .pic {
  aspect-ratio: 1;
}

.gcard-body {
  display: grid;
  gap: 6px;
  padding: 10px 12px 12px;
  min-width: 0;
}

.gname {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  font-size: 15px;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.gprice {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
}

.gprice small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}

.gstore {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  margin: 0;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
}

.gcard .tag {
  white-space: normal;
}

.kind-note {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 252, 247, 0.8);
  color: var(--ink);
  font-size: 12px;
}

.by {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
}

.by .avatar {
  width: 22px;
  height: 22px;
}

.by span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 本事卡片 */
.scard {
  display: grid;
  gap: 8px;
  color: var(--ink);
}

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

.who-text {
  display: grid;
  flex: 1;
  gap: 4px;
  min-width: 0;
}

.who-name {
  overflow: hidden;
  font-size: 15px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.skill-title {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
}

.meta {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.meta b {
  color: var(--ink);
  font-weight: 600;
}

/* 搭子货架 */
.intro {
  display: grid;
  gap: 12px;
}

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

.intro-head .icon {
  width: 36px;
  height: 36px;
}

.intro-head p {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
}

.intro > p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
}

.intro .faces {
  display: flex;
}

.intro .faces .avatar {
  width: 36px;
  height: 36px;
  margin-right: -8px;
  box-shadow: 0 0 0 2px var(--paper);
}

/* 空的时候：自己的卡通形象加一句话 */
.empty-me {
  display: flex;
  align-items: center;
  gap: 12px;
}

.empty-me img {
  flex: none;
  width: 52px;
  height: 52px;
  object-fit: contain;
}

/* 商品页的照片：左右滑 */
.gallery {
  margin-top: 4px;
}

.photos {
  display: flex;
  overflow-x: auto;
  border-radius: 16px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-user-select: none;
  user-select: none;
}

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

.photos .pic {
  flex: 0 0 100%;
  aspect-ratio: 4 / 3;
  scroll-snap-align: start;
}

.photo-cap {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.photo-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.photo-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d9d1c3;
}

.photo-dots i.on {
  background: var(--ink);
}

.item-name {
  margin: 16px 0 6px;
  font-size: 24px;
}

.price-big {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 600;
}

.price-big small {
  margin-left: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
}

.desc {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.7;
}

/* 这件东西怎么查过的 */
.checks {
  margin-top: 20px;
  padding: 0;
}

.checks summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 16px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.checks summary::-webkit-details-marker {
  display: none;
}

.checks summary > span:first-of-type {
  flex: 1;
  min-width: 0;
}

.checks summary::after {
  content: "›";
  color: var(--muted);
  font-size: 20px;
  font-weight: 400;
  transition: transform 150ms ease;
}

.checks[open] summary::after {
  transform: rotate(90deg);
}

.checks-n {
  color: var(--green);
  font-size: 13px;
  font-weight: 400;
  white-space: nowrap;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 4px 16px 0;
  list-style: none;
}

.check-list li {
  display: flex;
  gap: 10px;
}

.check-list .icon {
  width: 20px;
  height: 20px;
  margin-top: 1px;
  color: var(--green);
}

.check-list li.na .icon,
.check-list li.wait .icon {
  color: var(--muted);
}

.check-list b {
  display: block;
  font-size: 15px;
  font-weight: 500;
}

.check-list span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.checks .fine {
  margin: 12px 16px 16px;
}

.fine {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

/* 买了放心 */
.protect {
  margin-top: 12px;
}

.protect-title {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 600;
}

.protect ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.protect li {
  display: flex;
  gap: 8px;
  font-size: 15px;
  line-height: 1.5;
}

.protect .icon {
  width: 20px;
  height: 20px;
  margin-top: 1px;
  color: var(--green);
}

/* 卖家 */
.seller {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

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

.seller-head .store-ico {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--soft);
}

.seller-head > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.seller-name {
  font-size: 16px;
  font-weight: 600;
}

.seller-sub {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.seller p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}

/* 评价 */
.rating {
  display: flex;
  align-items: center;
  gap: 16px;
}

.rating-num {
  font-size: 34px;
  font-weight: 600;
  line-height: 1;
}

.rating-num small {
  margin-left: 2px;
  font-size: 14px;
  font-weight: 400;
}

.dist {
  display: grid;
  flex: 1;
  gap: 3px;
  min-width: 0;
}

.dist div {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.dist i {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: var(--soft);
  overflow: hidden;
}

.dist i b {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--ink);
}

.dist span {
  flex: none;
  width: 2.5em;
}

.dist span:last-child {
  width: 1.5em;
  text-align: right;
}

.review-list {
  display: grid;
  gap: 0;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.review {
  display: grid;
  gap: 6px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.review-head {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 14px;
}

.review-head .avatar {
  width: 28px;
  height: 28px;
}

.review-head > span:nth-child(2) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.review-head .when {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.stars {
  color: var(--ink);
  font-size: 13px;
  letter-spacing: 1px;
}

.stars em {
  color: #d9d1c3;
  font-style: normal;
}

.review p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
}

.review .reply {
  padding: 8px 12px;
  border-radius: 12px;
  background: var(--soft);
  color: var(--muted);
  font-size: 14px;
}

/* 底部操作：拇指够得着 */
.foot {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  padding: 16px 20px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(rgba(243, 239, 230, 0), var(--bg) 34%);
}

.foot-row {
  display: flex;
  gap: 8px;
  width: min(100%, 380px);
  margin: 0 auto;
}

.foot-row .btn {
  min-height: 52px;
}

.foot-row .btn:not(.primary) {
  flex: none;
}

.foot-row .btn.primary {
  flex: 1;
  width: auto;
  min-width: 0;
}

.foot-row .foot-row {
  flex: 1;
  width: auto;
  margin: 0;
}

.btn.small .icon {
  width: 18px;
  height: 18px;
}

/* 详情页头部 */
.detail-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 12px 0 16px;
}

.detail-head h1 {
  margin: 0 0 6px;
  font-size: 24px;
}

.detail-head > div {
  min-width: 0;
}

.avatar.big {
  width: 72px;
  height: 72px;
}

.lead + .say,
.lead + .fields {
  margin-top: 20px;
}

.go-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  margin-top: 12px;
  padding: 8px 12px 8px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
}

.go-row span {
  flex: 1;
  min-width: 0;
}

.go-row .avatar {
  width: 36px;
  height: 36px;
}

button.go-row {
  width: 100%;
  font: inherit;
  font-size: 16px;
  text-align: left;
  cursor: pointer;
}

/* 列表行 */
button.row,
a.row {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.row-main {
  display: grid;
  flex: 1;
  gap: 2px;
  min-width: 0;
  padding: 8px 0;
}

.row-title {
  overflow: hidden;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row-note {
  color: var(--muted);
  font-size: 13px;
}

.row-note.need {
  color: var(--ink);
  font-weight: 500;
}

.row-amount {
  flex: none;
  font-size: 15px;
}

.thumb {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
}

.thumb .icon {
  width: 60%;
  height: 60%;
}

.row .icon.chevron {
  width: 20px;
  height: 20px;
  color: var(--muted);
}

.row .avatar {
  width: 44px;
  height: 44px;
}

.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

/* 订单的几步 */
.order-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 8px 0 20px;
}

.order-head .thumb,
.order-head .avatar {
  width: 64px;
  height: 64px;
}

.order-head > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.order-head h1 {
  margin: 0;
  font-size: 20px;
  line-height: 1.4;
}

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

.steps {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  position: relative;
  display: flex;
  gap: 12px;
  min-height: 56px;
  padding-bottom: 8px;
}

.steps li:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 30px;
  bottom: 2px;
  width: 2px;
  background: var(--line);
}

.steps li.done:not(:last-child)::before {
  background: var(--green);
}

.step-dot {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 2px solid #d9d1c3;
  border-radius: 50%;
  background: var(--paper);
  color: var(--muted);
  font-size: 13px;
}

.steps li.done .step-dot {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.steps li.now .step-dot {
  border-color: var(--ink);
  color: var(--ink);
}

.step-dot .icon {
  width: 16px;
  height: 16px;
  stroke-width: 2.4;
}

.step-text {
  display: grid;
  gap: 2px;
  padding-top: 3px;
}

.step-text b {
  font-size: 15px;
  font-weight: 500;
}

.steps li:not(.done) .step-text b {
  color: var(--muted);
}

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

.state-card {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.6;
}

.state-card.ok {
  border-color: transparent;
  background: var(--green-soft);
  color: var(--green);
}

.state-card.wait {
  border-color: transparent;
  background: var(--gold-soft);
  color: var(--gold);
}

.state-card p {
  margin: 0;
}

.more-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

/* 弹层里的小表格 */
.sheet-summary {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 12px;
  border-radius: 12px;
  background: var(--soft);
  font-size: 14px;
  line-height: 1.5;
}

.sheet-summary div {
  display: flex;
  gap: 12px;
}

.sheet-summary dt {
  flex: none;
  width: 4.5em;
  color: var(--muted);
}

.sheet-summary dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.sheet-card .rows {
  border-radius: 14px;
}

.sheet-card select,
.sheet-card textarea {
  width: 100%;
  min-width: 0;
}

.sheet-card .mini-protect {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--green);
  font-size: 13px;
  line-height: 1.5;
}

.sheet-card .promise {
  padding: 12px;
  border-radius: 12px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 14px;
}

/* 问问店员、商家 */
.chat-who {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-who > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.chat-who b {
  font-size: 16px;
}

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

.msgs {
  display: grid;
  gap: 8px;
  max-height: 38dvh;
  overflow-y: auto;
  padding: 4px 0;
}

.msg {
  max-width: 86%;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--soft);
  font-size: 15px;
  line-height: 1.5;
}

.msg.me {
  justify-self: end;
  background: var(--ink);
  color: #fff;
}

.say-row {
  display: flex;
  gap: 8px;
}

.say-row input {
  flex: 1;
  min-width: 0;
}

.sheet-card .chips button {
  min-height: 36px;
  height: auto;
}

.text-link {
  color: var(--blue);
  font-size: 14px;
  text-align: center;
}

/* 拍照（模拟） */
.shots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.shot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  color: rgba(26, 24, 20, 0.6);
  cursor: pointer;
}

.shot.add {
  border: 1px dashed #c9c0b0;
  background: transparent;
  color: var(--muted);
}

/* 评分 */
.star-pick {
  display: flex;
  gap: 4px;
}

.star-pick button {
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  color: #d9d1c3;
  font-size: 28px;
  cursor: pointer;
}

.star-pick button.on {
  color: var(--ink);
}

/* 作品预览：只能预览的水印 */
.preview {
  position: relative;
  margin-top: 4px;
  overflow: hidden;
  border-radius: 16px;
}

.preview .pic {
  aspect-ratio: 4 / 3;
}

.wm {
  position: absolute;
  inset: -30%;
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
  gap: 28px 36px;
  color: rgba(26, 24, 20, 0.22);
  font-size: 15px;
  font-weight: 600;
  pointer-events: none;
  transform: rotate(-24deg);
  -webkit-user-select: none;
  user-select: none;
}

.read {
  position: relative;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  overflow: hidden;
}

.read p {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.8;
}

.read h3 {
  margin: 0 0 12px;
  font-size: 17px;
}

.read.cut {
  max-height: 340px;
}

.read.cut::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 90px;
  background: linear-gradient(rgba(255, 252, 247, 0), var(--paper));
}

.listen {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
}

.gets {
  display: grid;
  gap: 6px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
  line-height: 1.5;
}

.gets li {
  display: flex;
  gap: 8px;
}

.gets .icon {
  width: 20px;
  height: 20px;
  margin-top: 1px;
  color: var(--green);
}

/* 经验帖 */
.rule-line {
  display: flex;
  gap: 8px;
  margin: 0 0 12px;
  padding: 12px;
  border-radius: 14px;
  background: var(--soft);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.6;
}

.rule-line .icon {
  width: 20px;
  height: 20px;
  margin-top: 1px;
}

.post {
  display: grid;
  gap: 8px;
}

.post-title {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
}

.post-body p {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.7;
}

.post details summary {
  min-height: 36px;
  color: var(--muted);
  font-size: 14px;
  line-height: 36px;
  cursor: pointer;
  list-style: none;
}

.post details summary::-webkit-details-marker {
  display: none;
}

.post details[open] summary {
  display: none;
}

.post-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.post-foot .note {
  flex: 1;
  min-width: 8em;
  color: var(--muted);
  font-size: 13px;
}

.bio {
  margin: 0 0 4px;
  font-size: 15px;
  line-height: 1.6;
}

/* 我卖的 */
.earned {
  display: flex;
  align-items: center;
  gap: 12px;
}

.earned > div {
  flex: 1;
  min-width: 0;
}

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

.earned strong {
  font-size: 24px;
  font-weight: 600;
}

.shop-card {
  display: grid;
  gap: 10px;
}

.shop-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
}

/* 申请入驻、上架、发创意 */
.need-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.need-list li {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.need-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.need-list li > div {
  display: grid;
  flex: 1;
  gap: 2px;
  min-width: 0;
}

.need-list b {
  font-size: 15px;
  font-weight: 500;
}

.need-list span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.need-list .tag {
  align-self: flex-start;
}

.invite {
  display: flex;
  gap: 8px;
  margin: 0 0 4px;
  padding: 12px;
  border-radius: 14px;
  background: var(--gold-soft);
  color: var(--gold);
  font-size: 14px;
  line-height: 1.6;
}

.invite .icon {
  width: 20px;
  height: 20px;
  margin-top: 1px;
}

.say {
  display: grid;
  gap: 12px;
}

.say textarea,
.field input,
.field select,
.field textarea {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #d9d1c3;
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}

.say textarea {
  padding: 14px;
  font-size: 17px;
  line-height: 1.5;
  resize: none;
}

.field select {
  appearance: none;
  padding-right: 30px;
  background:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%) calc(100% - 17px) 50% / 5px 5px no-repeat,
    linear-gradient(-45deg, transparent 50%, var(--muted) 50%) calc(100% - 12px) 50% / 5px 5px no-repeat,
    var(--paper);
}

.examples button {
  color: var(--muted);
}

.thinking {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--soft);
  color: var(--muted);
  font-size: 15px;
}

.thinking .icon {
  animation: spin 1.4s linear infinite;
}

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

.fields {
  display: grid;
  gap: 16px;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  animation: fade 220ms ease;
}

.field {
  display: grid;
  gap: 8px;
  min-width: 0;
}

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

.field textarea {
  line-height: 1.5;
  resize: vertical;
}

.pair {
  display: flex;
  gap: 8px;
  min-width: 0;
}

.pair > * {
  flex: 1;
  min-width: 0;
}

.ai-note {
  display: flex;
  gap: 6px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.ai-note .icon {
  width: 18px;
  height: 18px;
}

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

.hint.warn {
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--red-soft);
  color: var(--red);
}

.file-card {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.file-card > div {
  display: grid;
  flex: 1;
  gap: 2px;
  min-width: 0;
}

.file-card b {
  overflow: hidden;
  font-size: 15px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.check-result {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.check-result p {
  display: flex;
  gap: 8px;
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

.check-result .icon {
  width: 20px;
  height: 20px;
  color: var(--green);
}

/* 同城师傅：本事货架上的入口 */
.craft-entry {
  display: grid;
  gap: 12px;
  color: var(--ink);
}

.craft-entry .intro-head .icon {
  width: 32px;
  height: 32px;
}

.craft-entry-text {
  display: grid;
  flex: 1;
  gap: 2px;
  min-width: 0;
}

.intro-head p.craft-entry-title,
.craft-entry-title {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
}

.craft-entry-sub {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.craft-entry-foot {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--muted);
  font-size: 13px;
}

.craft-entry-foot .faces {
  display: flex;
  flex: none;
}

.craft-entry-foot .avatar {
  width: 30px;
  height: 30px;
  margin-right: -8px;
  box-shadow: 0 0 0 2px var(--paper);
}

.craft-entry + .legend {
  margin-top: 16px;
}

/* 业主找师傅 */
.craft-loc {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  margin-top: 16px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  text-align: left;
  cursor: pointer;
}

.craft-loc-text {
  flex: 1;
  min-width: 0;
}

.craft-loc-change {
  color: var(--muted);
  font-size: 14px;
}

.craft-trades {
  margin-top: 12px;
}

.craft-sorts {
  align-items: center;
  margin-top: 12px;
}

.craft-sort-label {
  color: var(--muted);
  font-size: 13px;
}

.craft-count {
  margin: 16px 0 8px;
  font-size: 15px;
  font-weight: 600;
}

.craft-card {
  display: grid;
  gap: 8px;
  color: var(--ink);
}

.craft-name-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  min-width: 0;
}

.craft-where {
  color: var(--muted);
  font-size: 13px;
}

.craft-price {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

.craft-works {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.craft-thumb {
  aspect-ratio: 4 / 3;
  border-radius: 10px;
}

.craft-join-row {
  margin-top: 20px;
}

.craft-join-row > .icon:first-child {
  width: 28px;
  height: 28px;
}

/* 师傅的页面 */
.craft-area {
  display: grid;
  gap: 10px;
}

.craft-area-text {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}

.craft-fit {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.craft-fit.ok {
  color: var(--green);
}

.rv-badge {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--soft);
  color: var(--ink);
  font-size: 13px;
}

.review-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

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

.rating .fine {
  flex: 1;
  margin: 0;
}

.craft-safe {
  margin-top: 20px;
}

.craft-safe .fine {
  margin: 0 0 10px;
}

/* 青岛市示意图：不是真地图，只看个大概 */
.qd-map {
  display: block;
  width: 100%;
  max-height: 340px;
  border-radius: 14px;
  background: #e8e2d6;
}

.qd-map.zoom {
  max-height: none;
  aspect-ratio: 1;
}

.qd-map.pickable {
  cursor: crosshair;
}

.qd-sea {
  fill: #e8e2d6;
}

.qd-land {
  fill: var(--paper);
  stroke: #c9c0b0;
  stroke-linejoin: round;
}

.qd-water {
  fill: #a39b8e;
  font-style: italic;
}

.qd-d circle {
  fill: var(--soft);
  stroke: #c9c0b0;
}

.qd-d text {
  fill: var(--muted);
}

.qd-d.on circle {
  fill: var(--green);
  fill-opacity: 0.35;
  stroke: var(--green);
}

.qd-d.on text {
  fill: var(--ink);
  font-weight: 600;
}

.qd-d.pickable {
  cursor: pointer;
}

.qd-ring {
  fill: var(--green);
  fill-opacity: 0.22;
  stroke: var(--green);
}

.qd-ring-out {
  fill: none;
  stroke: #a39b8e;
}

.qd-dot {
  fill: #a39b8e;
}

.qd-name {
  fill: var(--muted);
}

.qd-center {
  fill: var(--green);
}

.qd-scale {
  stroke: var(--ink);
  stroke-linecap: round;
}

.qd-home {
  fill: var(--ink);
  stroke: #fff;
}

.qd-home-text {
  fill: var(--ink);
  font-weight: 600;
}

/* 师傅登记 */
.craft-real {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--green);
  font-size: 14px;
}

.craft-real .icon {
  width: 20px;
  height: 20px;
}

.craft-area-box {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

.craft-districts button {
  min-width: 72px;
}

.craft-range {
  display: grid;
  gap: 6px;
  font-size: 15px;
}

.craft-range input {
  width: 100%;
  min-height: 44px;
  accent-color: var(--ink);
}

.craft-limit {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--soft);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
}

.craft-limit .icon {
  width: 20px;
  height: 20px;
  margin-top: 1px;
}

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

.craft-album-item {
  display: grid;
  gap: 4px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
}

.craft-album-item .pic {
  aspect-ratio: 1;
  border-radius: 10px;
  box-shadow: inset 0 0 0 2px transparent;
}

.craft-album-item.on .pic {
  box-shadow: inset 0 0 0 3px var(--ink);
}

.craft-album-item.on .pic::after {
  content: "✓";
  position: absolute;
  z-index: 2;
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  line-height: 22px;
  text-align: center;
}

.craft-album-item.no {
  color: var(--muted);
}

.craft-album-item.no .pic {
  opacity: 0.45;
}

/* 画圈晚一点开放：看得见，选不了 */
.chips button.later {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-style: dashed;
  color: var(--muted);
}

.chips button.later small {
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold);
  font-size: 11px;
}

/* 要证的活 */
.craft-cert-box {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.craft-cert-box:empty {
  display: none;
}

.craft-cert {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--soft);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
}

.craft-cert span {
  flex: 1 1 200px;
}

.craft-cert.ok {
  background: var(--green-soft);
  color: var(--green);
}

.craft-cert.wait {
  background: var(--gold-soft);
  color: var(--gold);
}

.craft-cert .icon {
  flex: none;
  width: 18px;
  height: 18px;
}

.craft-cert-box .hint {
  margin: 0;
}

/* 勾选框：业主同意拍家里、也修燃气的 */
.craft-check,
.sheet-card .craft-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 44px;
  padding: 10px 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
  cursor: pointer;
}

.craft-check input,
.sheet-card .craft-check input {
  flex: none;
  width: 20px;
  height: 20px;
  min-height: 0;
  margin: 1px 0 0;
  padding: 0;
  accent-color: var(--ink);
}

.craft-check span {
  display: grid;
  gap: 2px;
}

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

/* 自动打码：人脸、门牌、小区名盖一块马赛克 */
.blur-patch {
  position: absolute;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: repeating-conic-gradient(#b9b0a2 0 25%, #8f8678 0 50%) 0 0 / 6px 6px;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  box-shadow: 0 0 0 1px rgba(255, 252, 247, 0.8);
  opacity: 0.85;
  pointer-events: none;
}

.photos .blur-patch {
  background-size: 12px 12px;
}

.photos .blur-patch::after {
  content: attr(data-k) " 已打码";
  padding: 0 4px;
  border-radius: 4px;
  background: rgba(26, 24, 20, 0.55);
  color: #fff;
  font-size: 10px;
  line-height: 16px;
  white-space: nowrap;
}

.shot {
  position: relative;
  overflow: hidden;
}

/* 演示按钮 */
.demo-box {
  margin-top: 28px;
  color: var(--muted);
}

.demo-box summary {
  min-height: 44px;
  font-size: 14px;
  line-height: 44px;
  text-align: center;
  cursor: pointer;
  list-style: none;
}

.demo-box summary::-webkit-details-marker {
  display: none;
}

.demo-box summary::after { content: " ▾"; }
.demo-box[open] summary::after { content: " ▴"; }

.demo-actions {
  display: grid;
  gap: 8px;
}

.demo-actions .btn {
  font-size: 15px;
}

.demo-box + .demo {
  margin-top: 12px;
}

/* 测试版加的：卖家自己拍的照片盖在颜色块上；上架时从相册挑照片 */
.pic .pic-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.album-pick {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.album-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  background: var(--soft);
  cursor: pointer;
}

.album-item img { display: block; width: 100%; height: 100%; object-fit: cover; }
.album-item.on { border-color: var(--ink); }

.album-item.on::after {
  content: attr(data-n);
  position: absolute;
  top: 4px;
  right: 4px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 14px;
}

.empty-me .avatar { width: 56px; height: 56px; }
