.sh-page{
  --sh-card:rgba(255,255,255,.74);
  --sh-card-2:rgba(255,255,255,.9);
  --sh-line:rgba(24,28,42,.12);
  --sh-soft:rgba(24,28,42,.055);
  --sh-shadow:0 16px 40px rgba(30,35,60,.10);
  --sh-accent:#2f6bff;
  padding:4px 0 92px;
}
html[data-scheme="dark"] .sh-page{
  --sh-card:rgba(255,255,255,.075);
  --sh-card-2:rgba(255,255,255,.12);
  --sh-line:rgba(255,255,255,.13);
  --sh-soft:rgba(255,255,255,.06);
  --sh-shadow:0 18px 44px rgba(0,0,0,.28);
}

.sh-head{display:block;margin-bottom:14px}
.sh-head-main{display:flex;align-items:center;justify-content:space-between;gap:10px}
.sh-head-copy{flex:1;min-width:0}
.sh-head-copy h2{margin:0;font-size:23px;letter-spacing:-.02em;white-space:nowrap}
.sh-head .sh-sub{margin:6px 0 0;font-size:12px;color:var(--muted);letter-spacing:.01em;line-height:1.5}
.sh-head-actions{display:flex;gap:7px;flex:none}
.sh-head-actions .sh-primary,.sh-head-actions .sh-ghost{white-space:nowrap;padding:9px 12px}
.sh-primary,.sh-ghost{
  appearance:none;border:0;font:inherit;font-size:13px;font-weight:600;
  padding:10px 15px;border-radius:14px;cursor:pointer;transition:transform .18s ease,background .2s ease,opacity .2s;
  -webkit-tap-highlight-color:transparent
}
.sh-primary{background:linear-gradient(135deg,#4b82ff,#2f63ff);color:#fff;box-shadow:0 8px 20px rgba(47,99,255,.26)}
.sh-primary:active{transform:scale(.97)}
.sh-primary:disabled{opacity:.55}
.sh-ghost{background:var(--sh-soft);color:var(--ink);border:1px solid var(--sh-line)}
.sh-ghost[aria-pressed="true"]{background:rgba(47,107,255,.12);color:#2f6bff;border-color:rgba(47,107,255,.28)}
.sh-danger{color:#d24b4b}
.sh-school-tip{padding:11px 14px;margin-bottom:12px;border-radius:14px;background:rgba(255,179,71,.14);border:1px solid rgba(255,166,50,.24);font-size:12.5px;line-height:1.55;color:var(--ink)}

.sh-toolbar{position:relative;margin-bottom:10px}
.sh-search{display:flex;align-items:center;gap:9px;height:46px;padding:0 14px;border-radius:16px;background:var(--sh-card);border:1px solid var(--sh-line);box-shadow:0 8px 22px rgba(35,40,60,.05);overflow:hidden;box-sizing:border-box;width:100%}
.sh-search svg{width:17px;height:17px;flex:none;color:var(--muted);opacity:.8}
.sh-search input{flex:1 1 auto;width:0;min-width:0;box-sizing:border-box;border:0!important;background:transparent!important;border-radius:0!important;box-shadow:none!important;min-height:0!important;height:auto!important;font:inherit;font-size:14px;color:var(--ink);outline:none;padding:0!important;margin:0!important;appearance:none}
.sh-search input::placeholder{color:var(--muted);opacity:.7}

.sh-chips{display:flex;gap:7px;overflow-x:auto;padding:3px 1px 8px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.sh-chips::-webkit-scrollbar{display:none}
.sh-chip{
  appearance:none;border:1px solid transparent;font:inherit;font-size:12.5px;font-weight:500;
  padding:8px 14px;border-radius:999px;background:var(--sh-soft);color:var(--muted);
  flex:none;cursor:pointer;transition:.18s;-webkit-tap-highlight-color:transparent
}
.sh-chip.is-on{background:var(--ink);color:var(--sh-card-2);border-color:var(--ink)}
html[data-scheme="dark"] .sh-chip.is-on{background:rgba(255,255,255,.92);color:#14161f}

.sh-meta{display:flex;align-items:center;justify-content:space-between;padding:2px 3px 9px;font-size:11.5px;color:var(--muted)}
.sh-refresh{appearance:none;border:0;background:none;font:inherit;font-size:11.5px;color:var(--muted);padding:4px 5px;cursor:pointer}
.sh-refresh:active{opacity:.6}

.sh-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.sh-card{
  appearance:none;border:1px solid var(--sh-line);background:var(--sh-card);border-radius:18px;padding:0;overflow:hidden;
  text-align:left;font:inherit;color:var(--ink);cursor:pointer;box-shadow:var(--sh-shadow);
  transition:transform .18s ease,box-shadow .2s ease;-webkit-tap-highlight-color:transparent;
  display:flex;flex-direction:column;min-width:0
}
.sh-card:active{transform:scale(.985)}
.sh-card.is-off{opacity:.62}
.sh-photo{position:relative;display:block;width:100%;aspect-ratio:1/1;background:linear-gradient(145deg,rgba(122,146,255,.14),rgba(120,214,189,.16));overflow:hidden}
.sh-photo img{display:block;width:100%;height:100%;object-fit:cover}
.sh-photo em{position:absolute;left:9px;top:9px;padding:3px 8px;border-radius:999px;background:rgba(18,22,32,.62);color:#fff;font-style:normal;font-size:10.5px;font-weight:600;backdrop-filter:blur(6px)}
.sh-noimg{display:flex;align-items:center;justify-content:center;width:100%;height:100%;font-size:44px;font-weight:700;color:rgba(255,255,255,.72);text-shadow:0 2px 10px rgba(40,50,80,.18)}
.sh-info{display:flex;flex-direction:column;gap:6px;padding:10px 11px 11px;min-width:0}
.sh-info strong{font-size:13.5px;line-height:1.35;font-weight:600;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:36px}
.sh-price-row{display:flex;align-items:baseline;gap:7px}
.sh-price-row b{font-size:18px;letter-spacing:-.02em;color:#e04b4b;font-weight:700}
.sh-price-row b:first-child{margin-right:auto}
html[data-scheme="dark"] .sh-price-row b{color:#ff8b8b}
.sh-price-row i{font-style:normal;font-size:10.5px;color:var(--muted);background:var(--sh-soft);padding:2px 6px;border-radius:6px}
.sh-sub{font-size:11px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.sh-skel{pointer-events:none;box-shadow:none;background:var(--sh-card)}
.sh-skel .sh-photo{background:var(--sh-soft);animation:sh-pulse 1.6s ease-in-out infinite}
.sh-skel .sh-info i{display:block;height:9px;border-radius:5px;background:var(--sh-soft);animation:sh-pulse 1.6s ease-in-out infinite}
.sh-skel .sh-info i:first-child{width:86%;height:14px}
.sh-skel .sh-info i:nth-child(2){width:48%}
.sh-skel .sh-info i:nth-child(3){width:66%}
@keyframes sh-pulse{0%,100%{opacity:.55}50%{opacity:.95}}

.sh-empty{grid-column:1/-1;text-align:center;padding:52px 22px;border:1px dashed var(--sh-line);border-radius:20px;background:var(--sh-card)}
.sh-empty b{font-size:17px}
.sh-empty p{margin:8px 0 16px;font-size:12.5px;line-height:1.6;color:var(--muted)}

.sh-dialog{
  width:min(calc(100vw - 24px),430px);max-height:88vh;padding:0;border:0;border-radius:24px;background:var(--sh-card-2);
  color:var(--ink);box-shadow:0 30px 90px rgba(10,15,30,.34);overflow:auto;overscroll-behavior:contain
}
html[data-scheme="dark"] .sh-dialog{background:#1a1e2b;border:1px solid rgba(255,255,255,.12)}
.sh-dialog::backdrop{background:rgba(12,16,26,.48);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
.sh-dialog-head{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 18px 10px;background:linear-gradient(to bottom,var(--sh-card-2) 72%,transparent)}
.sh-dialog-head h3{margin:0;font-size:18px;line-height:1.3;letter-spacing:-.01em;padding-right:8px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.sh-x{appearance:none;border:0;width:32px;height:32px;border-radius:50%;background:var(--sh-soft);color:var(--muted);font-size:19px;line-height:1;cursor:pointer;flex:none}

.sh-form{padding:4px 18px 18px}
.sh-form-note{margin:0 0 12px;font-size:11.5px;color:var(--muted)}
.sh-photo-pick{display:block;margin-bottom:13px;cursor:pointer}
.sh-photo-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;height:118px;border:1px dashed var(--sh-line);border-radius:16px;background:var(--sh-soft);color:var(--muted)}
.sh-photo-empty i{font-style:normal;font-size:24px;line-height:1}
.sh-photo-empty small{font-size:11.5px}
.sh-previews{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:8px}
.sh-preview{position:relative;aspect-ratio:1/1;border-radius:12px;overflow:hidden;background:var(--sh-soft)}
.sh-preview img{width:100%;height:100%;object-fit:cover;display:block}
.sh-preview button{position:absolute;right:4px;top:4px;width:22px;height:22px;border:0;border-radius:50%;background:rgba(20,24,34,.65);color:#fff;font-size:13px;line-height:1;cursor:pointer}
.sh-addmore{display:flex;align-items:center;justify-content:center;aspect-ratio:1/1;border-radius:12px;border:1px dashed var(--sh-line);color:var(--muted);font-size:22px}
.sh-field{display:flex;flex-direction:column;gap:6px;margin-bottom:11px}
.sh-field>span{font-size:12px;font-weight:600;color:var(--muted)}
.sh-field>span em{font-style:normal;font-weight:400;opacity:.7}
.sh-field input,.sh-field select,.sh-field textarea{
  width:100%;box-sizing:border-box;border:1px solid var(--sh-line);background:var(--sh-card);color:var(--ink);
  border-radius:12px;padding:11px 12px;font:inherit;font-size:14px;outline:none;appearance:none
}
.sh-field textarea{resize:none;line-height:1.55}
.sh-field input:focus,.sh-field select:focus,.sh-field textarea:focus{border-color:rgba(47,107,255,.55);box-shadow:0 0 0 3px rgba(47,107,255,.12)}
.sh-two{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.sh-safety{margin:2px 0 14px;font-size:11px;line-height:1.55;color:var(--muted)}
.sh-submit{width:100%;padding:13px;font-size:15px;border-radius:15px}
.sh-loading{padding:50px 24px;text-align:center;font-size:13px;color:var(--muted)}

.sh-gallery{display:flex;gap:8px;overflow-x:auto;padding:0 18px 14px;scroll-snap-type:x mandatory;scrollbar-width:none}
.sh-gallery::-webkit-scrollbar{display:none}
.sh-gallery img{width:min(78vw,320px);aspect-ratio:1/1;object-fit:cover;border-radius:16px;flex:none;scroll-snap-align:start;background:var(--sh-soft)}
.sh-gallery .sh-noimg{width:min(78vw,320px);aspect-ratio:1/1;border-radius:16px;flex:none;background:linear-gradient(145deg,rgba(122,146,255,.18),rgba(120,214,189,.2))}
.sh-detail-body{padding:0 18px 20px}
.sh-detail-price{display:flex;align-items:center;gap:9px;margin-bottom:10px}
.sh-detail-price b{font-size:27px;letter-spacing:-.03em;color:#e04b4b}
html[data-scheme="dark"] .sh-detail-price b{color:#ff8b8b}
.sh-detail-price span{font-size:11px;padding:3px 8px;border-radius:7px;background:var(--sh-soft);color:var(--muted)}
.sh-detail-price em{margin-left:auto;font-style:normal;font-size:11px;font-weight:600;padding:4px 9px;border-radius:999px;background:rgba(20,24,34,.62);color:#fff}
.sh-desc{margin:0 0 14px;font-size:13.5px;line-height:1.75;white-space:pre-wrap;word-break:break-word}
.sh-seller{display:flex;align-items:center;gap:10px;padding:11px 12px;border-radius:14px;background:var(--sh-soft);margin-bottom:13px}
.sh-seller>span{width:36px;height:36px;border-radius:50%;background:linear-gradient(135deg,#7b9cff,#9a7bff);color:#fff;display:flex;align-items:center;justify-content:center;font-size:15px;font-weight:700;flex:none}
.sh-seller div{display:flex;flex-direction:column;gap:2px;min-width:0}
.sh-seller b{font-size:13px}
.sh-seller small{font-size:10.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sh-contact{display:flex;align-items:center;gap:8px;margin-bottom:13px;padding:12px;border-radius:14px;background:rgba(47,107,255,.08);border:1px solid rgba(47,107,255,.18)}
.sh-contact span{font-size:11px;color:var(--muted)}
.sh-contact b{font-size:14px;letter-spacing:.02em;word-break:break-all;flex:1;min-width:0}
.sh-contact button{appearance:none;border:0;border-radius:9px;background:rgba(47,107,255,.14);color:#2f6bff;font:inherit;font-size:11.5px;font-weight:600;padding:6px 10px;cursor:pointer;flex:none}
.sh-detail-actions{display:flex;gap:8px;flex-wrap:wrap}
.sh-detail-actions .sh-primary{flex:1;min-width:120px}
.sh-report-box{margin-top:12px;padding-top:12px;border-top:1px solid var(--sh-line)}
.sh-report-box p{margin:0 0 8px;font-size:11.5px;color:var(--muted)}
.sh-reasons{display:flex;gap:7px;flex-wrap:wrap}

@media (max-width:360px){
  .sh-list{gap:9px}
  .sh-info strong{font-size:12.5px}
  .sh-head-copy h2{font-size:21px}
}


/* ── 发布弹窗补实底：高视效玻璃层会用 !important 统一覆盖 dialog 渐变，
   二手弹窗没有像合作页那样夺回底色，表单会透出背后的页面文字 ── */
html[data-theme][data-view="high"] dialog.sh-dialog:not(.view-mode-confirm-dialog){
  background-color:rgba(251,248,242,.96)!important;
  background-image:none!important;
  -webkit-backdrop-filter:blur(22px) saturate(1.5)!important;
  backdrop-filter:blur(22px) saturate(1.5)!important;
}
html[data-theme][data-view="high"][data-scheme="dark"] dialog.sh-dialog:not(.view-mode-confirm-dialog){
  background-color:rgba(26,30,43,.96)!important;
}
html[data-theme][data-view="high"] .sh-dialog-head{
  background:linear-gradient(to bottom,rgba(251,248,242,.96) 72%,rgba(251,248,242,0))!important;
}
html[data-theme][data-view="high"][data-scheme="dark"] .sh-dialog-head{
  background:linear-gradient(to bottom,rgba(26,30,43,.96) 72%,rgba(26,30,43,0))!important;
}


/* 关闭叉号：全局 button 的 min-height 与内边距会把它撑成 32×42 的竖椭圆，字形也偏上。
   这里只复位尺寸与对齐，不动颜色和背景。 */
.sh-x{min-height:32px!important;height:32px!important;padding:0!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;line-height:1!important;box-sizing:border-box!important}

.sh-more{width:100%;min-height:44px;margin:8px 0 4px;border:1px solid color-mix(in srgb,var(--line) 55%,transparent);border-radius:14px;background:color-mix(in srgb,var(--surface) 92%,transparent);color:var(--muted);font:inherit;font-size:12px}
