/* 半夜上门洗车 H5 - 公共样式（紧凑版） */
:root {
  --primary: #1A237E;
  --primary-dark: #0D0F4B;
  --accent: #00BCD4;
  --bg: #f0f0f0;
  --card: #fff;
  --text: #333;
  --text-muted: #666;
  --border: #e5e5e5;
  --safe-top: env(safe-area-inset-top, 0);
  --safe-bottom: env(safe-area-inset-bottom, 0);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; font-size: 13px; color: var(--text); background: var(--bg); line-height: 1.45; padding-top: var(--safe-top); padding-bottom: var(--safe-bottom); min-height: 100vh; }

.header { position: sticky; top: 0; z-index: 10; background: var(--primary); color: #fff; padding: 10px 12px; display: flex; align-items: center; justify-content: space-between; }
.header h1 { font-size: 16px; font-weight: 600; }
.header a { color: #fff; text-decoration: none; }

.nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 10; background: var(--card); border-top: 1px solid var(--border); display: flex; justify-content: space-around; padding: 6px 0 calc(6px + var(--safe-bottom)); }
.nav a { color: var(--text-muted); text-decoration: none; font-size: 11px; text-align: center; flex: 1; }
.nav a.active { color: var(--primary); font-weight: 600; }
.nav .icon { font-size: 18px; display: block; margin-bottom: 1px; }

.container { padding: 10px 12px; padding-bottom: 58px; max-width: 480px; margin: 0 auto; }

.card { background: var(--card); border-radius: 6px; padding: 10px 12px; margin-bottom: 8px; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.card h3 { font-size: 15px; margin-bottom: 4px; }
.card p { font-size: 12px; color: var(--text-muted); }

.btn { display: inline-block; padding: 10px 16px; border-radius: 6px; border: none; font-size: 14px; cursor: pointer; text-align: center; text-decoration: none; }
.btn-primary { background: var(--primary); color: #fff; width: 100%; }
.btn-primary:active { opacity: .9; }
.btn-outline { background: transparent; color: var(--primary); border: 1px solid var(--primary); }

.input { width: 100%; padding: 10px; border: 1px solid var(--border); border-radius: 6px; font-size: 14px; margin-bottom: 8px; }
.input:focus { outline: none; border-color: var(--primary); }

.label { display: block; margin-bottom: 2px; font-size: 12px; color: var(--text-muted); }

.page { display: none; min-height: 50vh; }
.page.active { display: block; }

.loading { text-align: center; padding: 16px; color: var(--text-muted); font-size: 13px; }
.err { color: #c62828; font-size: 12px; margin-top: 6px; }
.empty { text-align: center; padding: 20px; color: var(--text-muted); font-size: 13px; }

/* 首页横幅 */
.banner { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); color: #fff; border-radius: 8px; padding: 14px 12px; margin-bottom: 10px; }
.banner .title { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.banner .sub { font-size: 12px; opacity: .9; }

/* 服务网格 */
.service-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.service-grid .card { margin-bottom: 0; padding: 10px; }
.service-grid .card .price { color: var(--primary); font-weight: 600; font-size: 14px; }

/* 快捷入口 */
.quick-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.quick-links a { background: var(--card); border-radius: 6px; padding: 12px 8px; text-align: center; text-decoration: none; color: var(--text); font-size: 12px; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.quick-links a .qicon { font-size: 22px; display: block; margin-bottom: 4px; }
.quick-links a:active { background: #f8f8f8; }

/* 列表项紧凑 */
.list-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; background: var(--card); border-radius: 6px; margin-bottom: 6px; text-decoration: none; color: inherit; }
.list-item:active { background: #f8f8f8; }
.list-item .arrow { color: var(--text-muted); font-size: 12px; }
.section-title { font-size: 13px; color: var(--text-muted); margin: 10px 0 6px; padding-bottom: 4px; border-bottom: 1px solid var(--border); }
