/* ===== 启邻时代购物平台 · 设计系统 ===== */
:root {
    --brand: #16724f;
    --brand-dark: #0e5238;
    --brand-soft: #e7f3ec;
    --brand-line: #cfe5d9;
    --accent: #e07b39;
    --accent-soft: #fdf1e6;
    --ink: #16241d;
    --ink-2: #3c4f45;
    --muted: #74857c;
    --line: #e3ebe6;
    --bg: #f5f8f6;
    --white: #ffffff;
    --warn: #b8760a;
    --warn-soft: #fdf4e3;
    --danger: #c0392b;
    --danger-soft: #fdeceb;
    --info: #2c6fa8;
    --info-soft: #e9f2fa;
    --radius: 14px;
    --shadow: 0 1px 2px rgba(22, 36, 29, .04), 0 8px 24px rgba(22, 36, 29, .06);
    --shadow-lg: 0 12px 40px rgba(22, 36, 29, .12);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
    font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Noto Sans SC", system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--ink);
    font-size: 15px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); text-decoration: none; }

p { margin: 0 0 12px; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0 0 12px; }
button, input, select, textarea { font-family: inherit; }
img { max-width: 100%; height: auto; }
code { background: #eef3f0; padding: 1px 6px; border-radius: 5px; font-size: .85em; }

h1, h2, h3, h4, h5 { color: var(--ink); font-weight: 700; letter-spacing: -.01em; margin: 0; }
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.15rem; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.page { padding: 28px 0 64px; }

/* ===== 顶部导航 ===== */
.nav {
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-inner { display: flex; align-items: center; gap: 22px; height: 66px; }

.brand {
    display: flex; align-items: center; gap: 9px;
    font-weight: 800; font-size: 1.12rem; color: var(--ink); white-space: nowrap;
}
.brand:hover { color: var(--ink); }

.brand-mark {
    width: 34px; height: 34px; border-radius: 10px;
    background: linear-gradient(135deg, #1c8a5f, #0f5c3f);
    color: #fff; display: grid; place-items: center;
    font-size: .95rem; font-weight: 800; letter-spacing: -.05em;
    box-shadow: 0 4px 12px rgba(22, 114, 79, .28);
}

.brand-sub { display: block; font-size: .68rem; font-weight: 500; color: var(--muted); letter-spacing: .12em; margin-top: -3px; }

.nav-links { display: flex; align-items: center; gap: 4px; flex: 1; }

.nav-link {
    padding: 8px 13px; border-radius: 9px; color: var(--ink-2);
    font-size: .93rem; font-weight: 500; transition: background .15s, color .15s; white-space: nowrap;
}
.nav-link:hover { background: var(--brand-soft); color: var(--brand-dark); }
.nav-link.active { background: var(--brand-soft); color: var(--brand-dark); font-weight: 600; }

.nav-right { display: flex; align-items: center; gap: 10px; }

.loc-pill {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--white); border: 1px solid var(--line); border-radius: 999px;
    padding: 6px 12px; font-size: .82rem; color: var(--ink-2);
    max-width: 230px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.loc-pill:hover { border-color: var(--brand-line); background: var(--brand-soft); }

.cart-link {
    position: relative; display: inline-flex; align-items: center; gap: 6px;
    background: var(--brand); color: #fff; padding: 8px 14px; border-radius: 10px;
    font-size: .9rem; font-weight: 600;
}
.cart-link:hover { background: var(--brand-dark); color: #fff; }
.cart-count {
    background: var(--accent); color: #fff; font-size: .7rem; min-width: 18px; height: 18px;
    border-radius: 9px; display: inline-grid; place-items: center; padding: 0 5px;
}

.user-chip {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 5px 10px 5px 5px; border-radius: 999px;
    border: 1px solid var(--line); background: #fff; font-size: .87rem; color: var(--ink-2);
}

.avatar {
    width: 28px; height: 28px; border-radius: 50%; background: var(--brand-soft);
    color: var(--brand-dark); display: grid; place-items: center; font-weight: 700; font-size: .8rem;
}

.dropdown { position: relative; }
.dropdown-menu {
    position: absolute; right: 0; top: calc(100% + 8px); min-width: 180px;
    background: #fff; border: 1px solid var(--line); border-radius: 12px;
    box-shadow: var(--shadow-lg); padding: 6px; z-index: 200;
    opacity: 0; visibility: hidden; transform: translateY(-4px);
    transition: opacity .14s ease, transform .14s ease, visibility .14s;
}
/* 触发按钮与菜单之间有 8px 视觉间距，用一块透明区域把鼠标“桥”过去，
   否则指针经过空隙时会离开 .dropdown 的 hover 区域，菜单瞬间收起 */
.dropdown-menu::before {
    content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px;
}
.dropdown:hover .dropdown-menu, .dropdown:focus-within .dropdown-menu {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown-item {
    display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 8px;
    color: var(--ink-2); font-size: .88rem; width: 100%; border: 0; background: none; text-align: left; cursor: pointer;
}
.dropdown-item:hover { background: var(--bg); color: var(--ink); }
.dropdown-divider { height: 1px; background: var(--line); margin: 5px 4px; }

/* ===== 通用卡片/按钮 ===== */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 22px; }
.card-head {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 16px 22px; border-bottom: 1px solid var(--line);
}
.card-head h3 { font-size: 1rem; }
.card-body { padding: 18px 22px; }
.card-foot { padding: 14px 22px; border-top: 1px solid var(--line); background: #fbfdfb; border-radius: 0 0 var(--radius) var(--radius); }

.section-title { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.section-title h2 { font-size: 1.22rem; white-space: nowrap; }
.section-title .hint { color: var(--muted); font-size: .84rem; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 9px 16px; border-radius: 10px; border: 1px solid transparent;
    font-size: .9rem; font-weight: 600; cursor: pointer;
    transition: transform .08s, background .15s, border-color .15s; line-height: 1.4; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #c9682b; color: #fff; }
.btn-outline { background: #fff; border-color: var(--line); color: var(--ink-2); }
.btn-outline:hover { border-color: var(--brand-line); background: var(--brand-soft); color: var(--brand-dark); }
.btn-ghost { background: transparent; color: var(--brand); }
.btn-ghost:hover { background: var(--brand-soft); }
.btn-danger { background: #fff; border-color: #f0cfcb; color: var(--danger); }
.btn-danger:hover { background: var(--danger-soft); }
.btn-sm { padding: 6px 11px; font-size: .82rem; border-radius: 8px; }
.btn-lg { padding: 12px 24px; font-size: 1rem; border-radius: 12px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ===== 表单 ===== */
.form-row { margin-bottom: 16px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.form-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 18px; }

label, .form-label { display: block; font-size: .85rem; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }

.form-control, input[type=text], input[type=password], input[type=number], input[type=date],
input[type=email], input[type=tel], select, textarea {
    width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px;
    background: #fff; font-size: .92rem; color: var(--ink); font-family: inherit;
    transition: border-color .15s, box-shadow .15s;
}

.form-control:focus, input:focus, select:focus, textarea:focus {
    outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(22, 114, 79, .1);
}

textarea { min-height: 92px; resize: vertical; }
select { appearance: none; background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='%2374857c' d='M8 11L3 6h10z'/%3e%3c/svg%3e"); background-repeat: no-repeat; background-position: right 12px center; background-size: 12px; padding-right: 34px; }

.field-validation-error, .text-danger { color: var(--danger); font-size: .82rem; display: block; margin-top: 4px; }
.input-validation-error { border-color: #e0a9a2 !important; }
.validation-summary-errors { background: var(--danger-soft); border: 1px solid #f3d3cf; border-radius: 10px; padding: 12px 14px; margin-bottom: 16px; }
.validation-summary-errors ul { margin: 0; padding-left: 18px; font-size: .86rem; color: var(--danger); }

.form-hint { font-size: .78rem; color: var(--muted); margin-top: 4px; }
.checkbox { display: flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--ink-2); }
.checkbox input { width: 16px; height: 16px; accent-color: var(--brand); }

/* 编辑页底部的上下架申请（独立表单，不与保存表单嵌套） */
.shelf-apply {
    margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line);
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.shelf-apply form { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0; }

/* 列表里的商品小图（有图用图片，无图用图标） */
.thumb-40 {
    flex: 0 0 auto; width: 40px; height: 40px; border-radius: 9px;
    object-fit: cover; display: block; background: var(--bg);
    border: 1px solid var(--line);
}
.thumb-40-emoji {
    display: grid; place-items: center; font-size: 1.3rem;
    line-height: 1; border-color: transparent;
}

/* ===== 商品图片上传 ===== */
.img-upload { display: flex; gap: 16px; align-items: flex-start; }
.img-upload-view {
    flex: 0 0 auto; width: 96px; height: 96px; border-radius: 12px;
    border: 1px dashed #cfdcd5; background: #f7faf8;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; font-size: 2.1rem; line-height: 1;
}
.img-upload-view img { width: 100%; height: 100%; object-fit: cover; display: block; }
.img-upload-main { flex: 1; min-width: 0; }
.img-upload-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.img-upload-btn { margin-bottom: 0; font-weight: 600; cursor: pointer; }
.img-upload-input {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    border: 0; opacity: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.img-upload-name { font-size: .8rem; color: var(--muted); }
.img-upload-remove { margin-top: 10px; font-weight: 400; color: var(--ink-2); }
@media (max-width: 640px) {
    .img-upload { flex-direction: column; }
}

/* ===== 徽章/标签 ===== */
.badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 9px; border-radius: 999px; font-size: .74rem; font-weight: 600; line-height: 1.6; white-space: nowrap;
}
.badge-success { background: var(--brand-soft); color: var(--brand-dark); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-info { background: var(--info-soft); color: var(--info); }
.badge-primary { background: #e9eefc; color: #3b54b5; }
.badge-muted { background: #f0f2f1; color: var(--muted); }
.badge-accent { background: var(--accent-soft); color: #b3601f; }

.tag {
    display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 6px;
    background: var(--bg); border: 1px solid var(--line); font-size: .74rem; color: var(--muted);
}

/* ===== 提示条 ===== */
.alert {
    display: flex; align-items: flex-start; gap: 10px; padding: 12px 16px;
    border-radius: 12px; margin-bottom: 18px; font-size: .88rem;
    border: 1px solid transparent; animation: slideIn .25s ease;
}
.alert-success { background: var(--brand-soft); border-color: var(--brand-line); color: var(--brand-dark); }
.alert-error, .alert-danger { background: var(--danger-soft); border-color: #f3d3cf; color: #8f2f23; }
.alert-info { background: var(--info-soft); border-color: #cfe1f0; color: #1d5480; }
.alert-warn { background: var(--warn-soft); border-color: #f2dfb8; color: #8a5a06; }
.alert .close { margin-left: auto; background: none; border: 0; font-size: 1.1rem; color: inherit; opacity: .5; cursor: pointer; }
.alert .close:hover { opacity: 1; }

@keyframes slideIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ===== 首页品类轮播 ===== */
.promo-carousel {
    position: relative; margin-bottom: 24px; border-radius: 18px; overflow: hidden;
    background: #123f2d; box-shadow: var(--shadow);
}
.promo-viewport { overflow: hidden; }
.promo-track { display: flex; transition: transform .55s cubic-bezier(.4,.12,.2,1); }
.promo-slide {
    position: relative; flex: 0 0 100%; height: 300px; display: block;
    color: #fff; background-color: #123f2d;
    background-size: cover; background-position: center;
}
.promo-slide::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg,
        rgba(8, 38, 26, .88) 0%,
        rgba(8, 38, 26, .66) 34%,
        rgba(8, 38, 26, .22) 62%,
        rgba(8, 38, 26, 0) 88%);
}
.promo-slide:hover, .promo-slide:focus-visible { color: #fff; }
/* 没有配图的类别（如香烟）用大图标做背景装饰 */
.promo-glyph {
    position: absolute; right: 7%; top: 50%; transform: translateY(-50%);
    font-size: 8.5rem; line-height: 1; opacity: .16; z-index: 1; pointer-events: none;
}
.promo-body {
    position: relative; z-index: 2; height: 100%; max-width: 62%;
    display: flex; flex-direction: column; justify-content: center; gap: 8px;
    padding: 0 44px;
}
.promo-kicker {
    align-self: flex-start; display: inline-flex; align-items: center; gap: 8px;
    padding: 4px 12px; border-radius: 999px; font-size: .76rem; font-weight: 700; letter-spacing: .04em;
    background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .26);
}
.promo-title { margin: 0; color: #fff; font-size: 1.85rem; font-weight: 800; line-height: 1.3; letter-spacing: -.01em; }
.promo-sub { margin: 0; font-size: .9rem; color: rgba(255, 255, 255, .84); }
.promo-meta { display: flex; align-items: center; gap: 12px; margin-top: 8px; flex-wrap: wrap; }
.promo-cta {
    display: inline-flex; align-items: center; gap: 6px; padding: 7px 15px; border-radius: 999px;
    background: #fff; color: var(--brand); font-size: .82rem; font-weight: 700;
    transition: transform .16s;
}
.promo-slide:hover .promo-cta { transform: translateX(3px); }
.promo-count { font-size: .78rem; color: rgba(255, 255, 255, .8); }

.promo-nav {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 4;
    width: 34px; height: 34px; border-radius: 50%; cursor: pointer;
    display: grid; place-items: center; font-size: 1.15rem; line-height: 1;
    color: #fff; background: rgba(0, 0, 0, .28); border: 1px solid rgba(255, 255, 255, .45);
    opacity: 0; transition: opacity .2s, background .2s;
}
.promo-carousel:hover .promo-nav, .promo-nav:focus-visible { opacity: 1; }
.promo-nav:hover { background: rgba(0, 0, 0, .48); }
.promo-prev { left: 12px; }
.promo-next { right: 12px; }

.promo-dots { position: absolute; right: 18px; bottom: 14px; z-index: 4; display: flex; align-items: center; gap: 7px; }
.promo-dot {
    width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
    background: rgba(255, 255, 255, .45); transition: width .22s, background .22s;
}
.promo-dot[aria-selected="true"] { width: 22px; border-radius: 999px; background: #fff; }

@media (max-width: 900px) {
    .promo-slide { height: 232px; }
    .promo-body { max-width: 100%; padding: 0 26px; }
    .promo-title { font-size: 1.42rem; }
    .promo-sub { font-size: .82rem; }
    .promo-nav { display: none; }
    .promo-dots { right: 14px; bottom: 12px; }
    .promo-glyph { font-size: 5.5rem; right: 5%; opacity: .13; }
}

@media (max-width: 560px) {
    .promo-slide { height: 188px; }
    .promo-body { padding: 0 18px; gap: 6px; }
    .promo-title { font-size: 1.2rem; }
    .promo-sub { display: none; }
    .promo-kicker { font-size: .7rem; padding: 3px 10px; }
    .promo-glyph { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .promo-track { transition: none; }
}

/* ===== 首页「全部商品」卡片 ===== */
.goods-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px;
    /* 商品不足一行时，卡片保持自身高度，不被拉伸到容器高度 */
    align-content: start; align-items: start;
}
.goods-card {
    display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
    border-radius: 14px; overflow: hidden; color: var(--ink);
    transition: transform .16s, box-shadow .16s, border-color .16s;
}
.goods-card:hover, .goods-card:focus-visible {
    color: var(--ink); border-color: var(--brand-line); box-shadow: var(--shadow);
    transform: translateY(-2px);
}
.goods-thumb {
    position: relative; aspect-ratio: 1 / 1; background: var(--bg);
    display: grid; place-items: center; overflow: hidden;
}
.goods-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.goods-card:hover .goods-thumb img { transform: scale(1.045); }
.goods-emoji { font-size: 3.1rem; line-height: 1; }
.goods-soldout {
    position: absolute; inset: 0; display: grid; place-items: center;
    background: rgba(22, 36, 29, .46); color: #fff; font-size: .82rem; font-weight: 600;
}
.goods-body { padding: 10px 11px 12px; display: flex; flex-direction: column; flex: 1; min-width: 0; }
.goods-name {
    font-size: .88rem; font-weight: 650; line-height: 1.4; margin: 0;
    min-height: 2.45em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.goods-desc {
    margin: 4px 0 0; font-size: .74rem; color: var(--muted); line-height: 1.5;
    min-height: 2.2em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.goods-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.goods-tag {
    font-size: .68rem; font-weight: 600; padding: 2px 6px; border-radius: 5px;
    background: var(--brand-soft); color: var(--brand); white-space: nowrap;
}
.goods-tag-soft { background: var(--accent-soft); color: #b8632a; }
.goods-foot {
    display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
    margin-top: auto; padding-top: 9px;
}
.goods-price { color: var(--accent); font-weight: 800; font-size: 1.16rem; letter-spacing: -.02em; white-space: nowrap; }
.goods-price i { font-style: normal; font-size: .8rem; font-weight: 700; margin-right: 1px; }
.goods-unit { color: var(--muted); font-size: .68rem; font-weight: 500; margin-left: 2px; }
.goods-store {
    font-size: .68rem; color: var(--muted); max-width: 44%; white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis; text-align: right;
}

@media (max-width: 900px) {
    .goods-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
    .goods-name { font-size: .82rem; }
    .goods-emoji { font-size: 2.4rem; }
}

/* ===== 统计卡 ===== */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 18px 20px; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.stat .label { font-size: .78rem; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.stat .value { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; margin-top: 6px; }
.stat .value small { font-size: .8rem; font-weight: 600; color: var(--muted); margin-left: 3px; }
.stat .foot { font-size: .76rem; color: var(--muted); margin-top: 6px; }
.stat.accent { background: linear-gradient(135deg, #17795a, #0e533a); border-color: transparent; color: #fff; }
.stat.accent .label, .stat.accent .foot { color: rgba(255,255,255,.72); }
.stat.accent .value { color: #fff; }
.stat.accent .value small { color: rgba(255,255,255,.7); }

/* ===== 店铺卡片 ===== */
.store-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.store-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
    transition: transform .18s, box-shadow .18s, border-color .18s;
}
.store-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--brand-line); }
.store-cover {
    height: 112px; display: flex; align-items: center; justify-content: space-between;
    padding: 16px 18px; background: linear-gradient(135deg, #eaf5ef, #dceee4); position: relative;
}
.store-cover.c1 { background: linear-gradient(135deg, #e8f4ec, #d3e9dd); }
.store-cover.c2 { background: linear-gradient(135deg, #fdf1e5, #f8e2cd); }
.store-cover.c3 { background: linear-gradient(135deg, #eef1fb, #e0e6f8); }
.store-cover.c4 { background: linear-gradient(135deg, #fdeef0, #f8dde1); }
.store-cover .big { font-size: 2.1rem; filter: drop-shadow(0 4px 8px rgba(0,0,0,.08)); }
.store-cover .cat { font-size: .72rem; background: rgba(255,255,255,.75); padding: 3px 9px; border-radius: 999px; color: var(--ink-2); font-weight: 600; }
.store-body { padding: 15px 18px 17px; flex: 1; display: flex; flex-direction: column; }
.store-body h3 { font-size: 1rem; margin-bottom: 4px; }
.store-body .desc { font-size: .81rem; color: var(--muted); min-height: 40px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.store-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; font-size: .78rem; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 11px; }
.store-meta strong { color: var(--brand); font-weight: 700; }

/* ===== 商品 ===== */
.product-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 16px;
    align-items: stretch;
}
.product-card {
    background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px;
    display: flex; flex-direction: column; min-width: 0;
    transition: border-color .15s, box-shadow .15s;
}
.product-card:hover { border-color: var(--brand-line); box-shadow: var(--shadow); }

/* 图片区：固定高度 + 溢出裁切，图片再大也不会撑破卡片、压到下面的文字 */
.product-card .product-thumb {
    position: relative; width: 100%; height: 152px; flex: none; overflow: hidden;
    border-radius: 10px; background: var(--bg);
    display: grid; place-items: center; font-size: 2.6rem; margin-bottom: 11px;
}
.product-card .product-thumb img {
    position: absolute; inset: 0; display: block; border-radius: 10px;
    width: 100%; height: 100%; object-fit: cover;
}

/* 名称 / 描述固定高度，保证各卡片的单价、库存、按钮横向对齐 */
.product-card .p-name {
    font-size: .93rem; font-weight: 650; line-height: 1.4; margin: 0 0 4px;
    min-height: 2.8em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-card .p-desc {
    font-size: .76rem; color: var(--muted); line-height: 1.5; margin: 0 0 9px;
    min-height: 1.5em; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.price { color: var(--accent); font-weight: 800; font-size: 1.1rem; white-space: nowrap; }
.price small { font-size: .74rem; font-weight: 600; }
.price .unit { color: var(--muted); font-size: .74rem; font-weight: 500; margin-left: 2px; }
.product-card .p-stock {
    margin-top: 3px; font-size: .72rem; color: var(--muted);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.product-foot {
    display: flex; align-items: center; justify-content: space-between; gap: 6px;
    margin-top: auto; padding-top: 12px;
}
.product-foot .btn { white-space: nowrap; padding: 7px 10px; font-size: .78rem; }
.product-foot .stepper button { width: 28px; height: 30px; }
.product-foot .stepper input { width: 34px; font-size: .82rem; }

@media (max-width: 700px) {
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .product-card { padding: 10px; }
    .product-card .product-thumb { height: 120px; font-size: 2rem; }
    .product-card .p-name { font-size: .85rem; }
}

.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.stepper button { width: 30px; height: 32px; border: 0; background: #fff; color: var(--ink-2); cursor: pointer; font-size: 1rem; }
.stepper button:hover { background: var(--brand-soft); color: var(--brand-dark); }
.stepper input { width: 40px; border: 0; text-align: center; font-size: .88rem; padding: 6px 0; }
.stepper input:focus { box-shadow: none; }

/* ===== 列表/表格 ===== */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: .87rem; }
table.data th {
    text-align: left; font-weight: 600; color: var(--muted); font-size: .78rem;
    letter-spacing: .02em; padding: 11px 14px; background: #fafcfb;
    border-bottom: 1px solid var(--line); white-space: nowrap;
}
table.data td { padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: #fbfdfb; }
table.data .num { font-variant-numeric: tabular-nums; }

/* 商品编码：只读等宽展示，任何入口不可修改 */
.code-chip {
    display: inline-block; padding: 2px 8px; border-radius: 6px; white-space: nowrap;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .78rem;
    background: var(--bg-soft, #f1f5f2); border: 1px solid var(--line); color: var(--ink-2);
    letter-spacing: .02em;
}
.code-input {
    background: #f4f7f5; color: var(--muted); cursor: not-allowed;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .04em;
}

.order-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 14px; overflow: hidden; }
.order-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; background: #fafcfb; border-bottom: 1px solid var(--line); font-size: .82rem; color: var(--muted); }
.order-head .no { font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.order-body { padding: 14px 18px; display: flex; align-items: center; gap: 16px; }
.order-body .thumb { width: 46px; height: 46px; border-radius: 10px; background: var(--bg); display: grid; place-items: center; font-size: 1.3rem; flex: none; }
.order-body .info { flex: 1; min-width: 0; }
.order-body .info .title { font-weight: 600; font-size: .92rem; }
.order-body .info .sub { font-size: .78rem; color: var(--muted); }

/* ===== 迷你柱状图 ===== */
.chart { display: flex; align-items: flex-end; gap: 6px; height: 150px; padding-top: 10px; }
.chart .bar-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; position: relative; }
.chart .bar {
    width: 100%; max-width: 34px; background: linear-gradient(180deg, #2a9b70, #16724f);
    border-radius: 6px 6px 3px 3px; min-height: 3px;
    transition: height .5s cubic-bezier(.2,.8,.3,1); position: relative;
}
.chart .bar.zero { background: #e8eeea; }
.chart .bar-wrap:hover .bar { background: linear-gradient(180deg, #35b183, #1a8760); }
.chart .b-label { font-size: .68rem; color: var(--muted); white-space: nowrap; }
.chart .b-tip {
    position: absolute; bottom: calc(100% + 6px); background: var(--ink); color: #fff;
    font-size: .7rem; padding: 3px 7px; border-radius: 6px; opacity: 0; pointer-events: none;
    transition: opacity .15s; white-space: nowrap; z-index: 5;
}
.chart .bar-wrap:hover .b-tip { opacity: 1; }

/* ===== 进度条 ===== */
.meter { height: 7px; border-radius: 4px; background: #eef3f0; overflow: hidden; }
.meter > span { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #2a9b70, #16724f); }

/* ===== 步骤条 ===== */
.steps { display: flex; align-items: center; gap: 0; margin: 6px 0 20px; flex-wrap: wrap; }
.step { flex: 1; display: flex; align-items: center; gap: 10px; font-size: .84rem; color: var(--muted); min-width: 120px; }
.step .dot { width: 26px; height: 26px; border-radius: 50%; background: #eef3f0; color: var(--muted); display: grid; place-items: center; font-weight: 700; font-size: .78rem; flex: none; }
.step.done .dot { background: var(--brand); color: #fff; }
.step.done { color: var(--brand-dark); font-weight: 600; }
.step-line { flex: 1; height: 2px; background: var(--line); margin: 0 10px; min-width: 20px; }
.step.done + .step-line { background: var(--brand-line); }

/* ===== 侧边栏布局 ===== */
.layout-side { display: grid; grid-template-columns: 214px 1fr; gap: 22px; align-items: start; }
.side-nav { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; box-shadow: var(--shadow); position: sticky; top: 82px; }
.side-nav .group { font-size: .72rem; color: var(--muted); padding: 10px 12px 6px; letter-spacing: .06em; }
.side-nav a { display: flex; align-items: center; gap: 9px; padding: 9px 12px; border-radius: 9px; color: var(--ink-2); font-size: .89rem; font-weight: 500; }
.side-nav a:hover { background: var(--bg); color: var(--ink); }
.side-nav a.active { background: var(--brand-soft); color: var(--brand-dark); font-weight: 650; }
.side-nav .ico { width: 18px; text-align: center; }

/* ===== 空状态 ===== */
.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty .icon { font-size: 2.6rem; opacity: .55; margin-bottom: 10px; }
.empty h4 { font-size: 1rem; color: var(--ink-2); margin-bottom: 4px; }
.empty p { font-size: .85rem; margin-bottom: 16px; }

/* ===== 登录/注册 ===== */
.auth-wrap { min-height: calc(100vh - 66px); display: grid; grid-template-columns: 1.05fr .95fr; }
.auth-side {
    background: radial-gradient(900px 500px at 20% 10%, #1f8b60, #0f5239 55%, #0a3a28);
    color: #fff; padding: 60px 56px; display: flex; flex-direction: column;
    justify-content: space-between; position: relative; overflow: hidden;
}
.auth-side h2 { color: #fff; font-size: 2rem; line-height: 1.35; }
.auth-side p { color: rgba(255,255,255,.78); }
.auth-side ul { list-style: none; padding: 0; margin: 26px 0 0; }
.auth-side li { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: rgba(255,255,255,.85); margin-bottom: 12px; }
.auth-side li .k { width: 22px; height: 22px; border-radius: 7px; background: rgba(255,255,255,.14); display: grid; place-items: center; font-size: .72rem; flex: none; }
.auth-form { padding: 56px 60px; display: flex; flex-direction: column; justify-content: center; background: #fff; }
.auth-form .inner { width: 100%; max-width: 380px; margin: 0 auto; }
.auth-demo { margin-top: 22px; background: var(--bg); border: 1px dashed var(--line); border-radius: 10px; padding: 12px 14px; font-size: .78rem; color: var(--muted); line-height: 1.9; }
.auth-demo b { color: var(--ink-2); }

/* ===== 店铺详情头 ===== */
.store-hero {
    background: linear-gradient(135deg, #17795a, #0e5238); color: #fff; border-radius: 20px;
    padding: 30px 32px; display: flex; align-items: center; gap: 22px;
    box-shadow: 0 12px 32px rgba(14, 82, 56, .22);
}
.store-hero .badge-emoji { width: 74px; height: 74px; border-radius: 18px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.2); display: grid; place-items: center; font-size: 2.1rem; flex: none; }
.store-hero h1 { color: #fff; font-size: 1.55rem; }
.store-hero .sub { color: rgba(255,255,255,.75); font-size: .86rem; }
.store-hero .pills { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.store-hero .pills span { background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.16); padding: 3px 10px; border-radius: 999px; font-size: .76rem; }

/* ===== 地图示意 ===== */
.map-box {
    position: relative; height: 260px; border-radius: 14px;
    background:
        linear-gradient(0deg, rgba(22,114,79,.04) 1px, transparent 1px) 0 0 / 100% 26px,
        linear-gradient(90deg, rgba(22,114,79,.04) 1px, transparent 1px) 0 0 / 26px 100%,
        radial-gradient(circle at 50% 50%, #f2f8f4, #eaf2ed);
    border: 1px solid var(--line); overflow: hidden;
}
.map-center { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 16px; height: 16px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 6px rgba(22,114,79,.15); }
.map-ring { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); border: 1px dashed rgba(22,114,79,.25); border-radius: 50%; }
.map-pin { position: absolute; transform: translate(-50%, -50%); background: #fff; border: 1px solid var(--brand-line); border-radius: 999px; padding: 3px 9px; font-size: .72rem; color: var(--ink-2); box-shadow: 0 2px 8px rgba(0,0,0,.07); white-space: nowrap; }
.map-pin:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.map-legend { position: absolute; left: 12px; bottom: 12px; font-size: .72rem; color: var(--muted); background: rgba(255,255,255,.85); padding: 4px 9px; border-radius: 8px; }

/* ===== 页脚 ===== */
.footer { background: #0f2c21; color: #9db3a8; margin-top: 40px; padding: 40px 0 26px; font-size: .84rem; }
.footer h5 { color: #fff; font-size: .9rem; margin-bottom: 10px; }
.footer a { color: #9db3a8; }
.footer a:hover { color: #fff; }
.footer-cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 30px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 26px; padding-top: 16px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .78rem; }
.footer .brand { color: #fff; }
.footer .brand-sub { color: #7f978b; }

/* ===== 工具类 ===== */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-6 { gap: 6px; } .gap-10 { gap: 10px; } .gap-14 { gap: 14px; } .gap-18 { gap: 18px; }
.wrap { flex-wrap: wrap; }
.mt-0 { margin-top: 0; } .mt-6 { margin-top: 6px; } .mt-10 { margin-top: 10px; }
.mt-16 { margin-top: 16px; } .mt-22 { margin-top: 22px; } .mt-28 { margin-top: 28px; }
.mb-0 { margin-bottom: 0; } .mb-6 { margin-bottom: 6px; } .mb-10 { margin-bottom: 10px; }
.mb-16 { margin-bottom: 16px; } .mb-22 { margin-bottom: 22px; }
.text-muted { color: var(--muted); }
.text-sm { font-size: .82rem; }
.text-xs { font-size: .76rem; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.nowrap { white-space: nowrap; }
.tnum { font-variant-numeric: tabular-nums; }
.divider { height: 1px; background: var(--line); margin: 16px 0; }
.breadcrumb { font-size: .82rem; color: var(--muted); margin-bottom: 14px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand); }
.pill-tabs { display: inline-flex; gap: 4px; background: #eef3f0; padding: 4px; border-radius: 11px; flex-wrap: wrap; }
.pill-tabs a { padding: 6px 14px; border-radius: 8px; font-size: .85rem; color: var(--ink-2); font-weight: 500; }
.pill-tabs a:hover { color: var(--brand-dark); }
.pill-tabs a.active { background: #fff; color: var(--brand-dark); font-weight: 650; box-shadow: 0 1px 3px rgba(0,0,0,.08); }

/* ===== 列表查询条 ===== */
.filter-bar {
    display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px;
    background: var(--white); border: 1px solid var(--line); border-radius: 12px;
    padding: 12px 14px; margin-bottom: 16px; box-shadow: var(--shadow);
}
.filter-bar .filter-group { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.filter-bar .filter-label { font-size: .76rem; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.filter-bar .filter-group input[type=text],
.filter-bar .filter-group select {
    width: 190px; padding: 8px 11px; font-size: .87rem; border-radius: 9px;
}
.filter-bar .filter-group select { width: 186px; padding-right: 30px; }
.filter-bar .filter-group input[type=text]::placeholder { color: #9aa8a0; }
.filter-bar .filter-checks { display: flex; align-items: center; gap: 14px; min-height: 38px; flex-wrap: wrap; }
.filter-bar .filter-checks .checkbox {
    display: inline-flex; align-items: center; gap: 6px; margin-bottom: 0;
    font-size: .86rem; font-weight: 500; color: var(--ink-2); cursor: pointer; white-space: nowrap;
}
.filter-bar .filter-checks .checkbox input { width: 15px; height: 15px; margin: 0; cursor: pointer; }
.filter-bar .filter-checks .checkbox:hover { color: var(--brand-dark); }
.filter-bar .filter-actions { display: flex; gap: 8px; margin-left: auto; }
.filter-bar .filter-actions .btn { padding: 8px 16px; font-size: .85rem; }

@media (max-width: 720px) {
    .filter-bar { padding: 12px; }
    .filter-bar .filter-group input[type=text],
    .filter-bar .filter-group select { width: 100%; }
    .filter-bar .filter-group { flex: 1 1 100%; }
    .filter-bar .filter-actions { margin-left: 0; width: 100%; }
    .filter-bar .filter-actions .btn { flex: 1; }
}

.rank-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.rank-row:last-child { border-bottom: 0; }
.rank-no { width: 24px; height: 24px; border-radius: 7px; background: var(--bg); color: var(--muted); display: grid; place-items: center; font-size: .76rem; font-weight: 700; flex: none; }
.rank-row:nth-child(1) .rank-no { background: #fdf0dd; color: #b8760a; }
.rank-row:nth-child(2) .rank-no { background: #eef1f2; color: #62737a; }
.rank-row:nth-child(3) .rank-no { background: #fbece4; color: #a9603a; }

.kv { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: .87rem; }
.kv .k { color: var(--muted); }
.kv .v { font-weight: 600; }

.info-list { background: #fbfdfb; border: 1px solid var(--line); border-radius: 12px; padding: 4px 16px; }

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
    .stat-grid, .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .store-grid { grid-template-columns: repeat(2, 1fr); }
    .layout-side { grid-template-columns: 1fr; }
    .side-nav { position: static; display: flex; overflow-x: auto; gap: 4px; }
    .side-nav .group { display: none; }
    .side-nav a { white-space: nowrap; }
    .auth-wrap { grid-template-columns: 1fr; }
    .auth-side { display: none; }
    .footer-cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
    .nav-links { display: none; }
    .nav-inner { gap: 10px; justify-content: space-between; }
    .stat-grid, .grid-2, .grid-3, .grid-4, .store-grid, .form-grid, .form-grid-3 { grid-template-columns: 1fr; }
    .auth-form { padding: 36px 22px; }
    .order-body { flex-wrap: wrap; }
    .store-hero { flex-direction: column; align-items: flex-start; padding: 22px; }
    .loc-pill { display: none; }
}

/* ===== 收银台 ===== */
.pay-amount { font-size: 2rem; font-weight: 800; color: var(--accent); letter-spacing: -.02em; }
.pay-methods { display: flex; flex-direction: column; gap: 10px; }
.pay-method {
    display: flex; align-items: center; gap: 12px; padding: 14px 16px;
    border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer;
    transition: border-color .15s, background .15s, box-shadow .15s;
}
.pay-method:hover { border-color: var(--brand-line); background: #fbfdfb; }
.pay-method input { width: 18px; height: 18px; accent-color: var(--brand); flex: none; }
.pay-method .pm-icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-size: 1.2rem; background: var(--bg); flex: none; }
.pay-method .pm-body { flex: 1; min-width: 0; }
.pay-method .pm-body b { display: block; font-size: .95rem; }
.pay-method .pm-body small { color: var(--muted); font-size: .78rem; }
.pay-method.selected { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 3px rgba(22,114,79,.08); }
.pay-banner {
    display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 12px;
    background: var(--warn-soft); border: 1px solid #f2dfb8; color: #8a5a06; margin-bottom: 16px;
}
.pay-banner .amt { font-size: 1.35rem; font-weight: 800; color: var(--accent); }

/* ===== 百度地图 ===== */
.map-canvas {
    display: none; height: 340px; border-radius: 14px; overflow: hidden;
    border: 1px solid var(--line); background: #f2f8f4;
}
.map-picker { margin: 0 0 16px; }
.map-picker-canvas {
    display: none; height: 260px; border-radius: 12px; overflow: hidden;
    border: 1px solid var(--line); background: #f2f8f4;
}
.map-picker.enabled .map-picker-canvas { display: block; }
.map-picker-bar { display: flex; align-items: center; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.map-picker-status { font-size: .78rem; color: var(--muted); }
.map-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

/* 店铺详情 · 关于门店里的门店位置 */
.store-map-block { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); }
.store-map-head {
    display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
    margin-bottom: 10px; flex-wrap: wrap;
}
.store-map-head h4 { font-size: .92rem; }
.store-map-head .text-xs { max-width: 60%; text-align: right; }
.map-canvas.store-map-canvas { height: 300px; border-radius: 12px; }
@media (max-width: 720px) {
    .store-map-head { flex-direction: column; align-items: flex-start; gap: 4px; }
    .store-map-head .text-xs { max-width: 100%; text-align: left; }
    .map-canvas.store-map-canvas { height: 240px; }
}

/* ===== 地图卡片 · 柳州市区定位（模糊搜索 + 地图选点） ===== */
.map-head { flex-wrap: wrap; row-gap: 10px; }
.map-head-hint { white-space: nowrap; }
.city-fixed {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 4px 11px; border-radius: 999px; white-space: nowrap;
    background: var(--brand-soft); border: 1px solid var(--brand-line);
    color: var(--brand); font-size: .76rem; font-weight: 700;
}
.city-fixed .dot {
    width: 6px; height: 6px; border-radius: 50%; flex: none;
    background: var(--brand); box-shadow: 0 0 0 3px rgba(22, 114, 79, .14);
}

.addr-panel {
    border: 1px solid var(--line); border-radius: 12px; background: #fbfdfb;
    padding: 14px 16px 12px; margin-bottom: 14px;
}
.addr-panel[hidden] { display: none; }

.addr-search { display: flex; align-items: center; gap: 8px; }
.addr-search-input { position: relative; flex: 1; min-width: 0; }
.addr-search-icon {
    position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
    font-size: .82rem; opacity: .55; pointer-events: none;
}
.addr-search input {
    width: 100%; padding: 9px 12px 9px 33px; font-size: .84rem; border-radius: 10px;
}
.addr-search input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(22, 114, 79, .1); }
.addr-search input:disabled { background: #f4f7f5; color: var(--muted); cursor: not-allowed; }
.addr-search .btn { white-space: nowrap; }

.addr-results {
    margin-top: 10px; border: 1px solid var(--line); border-radius: 10px;
    background: #fff; max-height: 208px; overflow-y: auto;
}
.addr-results[hidden] { display: none; }
.addr-result {
    display: block; width: 100%; text-align: left; cursor: pointer;
    padding: 9px 13px; background: transparent; border: 0;
    border-bottom: 1px solid #eef3ef; font: inherit; color: var(--ink);
    transition: background .14s;
}
.addr-result:last-child { border-bottom: 0; }
.addr-result:hover, .addr-result:focus-visible { background: var(--brand-soft); outline: none; }
.addr-result b { display: block; font-size: .85rem; font-weight: 700; }
.addr-result small { display: block; margin-top: 2px; font-size: .75rem; color: var(--muted); }

.addr-foot {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; margin-top: 11px; flex-wrap: wrap;
}
.addr-note { margin: 0; font-size: .77rem; color: var(--muted); line-height: 1.55; flex: 1; min-width: 200px; }
.addr-note.err { color: var(--warn); }
.addr-foot .btn { white-space: nowrap; }

@media (max-width: 900px) {
    .addr-search { flex-wrap: wrap; }
    .addr-search .btn { flex: 1 0 100%; }
    .addr-foot { flex-direction: column; align-items: stretch; }
    .addr-foot .btn { width: 100%; }
}

