/* 选择门店页 + 城市选择弹层 */
.stores-page { padding: 0 12px; }
.stores-page .bottom-space { height: 24px; }

/* 当前门店回显条 */
.cur-store {
  display: flex; align-items: center; gap: 8px; padding: 12px 4px 8px; font-size: 13px; color: var(--text-3);
}
.cur-store b { font-size: 15px; color: var(--text-1); font-weight: 600; }
.cur-store i { margin-left: auto; font-style: normal; color: var(--text-3); }

/* 定位状态卡 */
.loc-card {
  background: #fff; border-radius: var(--r-lg); padding: 14px; margin-bottom: 10px; display: flex; flex-direction: column; gap: 12px;
  border: 1px solid var(--divider);
}
.loc-card.is-ok { background: var(--primary-light); border-color: transparent; }
.loc-main { display: flex; align-items: flex-start; gap: 10px; min-height: 36px; }
.loc-ic {
  flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--bg); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
}
.loc-ic .ic { width: 20px; height: 20px; }
.loc-ic.ok { background: var(--primary); color: #fff; }
.loc-ic.warn { background: var(--accent-light); color: var(--accent); }
.loc-ic.spin { animation: pulse 1.2s ease-in-out infinite; }
.loc-tx b { display: block; font-size: 15px; font-weight: 600; color: var(--text-1); line-height: 20px; }
.loc-tx b::first-line { font-variant-numeric: tabular-nums; }
.loc-tx p { margin-top: 3px; font-size: 12px; line-height: 17px; color: var(--text-3); }
.loc-tx p b { display: inline; font-size: 12px; color: var(--text-2); }
.loc-btns { display: flex; flex-direction: column; gap: 8px; }
.loc-card .btn { gap: 6px; }
.loc-card .btn .ic { width: 16px; height: 16px; }
.loc-ops { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; flex-wrap: wrap; }
.loc-ops a { color: var(--text-2); display: inline-flex; align-items: center; gap: 3px; min-height: 32px; }
.loc-ops a .ic { width: 14px; height: 14px; transition: transform .2s; }
.loc-ops a.open .ic { transform: rotate(180deg); }
.loc-ops a.loc-demo { color: var(--text-3); }
.loc-xs { font-size: 12px; color: var(--text-3); }
/* 定位成功后的最近门店 */
.loc-near {
  position: relative; display: flex; gap: 10px; background: #fff; border-radius: var(--r-md); padding: 10px;
}
.loc-near img { width: 72px; height: 72px; border-radius: var(--r-sm); object-fit: cover; flex: none; }
.loc-near .bd { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding-right: 8px; }
.loc-near .bd b { font-size: 15px; color: var(--text-1); }
.loc-near .bd .dist { font-size: 13px; color: var(--accent); font-weight: 600; font-variant-numeric: tabular-nums; }
.loc-near .bd p { font-size: 12px; color: var(--text-3); line-height: 16px; }
.loc-near .btn { align-self: flex-end; margin: auto 0 0 auto; }
/* 权限开启指引 */
.loc-guide { margin: 0; padding-left: 20px; font-size: 12px; line-height: 22px; color: var(--text-2); }
.spinner {
  width: 20px; height: 20px; border-radius: 50%; border: 2px solid rgba(18, 160, 92, .2); border-top-color: var(--primary);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(.92); } }
