* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
body { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; background: #f3f5f7; color: #222; }
.app { max-width: 430px; margin: 0 auto; min-height: 100vh; background: #f3f5f7; position: relative; padding-bottom: 60px; }
.view { display: none; } .view.active { display: block; }
.bar { height: 48px; display: flex; align-items: center; padding: 0 14px; background: #fff; border-bottom: 1px solid #eee; position: sticky; top: 0; z-index: 5; }
.bar .back { color: #10b981; font-size: 15px; text-decoration: none; margin-right: 12px; }
.bar-t { font-weight: 600; font-size: 16px; }
.home-head { background: linear-gradient(135deg, #10b981, #14b8a6); padding: 12px 14px; }
.loc { color: #fff; font-size: 13px; margin-bottom: 8px; }
.search { display: flex; background: #fff; border-radius: 20px; overflow: hidden; }
.search input { flex: 1; border: none; outline: none; padding: 9px 14px; font-size: 14px; }
.search button { border: none; background: transparent; padding: 0 14px; font-size: 15px; }
.catbar { display: flex; gap: 8px; overflow-x: auto; padding: 12px 14px; background: linear-gradient(135deg, #10b981, #14b8a6); }
.catbar span { flex: 0 0 auto; background: rgba(255,255,255,.25); color: #fff; padding: 6px 14px; border-radius: 16px; font-size: 13px; }
.catbar span.on { background: #fff; color: #10b981; font-weight: 600; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px 14px; }
.card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.05); cursor: pointer; }
.card .pic { height: 110px; display: flex; align-items: center; justify-content: center; font-size: 46px; background: #ecfdf5; }
.card .wrap { padding: 8px 10px 12px; }
.card .t { font-size: 13px; line-height: 1.4; height: 36px; overflow: hidden; }
.card .pr { color: #f60; font-weight: 700; font-size: 16px; margin-top: 6px; }
.card .pr small { color: #bbb; font-weight: 400; font-size: 11px; text-decoration: line-through; margin-left: 6px; }
.card .sl { color: #999; font-size: 11px; margin-top: 4px; display: flex; justify-content: space-between; }
.detail .gallery { height: 230px; display: flex; align-items: center; justify-content: center; font-size: 90px; background: #ecfdf5; }
.detail .dwrap { padding: 14px; background: #fff; }
.detail .price { color: #f60; font-size: 24px; font-weight: 800; }
.detail .price small { color: #bbb; font-size: 13px; text-decoration: line-through; margin-left: 8px; font-weight: 400; }
.detail .dt { font-size: 16px; font-weight: 600; margin: 8px 0; }
.detail .meta { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.detail .meta span { background: #ecfdf5; color: #10b981; font-size: 12px; padding: 3px 10px; border-radius: 12px; }
.detail .desc { color: #555; font-size: 14px; line-height: 1.7; margin-top: 10px; }
.detail .seller { display: flex; align-items: center; gap: 10px; background: #fff; margin: 10px 0; padding: 12px 14px; border-radius: 12px; }
.detail .seller .av { width: 40px; height: 40px; border-radius: 50%; background: #10b981; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.detail .seller .nm { font-weight: 600; } .detail .seller .sub { color: #999; font-size: 12px; }
.detail .acts { position: sticky; bottom: 60px; display: flex; gap: 10px; padding: 10px 14px; background: #fff; border-top: 1px solid #eee; }
.detail .acts button { flex: 1; padding: 12px; border: none; border-radius: 22px; font-size: 15px; font-weight: 600; }
.detail .acts .c1 { background: #fff7ed; color: #f60; }
.detail .acts .c2 { background: #10b981; color: #fff; }
.form { padding: 14px; }
.form label { display: block; font-size: 13px; color: #555; margin-bottom: 14px; }
.form input, .form select, .form textarea { width: 100%; margin-top: 6px; padding: 11px 12px; border: 1px solid #e2e8f0; border-radius: 10px; font-size: 14px; outline: none; }
.form textarea { min-height: 90px; resize: vertical; }
.row2 { display: flex; gap: 12px; } .row2 label { flex: 1; }
.upimg { display: flex; gap: 10px; margin-bottom: 18px; }
.upimg .box { width: 80px; height: 80px; border: 1px dashed #cbd5e1; border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #94a3b8; font-size: 22px; }
.upimg .box small { font-size: 11px; }
.submit { width: 100%; padding: 13px; background: #10b981; color: #fff; border: none; border-radius: 24px; font-size: 16px; font-weight: 600; }
.cart, .mylist, .chatlist { padding: 12px 14px; }
.ci { display: flex; gap: 10px; background: #fff; border-radius: 12px; padding: 10px; margin-bottom: 10px; align-items: center; }
.ci .box { width: 64px; height: 64px; border-radius: 10px; background: #ecfdf5; display: flex; align-items: center; justify-content: center; font-size: 30px; flex: 0 0 auto; }
.ci .info { flex: 1; }
.ci .info .t { font-size: 14px; line-height: 1.4; }
.ci .info .s { color: #999; font-size: 12px; margin-top: 2px; }
.ci .pr { color: #f60; font-weight: 700; }
.ci input[type=checkbox] { width: 18px; height: 18px; }
.cart-foot { position: sticky; bottom: 60px; display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; background: #fff; border-top: 1px solid #eee; }
.cart-foot .total { color: #f60; font-weight: 700; font-size: 18px; }
.cart-foot button { background: #10b981; color: #fff; border: none; padding: 10px 24px; border-radius: 22px; font-size: 15px; font-weight: 600; }
.mine .profile { background: linear-gradient(135deg, #10b981, #14b8a6); padding: 24px 18px; display: flex; align-items: center; gap: 14px; color: #fff; }
.mine .av { width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,.3); display: flex; align-items: center; justify-content: center; font-size: 24px; }
.mine .nm { font-size: 18px; font-weight: 700; } .mine .sub { font-size: 12px; opacity: .85; margin-top: 4px; }
.mine .stats { display: flex; background: #fff; text-align: center; border-bottom: 1px solid #eee; }
.mine .stats div { flex: 1; padding: 14px 0; }
.mine .stats b { display: block; font-size: 18px; }
.mine .stats span { color: #999; font-size: 12px; }
.mine .menu { background: #fff; margin-top: 10px; }
.mine .menu a { display: flex; align-items: center; justify-content: space-between; padding: 15px 16px; border-bottom: 1px solid #f3f5f7; color: #333; text-decoration: none; font-size: 14px; }
.mine .menu a .r { color: #cbd5e1; }
.mylist .ci .st { font-size: 12px; padding: 2px 8px; border-radius: 10px; }
.mylist .ci .st.on { background: #dcfce7; color: #16a34a; }
.mylist .ci .st.off { background: #fee2e2; color: #dc2626; }
.chatlist .ci .box { background: #e0f2fe; }
.chatlist .ci .last { color: #999; font-size: 12px; margin-top: 4px; }
.chatlist .ci .tm { color: #bbb; font-size: 11px; }
.chatlist .ci .badge { background: #ef4444; color: #fff; font-size: 11px; border-radius: 10px; padding: 1px 6px; }
.tabbar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 430px; height: 60px; background: #fff; display: flex; align-items: center; border-top: 1px solid #eee; z-index: 20; }
.tabbar a { flex: 1; text-align: center; color: #94a3b8; text-decoration: none; font-size: 11px; }
.tabbar a i { display: block; font-size: 20px; font-style: normal; margin-bottom: 2px; }
.tabbar a.on { color: #10b981; }
.tabbar a.mid { position: relative; top: -14px; }
.tabbar a.mid i { width: 46px; height: 46px; line-height: 46px; background: linear-gradient(135deg, #10b981, #14b8a6); color: #fff; border-radius: 50%; font-size: 24px; margin: 0 auto; box-shadow: 0 4px 10px rgba(16,185,129,.4); }
.toast { position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,.8); color: #fff; padding: 10px 18px; border-radius: 20px; font-size: 13px; z-index: 50; display: none; }
