/* 浩通优享 H5 · 金色主题iOS风 · 适老字号 */
:root {
  --gold: #c8a45c; --gold-dark: #a8843e; --gold-light: #f5e9cd; --gold-bg: #faf6ec;
  --ink: #2b2620; --ink-2: #6b6152; --card: #ffffff; --line: #ece3d0;
  --green: #3a9e5f; --red: #d9604f;
}
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--gold-bg); color: var(--ink); font-size: 17px; line-height: 1.5;
}
.top {
  background: linear-gradient(160deg, #3a3125, #6b5a35 60%, #8a7344);
  color: #f7ecd4; padding: 22px 18px 18px; position: sticky; top: 0; z-index: 10;
}
.top .hello { font-size: 15px; opacity: .85; }
.top .big { font-size: 30px; font-weight: 700; letter-spacing: 1px; margin-top: 4px; }
.wrap { padding: 14px 14px 90px; max-width: 560px; margin: 0 auto; }
.card {
  background: var(--card); border-radius: 16px; padding: 16px; margin-bottom: 14px;
  box-shadow: 0 2px 10px rgba(120,96,50,.08); border: 1px solid var(--line);
}
.card h3 { font-size: 18px; margin-bottom: 12px; color: var(--gold-dark); display: flex; align-items: center; gap: 8px; }
.wallets { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.wallet { background: linear-gradient(150deg, #fff, var(--gold-light)); border-radius: 14px; padding: 12px 10px; text-align: center; }
.wallet .v { font-size: 20px; font-weight: 700; color: var(--gold-dark); word-break: break-all; }
.wallet .k { font-size: 13px; color: var(--ink-2); margin-top: 3px; }
.progress { background: #efe6d2; border-radius: 999px; height: 14px; overflow: hidden; margin: 8px 0 4px; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-dark)); border-radius: 999px; }
.btn {
  display: block; width: 100%; border: none; border-radius: 14px; padding: 15px;
  font-size: 19px; font-weight: 600; color: #fff; text-align: center; cursor: pointer;
  background: linear-gradient(180deg, var(--gold), var(--gold-dark)); box-shadow: 0 4px 12px rgba(168,132,62,.35);
}
.btn:active { opacity: .85; }
.btn.ghost { background: #fff; color: var(--gold-dark); border: 1.5px solid var(--gold); box-shadow: none; }
.btn.sm { padding: 9px 14px; font-size: 15px; width: auto; display: inline-block; border-radius: 10px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.list-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.list-item:last-child { border-bottom: none; }
.thumb { width: 74px; height: 74px; border-radius: 12px; background: var(--gold-light); display: flex; align-items: center; justify-content: center; font-size: 34px; flex-shrink: 0; }
.list-item .info { flex: 1; min-width: 0; }
.list-item .name { font-size: 17px; font-weight: 600; }
.list-item .desc { font-size: 13px; color: var(--ink-2); margin: 2px 0; }
.list-item .price { color: var(--red); font-weight: 700; }
.tabs { position: fixed; bottom: 0; left: 0; right: 0; max-width: 560px; margin: 0 auto;
  background: #fff; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3,1fr); z-index: 20; }
.tabs a { text-align: center; padding: 9px 0 10px; font-size: 12px; color: var(--ink-2); text-decoration: none; }
.tabs a .ico { font-size: 22px; display: block; }
.tabs a.on { color: var(--gold-dark); font-weight: 700; }
.tag { display: inline-block; background: var(--gold-light); color: var(--gold-dark); font-size: 12px; border-radius: 6px; padding: 2px 8px; margin-right: 6px; }
.tag.lv { background: #fdeccd; }
.kv { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 16px; }
.kv:last-child { border-bottom: none; }
.kv .k { color: var(--ink-2); }
.kv .v { font-weight: 600; }
.big-price { color: var(--red); font-size: 26px; font-weight: 800; }
.note { font-size: 13px; color: var(--ink-2); }
.gold-note { background: var(--gold-light); border-radius: 12px; padding: 10px 12px; font-size: 14px; color: #7a6234; margin-top: 10px; }
input, textarea, select {
  width: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px;
  font-size: 17px; margin-bottom: 10px; background: #fffdf8; color: var(--ink);
}
input:focus { outline: none; border-color: var(--gold); }
.toast { position: fixed; left: 50%; top: 18%; transform: translateX(-50%); background: rgba(43,38,32,.92);
  color: #fff; padding: 12px 22px; border-radius: 12px; font-size: 16px; z-index: 99; display: none; max-width: 80%; text-align: center; }
.badge { background: var(--red); color: #fff; font-size: 11px; border-radius: 8px; padding: 1px 6px; vertical-align: top; }
.empty { text-align: center; color: var(--ink-2); padding: 30px 0; }
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 50; display: none; align-items: flex-end; }
.modal .sheet { background: #fff; border-radius: 20px 20px 0 0; padding: 20px 18px 30px; max-width: 560px; margin: 0 auto; width: 100%; }

/* ============ 商城新版式(参考图格式) ============ */
.navbar { background: #fff; padding: 10px 14px; display: flex; align-items: center; gap: 10px;
  position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); }
.navbar .brand { font-weight: 800; font-size: 18px; color: var(--ink); flex-shrink: 0; }
.navbar .search { flex: 1; display: flex; align-items: center; gap: 6px; background: #f4efe3;
  border-radius: 999px; padding: 8px 12px; color: var(--ink-2); font-size: 14px; }
.navbar .search input { border: none; background: transparent; padding: 0; margin: 0; font-size: 14px; }
.banner { border-radius: 16px; margin: 12px 14px; padding: 20px 18px; color: #fff; position: relative;
  background: linear-gradient(120deg, #b8934e, #d9b877 55%, #e8cd96); box-shadow: 0 6px 16px rgba(168,132,62,.3); }
.banner .bt { font-size: 24px; font-weight: 800; letter-spacing: 2px; text-shadow: 0 1px 4px rgba(0,0,0,.15); }
.banner .bs { font-size: 14px; margin-top: 4px; opacity: .95; }
.banner .dots { display: flex; gap: 5px; margin-top: 12px; }
.banner .dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.45); }
.banner .dots i.on { background: #fff; }
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 6px; padding: 4px 8px 10px; }
.cat { text-align: center; cursor: pointer; }
.cat .cico { width: 52px; height: 52px; border-radius: 50%; margin: 0 auto 6px; display: flex;
  align-items: center; justify-content: center; color: #fff; }
.cat .cname { font-size: 13px; color: var(--ink); }
.c1 { background: linear-gradient(145deg, #f0b24e, #d99a2b); }
.c2 { background: linear-gradient(145deg, #5cb85c, #3f9d4f); }
.c3 { background: linear-gradient(145deg, #7e6bec, #5d4bd0); }
.c4 { background: linear-gradient(145deg, #4ea3e8, #2f87d4); }
.c5 { background: linear-gradient(145deg, #ef7fa4, #e05e8c); }
.c6 { background: linear-gradient(145deg, #e8734e, #d55a35); }
.c7 { background: linear-gradient(145deg, #43bdb4, #2ba39a); }
.c8 { background: linear-gradient(145deg, #8a94a6, #6e788c); }
.sec-title { padding: 6px 16px 0; font-size: 17px; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 7px; }
.prod-list { padding: 8px 14px 90px; max-width: 560px; margin: 0 auto; }
.prod-card { background: #fff; border-radius: 14px; padding: 12px; margin-bottom: 12px; display: flex; gap: 12px;
  box-shadow: 0 2px 8px rgba(120,96,50,.07); border: 1px solid var(--line); }
.prod-card .pimg { width: 108px; height: 108px; border-radius: 12px; flex-shrink: 0; overflow: hidden;
  display: flex; align-items: center; justify-content: center; color: #fff;
  background: linear-gradient(145deg, #d9b877, #b8934e); }
.prod-card .pimg svg { opacity: .9; }
.pimg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pimg.thumb96 { width: 96px; height: 96px; border-radius: 14px; overflow: hidden; font-size: 44px; }
.prod-card .pbody { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.prod-card .pname { font-size: 17px; font-weight: 700; color: var(--ink); }
.ptags { display: flex; gap: 6px; margin: 6px 0; flex-wrap: wrap; }
.ptag { font-size: 11px; padding: 2px 8px; border-radius: 5px; background: #f4efe3; color: var(--ink-2); }
.ptag.gold { background: linear-gradient(120deg, #f0d9a8, #eccf94); color: #8a6d2f; font-weight: 600; }
.ptag.hot { background: #fdeee9; color: var(--red); }
.prod-meta { display: flex; align-items: flex-end; justify-content: space-between; margin-top: auto; }
.prod-meta .pprice { color: var(--red); font-weight: 800; font-size: 20px; }
.prod-meta .pprice small { font-size: 12px; font-weight: 500; color: var(--ink-2); }
.buy-btn { border: none; border-radius: 999px; padding: 8px 16px; font-size: 14px; font-weight: 600;
  color: #fff; background: linear-gradient(180deg, var(--gold), var(--gold-dark)); cursor: pointer; }
.tabs a { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.section-gap { height: 4px; background: #f4efe3; }

.hic { display: inline-flex; }
