:root {
  --paper: #f5efe5;
  --paper-light: #fffdf8;
  --ink: #2b2925;
  --muted: #82786d;
  --red: #873532;
  --green: #42684d;
  --line: #e5dacd;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: #d7d0c5; color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif; }
body { display: grid; place-items: center; padding: 26px; background:
  radial-gradient(circle at 18% 20%, rgba(255,255,255,.52), transparent 30%),
  linear-gradient(135deg, #dad4ca, #c9c1b5); }
button, input, select { font: inherit; }
button { cursor: pointer; }
.phone { width: 390px; height: min(844px, calc(100vh - 52px)); overflow: hidden; position: relative; display: flex; flex-direction: column; border: 9px solid #171715; border-radius: 40px; background: var(--paper); box-shadow: 0 30px 80px rgba(43,35,27,.3); }
.topbar { height: 58px; flex: none; display: grid; grid-template-columns: 70px 1fr 90px; align-items: end; padding: 0 12px 10px; background: rgba(246,241,232,.95); position: relative; z-index: 10; }
.topbar::before { content: ""; width: 116px; height: 26px; position: absolute; top: -9px; left: 50%; transform: translateX(-50%); background: #171715; border-radius: 0 0 18px 18px; }
.top-title { text-align: center; font-weight: 600; font-size: 16px; }
.mini-menu { justify-self: end; padding: 5px 9px; border: 1px solid #c9c1b8; border-radius: 15px; font-size: 11px; background: rgba(255,255,255,.52); }
.back { border: 0; background: transparent; font-size: 33px; line-height: 22px; justify-self: start; padding: 0; }
.hidden { visibility: hidden; }
.screen { min-height: 0; flex: 1; overflow-y: auto; scrollbar-width: none; }
.screen::-webkit-scrollbar { display: none; }
.tabbar { height: 66px; flex: none; display: grid; grid-template-columns: repeat(3,1fr); background: rgba(255,253,248,.97); border-top: 1px solid var(--line); padding-bottom: 5px; }
.tabbar button { border: 0; background: transparent; color: #746b61; font-size: 11px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; }
.tabbar button span { font-size: 22px; height: 24px; }
.tabbar button.active { color: var(--red); }
.desktop-note { position: fixed; left: calc(50% + 235px); top: 50%; transform: translateY(-50%); max-width: 230px; color: #4d463f; display: flex; flex-direction: column; gap: 12px; line-height: 1.65; }
.desktop-note strong { font: 600 26px "Songti SC", serif; }
.desktop-note span { font-size: 14px; }
.desktop-note .safe { color: #356044; font-weight: 600; }
.hero { min-height: 290px; padding: 44px 26px 30px; position: relative; overflow: hidden; color: #f8f0e4; background: linear-gradient(145deg,#252822,#514d42 67%,#7d302e); }
.hero::before { content: ""; position: absolute; width: 230px; height: 230px; right: -80px; top: -55px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; box-shadow: 0 0 0 34px rgba(255,255,255,.025), 0 0 0 70px rgba(255,255,255,.02); }
.hero::after { content: "装池"; position: absolute; right: 24px; bottom: 22px; opacity: .07; font: 110px "Songti SC", serif; writing-mode: vertical-rl; }
.organizer-badge { display: inline-block; margin-bottom: 17px; padding: 5px 9px; border: 1px solid rgba(255,255,255,.32); border-radius: 99px; font-size: 10px; letter-spacing: 2px; }
.eyebrow { font-size: 10px; letter-spacing: 5px; opacity: .78; }
.hero h1 { margin: 13px 0 7px; font: 600 28px/1.3 "Songti SC", "STSong", serif; letter-spacing: 1px; }
.hero h2 { margin: 0; font: 14px "Songti SC", "STSong", serif; opacity: .85; }
.venue { margin-top: 25px; font-size: 12px; opacity: .73; }
.content { padding: 16px; }
.intro { margin-top: -43px; position: relative; padding: 18px 19px; background: var(--paper-light); border-radius: 13px; line-height: 1.7; font-size: 13px; box-shadow: 0 8px 26px rgba(70,55,40,.1); }
.section-head { display: flex; align-items: center; justify-content: space-between; margin: 26px 2px 14px; }
.section-head h3 { margin: 0; font: 600 22px "Songti SC", serif; }
.text-button { border: 0; background: transparent; color: var(--red); font-size: 12px; padding: 5px 0; }
.work-row { display: flex; gap: 14px; padding: 13px; margin-bottom: 12px; border: 0; width: 100%; text-align: left; color: inherit; background: var(--paper-light); border-radius: 12px; box-shadow: 0 5px 18px rgba(70,55,40,.055); }
.art { flex: none; width: 102px; height: 130px; overflow: hidden; border-radius: 7px; position: relative; background: #e6ded1; }
.art::before, .art::after { content: ""; position: absolute; }
.art.mountain::before { width: 130px; height: 120px; left: -20px; bottom: -33px; background: #7d8178; opacity: .62; clip-path: polygon(0 100%,23% 46%,39% 72%,64% 18%,78% 61%,100% 35%,100% 100%); }
.art.mountain::after { width: 45px; height: 45px; right: 8px; top: 13px; border-radius: 50%; background: rgba(167,91,67,.23); }
.art.bamboo { background: linear-gradient(100deg,#eee7da,#dcd6c8); }
.art.bamboo::before { width: 5px; height: 145px; left: 48px; top: -5px; background: #4f5847; transform: rotate(9deg); box-shadow: 17px 5px 0 -1px #59614e, -21px 18px 0 -1px #737a67; }
.art.bamboo::after { width: 22px; height: 9px; left: 31px; top: 37px; border-radius: 100% 0; background: #59614e; transform: rotate(-22deg); box-shadow: 28px 23px 0 #65705b, -7px 45px 0 #78816e, 19px 65px 0 #59614e, -4px 83px 0 #65705b; }
.art.calligraphy { background: #eee7db; }
.art.calligraphy::before { content: "春  风"; inset: 14px 20px; color: #37342f; font: 34px/1.65 "STKaiti", "KaiTi", serif; writing-mode: vertical-rl; }
.work-copy { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.work-title { font: 18px "Songti SC", serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.muted { color: var(--muted); font-size: 12px; }
.meta { margin-top: 7px; }
.code { margin-top: auto; color: #968b80; font-size: 9px; letter-spacing: .2px; }
.price { color: var(--red); font-weight: 700; }
.tag { flex: none; padding: 3px 7px; border-radius: 20px; font-size: 10px; background: #ede5d9; }
.tag.available { color: #356044; background: #e1ece2; }
.tag.sold { color: var(--red); background: #efe2df; }
.wide-button, .primary-button, .secondary-button { width: 100%; border: 0; border-radius: 9px; padding: 13px; }
.wide-button, .secondary-button { background: #e9dfd1; color: #3e3933; }
.primary-button { background: var(--red); color: white; }
.filters { position: sticky; top: 0; z-index: 5; padding: 14px 16px 12px; background: rgba(245,239,229,.96); backdrop-filter: blur(10px); }
.search { width: 100%; border: 0; outline: 0; padding: 13px 14px; border-radius: 9px; background: #fffdf8; color: var(--ink); }
.filter-row { display: flex; gap: 8px; margin-top: 9px; }
.filter-row select { flex: 1; border: 0; padding: 8px; border-radius: 8px; color: #554e46; background: #eae1d4; }
.result-count { padding: 4px 18px 10px; }
.grid { padding: 0 16px 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.grid-card { border: 0; padding: 0; overflow: hidden; background: #fffdf8; color: inherit; text-align: left; border-radius: 10px; }
.grid-card .art { width: 100%; height: 195px; border-radius: 0; }
.grid-body { padding: 11px; }
.grid-body .work-title { max-width: 104px; font-size: 15px; }
.grid-bottom { margin-top: 14px; }
.detail-art { width: 100%; height: 310px; border-radius: 0; border: 0; }
.detail-body { padding: 18px 18px 90px; }
.detail-body h1 { margin: 15px 0 4px; font: 600 29px "Songti SC", serif; }
.detail-price { margin-top: 15px; font-size: 22px; }
.facts { margin-top: 20px; padding: 14px 16px; background: #fffdf8; border-radius: 12px; }
.fact { display: grid; grid-template-columns: 88px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.fact:last-child { border: 0; }
.fact span:first-child { color: var(--muted); }
.story-block { padding: 21px 2px 6px; }
.story-block h3 { margin: 0 0 11px; font: 600 19px "Songti SC", serif; }
.story-block p { margin: 0; font-size: 13px; line-height: 1.9; color: #514b45; text-align: justify; }
.bottom-actions { position: absolute; z-index: 12; bottom: 66px; left: 9px; right: 9px; padding: 10px 13px; display: grid; grid-template-columns: 58px 58px 1fr; gap: 8px; background: rgba(255,253,248,.96); box-shadow: 0 -8px 24px rgba(50,35,25,.08); }
.bottom-actions button { border: 0; border-radius: 8px; padding: 11px 7px; font-size: 12px; }
.form-page { padding: 16px 16px 90px; }
.order-summary { display: flex; gap: 13px; padding: 13px; border-radius: 12px; background: #fffdf8; }
.order-summary .art { width: 92px; height: 115px; }
.form-card { margin-top: 13px; padding: 16px; border-radius: 12px; background: #fffdf8; }
.form-card h3 { margin: 0 0 8px; font: 600 19px "Songti SC", serif; }
.form-card input { width: 100%; border: 0; border-bottom: 1px solid var(--line); outline: 0; padding: 12px 1px; background: transparent; }
.agreement { display: block; margin: 15px 0; font-size: 12px; color: #625b53; }
.prototype-tip { padding: 11px 13px; margin: 13px 0; background: #f4ead7; color: #80622c; border-radius: 9px; font-size: 11px; line-height: 1.6; }
.empty { padding: 100px 25px; text-align: center; color: var(--muted); }
.toast { position: absolute; z-index: 30; left: 50%; top: 46%; transform: translate(-50%,-50%); min-width: 230px; padding: 20px; text-align: center; color: white; background: rgba(35,32,29,.9); border-radius: 12px; font-size: 13px; line-height: 1.6; box-shadow: 0 10px 40px rgba(0,0,0,.2); }
@media (max-width: 760px) {
  body { display: block; padding: 0; background: var(--paper); }
  .phone { width: 100%; height: 100vh; border: 0; border-radius: 0; box-shadow: none; }
  .topbar::before, .desktop-note { display: none; }
  .topbar { padding-top: env(safe-area-inset-top); height: calc(52px + env(safe-area-inset-top)); align-items: center; }
}
