r103/style.css · 约 12459 字符
1/* ===== 小草车辆上门快修 H5 ===== */2* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }3html, body { margin: 0; padding: 0; }4body {5 font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;6 background: #eef1f7; color: #1f2430; font-size: 14px; line-height: 1.5;7}8.app { max-width: 440px; margin: 0 auto; min-height: 100vh; background: #eef1f7; position: relative; }9.page { padding-bottom: 78px; min-height: calc(100vh - 150px); }10a { color: inherit; }1112/* 顶部栏 */13.topbar { height: 50px; display: flex; align-items: center; gap: 10px; padding: 0 14px; background: #fff; position: sticky; top: 0; z-index: 20; border-bottom: 1px solid #f0f0f0; }14.topbar.home { background: linear-gradient(135deg, #2B5CFF, #5C8BFF); color: #fff; border: 0; }15.topbar .loc { font-weight: 700; font-size: 15px; display: flex; align-items: center; }16.topbar .arr { font-size: 10px; margin-left: 2px; opacity: .85; }17.topbar .search { flex: 1; background: rgba(255,255,255,.25); color: #fff; border-radius: 20px; padding: 7px 14px; font-size: 13px; }18.topbar.home .search { background: rgba(255,255,255,.22); }19.topbar .bell { font-size: 18px; }20.topbar .back { font-size: 26px; line-height: 1; width: 30px; }21.topbar .ttl { font-size: 17px; font-weight: 700; flex: 1; text-align: center; margin-right: 30px; }22.topbar .right { width: 30px; }2324/* 底部 Tab */25.tabbar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 440px; height: 64px; background: #fff; display: flex; border-top: 1px solid #eee; z-index: 30; padding-bottom: env(safe-area-inset-bottom); }26.tabbar .tb { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: #9aa0ac; font-size: 11px; }27.tabbar .tb .ic { font-size: 22px; }28.tabbar .tb.on { color: #2B5CFF; }29.tabbar .tb.on .ic { transform: translateY(-1px); }3031/* Banner */32.banner { margin: 12px; border-radius: 16px; padding: 20px 18px; background: linear-gradient(135deg, #2B5CFF, #00C2A8); color: #fff; position: relative; overflow: hidden; }33.banner h3 { margin: 0 0 6px; font-size: 19px; }34.banner p { margin: 0; font-size: 12.5px; opacity: .92; }35.banner .tag { display: inline-block; margin-top: 12px; background: rgba(255,255,255,.22); padding: 5px 12px; border-radius: 14px; font-size: 12px; }3637/* 九宫格 */38.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 12px; }39.grid .it { background: #fff; border-radius: 14px; padding: 12px 4px; text-align: center; }40.grid .it .ic { font-size: 26px; }41.grid .it .lb { font-size: 11.5px; margin-top: 5px; color: #444; }4243/* 区块标题 */44.sec-h { display: flex; align-items: center; justify-content: space-between; margin: 16px 14px 8px; }45.sec-h .t { font-size: 16px; font-weight: 800; }46.sec-h .more { font-size: 12px; color: #8a8f9c; }4748/* 服务卡片(首页快捷 / 列表) */49.svcards { margin: 0 12px; }50.svcard { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 14px; padding: 14px; margin-bottom: 10px; }51.svcard .ico { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 24px; color: #fff; flex: 0 0 auto; }52.svcard .mid { flex: 1; }53.svcard .mid .nm { font-weight: 700; font-size: 15px; }54.svcard .mid .ds { font-size: 12px; color: #9aa0ac; margin-top: 3px; }55.svcard .rt { text-align: right; }56.svcard .rt .pr { color: #FF6A00; font-weight: 800; font-size: 15px; }57.svcard .rt .pr i { font-size: 11px; font-style: normal; }58.svcard .rt .go { margin-top: 6px; font-size: 12px; color: #2B5CFF; }5960/* 通用卡片 */61.card { background: #fff; border-radius: 14px; padding: 14px; margin: 12px; }62.card .h { font-weight: 800; font-size: 15px; margin-bottom: 8px; }6364/* 标签 */65.tags { display: flex; gap: 6px; flex-wrap: wrap; }66.tags span { font-size: 11px; color: #2B5CFF; background: #EEF3FF; padding: 3px 9px; border-radius: 9px; }6768/* 详情大图 */69.detail-img { height: 200px; display: flex; align-items: center; justify-content: center; font-size: 64px; position: relative; color: #fff; }70.detail-img .price-tag { position: absolute; left: 14px; bottom: 14px; background: rgba(0,0,0,.45); color: #fff; border-radius: 12px; padding: 8px 12px; }71.detail-img .price-tag b { font-size: 20px; }72.detail-img .price-tag i { font-style: normal; font-size: 12px; }73.detail-img .dot { position: absolute; right: 14px; top: 14px; background: rgba(0,0,0,.4); color: #fff; font-size: 11px; padding: 3px 8px; border-radius: 10px; }7475/* 规格小格 */76.detail-specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 14px; }77.detail-specs .s { background: #fff; border-radius: 12px; padding: 12px 6px; text-align: center; }78.detail-specs .s b { display: block; font-size: 16px; color: #2B5CFF; }79.detail-specs .s span { font-size: 11px; color: #9aa0ac; }8081/* 步骤 */82.steps { display: flex; }83.steps .s { flex: 1; text-align: center; position: relative; }84.steps .s .dot { width: 26px; height: 26px; border-radius: 50%; background: #eef1f7; color: #9aa0ac; display: flex; align-items: center; justify-content: center; margin: 0 auto 5px; font-size: 13px; }85.steps .s.on .dot { background: #2B5CFF; color: #fff; }86.steps .s .lb { font-size: 11.5px; color: #666; }87.steps .s:not(:last-child):after { content: ""; position: absolute; top: 13px; left: 60%; width: 80%; height: 2px; background: #e5e9f2; }8889/* 描述 / 关于 */90.detail-desc, .about { font-size: 13.5px; color: #555; line-height: 1.8; }91.detail-desc b, .about b { color: #2B5CFF; }9293/* 商家/技师 */94.seller { display: flex; align-items: center; gap: 12px; }95.seller .av { width: 44px; height: 44px; border-radius: 50%; background: #EEF3FF; color: #2B5CFF; display: flex; align-items: center; justify-content: center; font-size: 22px; flex: 0 0 auto; }96.seller .nm { font-weight: 700; }97.seller .meta { font-size: 12px; color: #9aa0ac; margin-top: 2px; }98.seller .go { margin-left: auto; background: #2B5CFF; color: #fff; font-size: 12.5px; padding: 7px 14px; border-radius: 16px; }99100/* 按钮 */101.btn { position: sticky; bottom: 74px; margin: 14px 14px 0; background: #2B5CFF; color: #fff; text-align: center; padding: 14px; border-radius: 14px; font-weight: 700; font-size: 15px; }102.btn.orange { background: #FF7A00; }103.btn.fixed { position: fixed; bottom: 74px; left: 50%; transform: translateX(-50%); width: calc(100% - 28px); max-width: 412px; }104105/* 表单 */106.frm { margin: 12px 0; }107.fld { display: flex; align-items: center; gap: 10px; background: #fff; padding: 12px 14px; border-bottom: 1px solid #f3f4f8; }108.fld label { width: 76px; font-size: 13.5px; color: #555; flex: 0 0 auto; }109.fld input, .fld select { flex: 1; border: 0; outline: 0; font-size: 14px; background: transparent; }110.fld select { appearance: none; }111.chips { display: flex; gap: 8px; flex-wrap: wrap; padding: 10px 14px; background: #fff; }112.chip { font-size: 12.5px; color: #555; background: #f3f5fa; padding: 7px 14px; border-radius: 16px; }113.chip.on { background: #2B5CFF; color: #fff; }114115/* 结果 */116.result { background: linear-gradient(135deg, #2B5CFF, #5C8BFF); color: #fff; border-radius: 14px; padding: 18px; margin: 12px 14px; text-align: center; }117.result .lab { font-size: 13px; opacity: .9; }118.result .rng { font-size: 26px; font-weight: 800; margin: 6px 0; }119.result .rng i { font-size: 14px; font-style: normal; }120.result .note { font-size: 12px; opacity: .92; line-height: 1.7; }121122/* 筛选 Tabs */123.tabs { display: flex; background: #fff; border-radius: 12px; margin: 12px; overflow: hidden; }124.tabs .tb { flex: 1; text-align: center; padding: 11px 0; font-size: 13px; color: #666; }125.tabs .tb.on { background: #2B5CFF; color: #fff; font-weight: 700; }126127/* 订单 */128.ord { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 14px; padding: 14px; margin: 10px 12px; }129.ord .oic { font-size: 28px; width: 44px; text-align: center; }130.ord .mid { flex: 1; }131.ord .mid .ti { font-weight: 700; font-size: 14.5px; }132.ord .mid .ln { font-size: 12px; color: #9aa0ac; margin-top: 3px; }133.ord .mid .tm { font-size: 11px; color: #bbb; margin-top: 2px; }134.ord .rt { text-align: right; }135.ord .rt .st { font-size: 12.5px; color: #2B5CFF; font-weight: 700; }136.ord .rt .amt { font-size: 12px; color: #FF6A00; margin-top: 3px; }137.empty { text-align: center; color: #9aa0ac; padding: 40px 0; font-size: 13px; }138139/* 个人中心 */140.me-h { background: linear-gradient(135deg, #2B5CFF, #5C8BFF); color: #fff; padding: 26px 18px 22px; display: flex; align-items: center; gap: 14px; }141.me-h .av { width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,.25); display: flex; align-items: center; justify-content: center; font-size: 30px; }142.me-h .nm { font-size: 18px; font-weight: 800; }143.me-h .vip { font-size: 12px; margin-top: 4px; background: rgba(255,255,255,.2); display: inline-block; padding: 2px 10px; border-radius: 12px; }144.me-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 12px; }145.me-grid .it { background: #fff; border-radius: 12px; padding: 14px 4px; text-align: center; }146.me-grid .it .ic { font-size: 24px; }147.me-grid .it .lb { font-size: 11.5px; margin-top: 5px; color: #444; }148.invite { display: flex; align-items: center; gap: 12px; margin: 12px; background: linear-gradient(135deg, #FF8A3D, #FF6A00); color: #fff; border-radius: 14px; padding: 14px; }149.invite .em { font-size: 28px; }150.invite .tx { flex: 1; }151.invite .tx b { font-size: 14px; }152.invite .tx span { display: block; font-size: 11.5px; opacity: .92; margin-top: 2px; }153.invite .btn2 { background: #fff; color: #FF6A00; font-size: 12.5px; font-weight: 700; padding: 7px 14px; border-radius: 16px; }154155/* 钱包 */156.wallet-top { margin: 12px; border-radius: 16px; padding: 22px 18px; background: linear-gradient(135deg, #2B5CFF, #00C2A8); color: #fff; }157.wallet-top .bal { font-size: 13px; opacity: .9; }158.wallet-top .num { font-size: 30px; font-weight: 800; margin: 4px 0 14px; }159.wallet-top .acts { display: flex; gap: 20px; }160.wallet-top .acts div { font-size: 12.5px; }161.wallet-top .acts b { display: block; font-size: 16px; margin-top: 2px; }162163/* 优惠券 */164.coupon { display: flex; align-items: center; gap: 14px; margin: 10px 12px; background: #fff; border-radius: 14px; padding: 14px; }165.coupon .vr { width: 64px; height: 64px; border-radius: 12px; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; flex: 0 0 auto; }166.coupon .vr b { font-size: 18px; }167.coupon .vr span { font-size: 10px; }168.coupon .mid { flex: 1; }169.coupon .mid .ti { font-weight: 700; }170.coupon .mid .ln { font-size: 12px; color: #9aa0ac; margin-top: 3px; }171.coupon .use { background: #FFF1E8; color: #FF6A00; font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 16px; }172173/* 消息 */174.msg { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 12px; padding: 13px 14px; margin: 10px 12px; }175.msg .mic { width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; flex: 0 0 auto; }176.msg .mic.a { background: #EEF3FF; color: #2B5CFF; }177.msg .mic.b { background: #FFF1E8; color: #FF6A00; }178.msg .mic.c { background: #E9FBF3; color: #00B074; }179.msg .mid { flex: 1; }180.msg .mid .ti { font-weight: 700; font-size: 14px; }181.msg .mid .ti .tm { float: right; font-size: 11px; color: #bbb; font-weight: 400; }182.msg .mid .sn { font-size: 12px; color: #9aa0ac; margin-top: 3px; }183184/* 门店 */185.store { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 14px; padding: 14px; margin: 10px 12px; }186.store .lo { font-size: 26px; }187.store .mid { flex: 1; }188.store .mid .nm { font-weight: 700; }189.store .mid .ln { font-size: 12px; color: #9aa0ac; margin-top: 3px; }190.store .op { background: #2B5CFF; color: #fff; font-size: 12px; padding: 6px 12px; border-radius: 14px; }191192/* 预约小信息 */193.bookinfo { display: flex; gap: 12px; background: #fff; border-radius: 14px; padding: 14px; margin: 12px; }194.bookinfo .ico { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 24px; color: #fff; flex: 0 0 auto; }195.bookinfo .mid .nm { font-weight: 700; font-size: 15px; }196.bookinfo .mid .pr { color: #FF6A00; font-weight: 700; margin-top: 3px; }197