.btn-line {
  background: #fff; color: var(--primary); border: 1px solid var(--primary);
}
.loc-card.is-ok .btn-line { background: #fff; }

/* 城市入口 */
.city-bar {
  display: flex; align-items: center; gap: 6px; background: #fff; border-radius: var(--r-md); padding: 12px; margin-bottom: 10px;
  font-size: 14px; color: var(--text-2);
}
.city-bar .ic { width: 16px; height: 16px; color: var(--primary); }
.city-bar b { color: var(--text-1); font-weight: 600; }
.city-bar > span { color: var(--text-3); font-size: 12px; }
.city-bar i { margin-left: auto; font-style: normal; font-size: 12px; color: var(--text-3); display: inline-flex; align-items: center; }
.city-bar i .ic { width: 14px; height: 14px; color: var(--text-3); }

/* 列表 */
.list-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 8px; font-size: 14px; font-weight: 600; color: var(--text-1); }
.seg-mini { display: flex; background: var(--divider); border-radius: 999px; padding: 2px; }
.seg-mini a { padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 400; color: var(--text-3); min-height: 24px; line-height: 24px; }
.seg-mini a.on { background: #fff; color: var(--primary); font-weight: 600; }
.store-list.card { padding: 4px 12px; }
.store-item {
  position: relative; display: flex; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--divider); cursor: pointer;
}
.store-item:last-child { border-bottom: 0; }
.store-item.on { background: var(--primary-light); margin: 0 -12px; padding-left: 12px; padding-right: 12px; border-radius: var(--r-md); border-bottom-color: transparent; }
.store-item img { width: 76px; height: 76px; border-radius: var(--r-md); object-fit: cover; flex: none; }
.store-item .bd { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.store-item h4 { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 15px; font-weight: 600; color: var(--text-1); }
.store-item h4 .dist { font-size: 12px; font-weight: 500; color: var(--text-3); font-variant-numeric: tabular-nums; }
.store-item h4 .dist.near { background: var(--accent-light); color: var(--accent); border-radius: 999px; padding: 2px 8px; }
.store-item p { display: flex; gap: 4px; font-size: 12px; line-height: 17px; color: var(--text-3); }
.store-item p .ic { width: 14px; height: 14px; flex: none; margin-top: 1px; }
.store-item .ft { display: flex; align-items: center; justify-content: flex-end; margin-top: 2px; }
.store-item .tags { display: flex; gap: 4px; flex-wrap: wrap; }
.store-item .tag { font-size: 11px; line-height: 16px; padding: 0 6px; border-radius: 4px; background: var(--primary-light); color: var(--primary); }
.cur-badge {
  display: inline-flex; align-items: center; gap: 2px; font-size: 12px; font-weight: 600; color: var(--primary); white-space: nowrap;
}
.cur-badge .ic { width: 14px; height: 14px; }
.list-tip { text-align: center; font-size: 12px; color: var(--text-3); padding: 12px 0 4px; }

/* 城市选择弹层 */
.sheet.sheet-city { height: 78%; max-height: 78%; }
.sheet-city .sheet-bd { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 0 0 0; }
.city-search {
  flex: none; margin: 0 16px 10px; display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px;
  background: var(--bg); border-radius: 999px;
}
.city-search .ic { width: 16px; height: 16px; color: var(--text-3); flex: none; }
.city-search input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font-size: 14px; color: var(--text-1); height: 100%; -webkit-appearance: none; }
.city-search input::placeholder { color: var(--text-3); }
.city-search input::-webkit-search-cancel-button { display: none; }
.city-clear { width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; color: var(--text-3); }
.city-clear .ic { width: 14px; height: 14px; color: var(--text-3); }
.city-body { flex: 1; min-height: 0; display: flex; border-top: 1px solid var(--divider); }
.city-prov { width: 96px; flex: none; overflow-y: auto; background: var(--bg); padding-bottom: 12px; }
.prov-item {
  display: flex; align-items: center; justify-content: space-between; gap: 2px; padding: 0 8px 0 14px; height: 44px; font-size: 13px; white-space: nowrap;
  color: var(--text-2); position: relative; cursor: pointer;
}
.prov-item i { font-style: normal; font-size: 10px; line-height: 14px; padding: 0 5px; border-radius: 999px; background: var(--primary-light); color: var(--primary); }
.prov-item.on { background: #fff; color: var(--primary); font-weight: 600; }
.prov-item.on::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--primary); }
.city-list, .city-result { flex: 1; min-width: 0; overflow-y: auto; padding: 4px 12px 16px; background: #fff; }
.city-group { font-size: 12px; color: var(--text-3); padding: 8px 6px 4px; }
.city-item {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; padding: 0 8px; font-size: 14px;
  color: var(--text-1); border-radius: var(--r-sm); cursor: pointer;
}
.city-item span { font-size: 12px; color: var(--text-3); white-space: nowrap; }
.city-item em { font-style: normal; font-size: 12px; color: var(--text-3); margin-left: auto; }
.city-item.has:active { background: var(--bg); }
.city-item.cur { color: var(--primary); font-weight: 600; }
.city-item.cur span { color: var(--primary); }
.city-item.none { color: var(--text-3); cursor: default; }
.city-empty { padding: 48px 12px; text-align: center; font-size: 14px; color: var(--text-2); line-height: 22px; }
.city-empty span { font-size: 12px; color: var(--text-3); }

/* 小屏全屏（H5）适配 */
@media (max-width: 480px) {
  .stores-page { padding: 0 12px; }
  .sheet.sheet-city { height: 82%; max-height: 82%; }
}
