/**
 * 金标门店 - 「门店分布」板块样式
 *
 * 约定：
 *  - 本页所有业务样式统一使用 gss- 命名空间前缀，避免与站点其他页面样式冲突；
 *  - 板块级 CSS 变量定义在 .gss-sec 上，仅在该板块内生效；
 *  - 图标与门店图片统一使用 /best/img/goldStandardStore 下的切图资源；
 *  - 交互逻辑见 /themes/llumar/js/storelevel/goldStandardStore.js。
 */

/* ===== 基础重置（沿用项目规范） ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html, body {
    overflow-x: hidden;
    width: 100%;
}
body {
    font-family: "思源黑体", "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #000;
    background: #fff;
    -webkit-font-smoothing: antialiased;
}
section, div, p, span {
    position: relative;
    box-sizing: border-box;
}
img {
    display: block;
    max-width: 100%;
}
a {
    color: inherit;
    text-decoration: none;
}
button {
    font-family: inherit;
    border: 0;
    background: none;
    cursor: pointer;
}

/* ===== 项目通用工具类 ===== */
.opacity0 {
    opacity: 0;
    pointer-events: none;
    height: 0;
}
.opacity1 {
    opacity: 1;
    pointer-events: auto;
    height: auto;
}
.fill {
    width: 100%;
    height: 100%;
}
.posa {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}
.bgImg {
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.bgImg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.br-pc {
    width: 100%;
    display: block;
}
.br-phone {
    width: 100%;
    display: none;
}

/* ===== 页面容器 ===== */
.goldStandardStoreContent {
    width: 100%;
}
.goldStandardStoreWrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}
.goldStandardStoreCont {
    width: 100%;
}

/* ===== 板块基础 ===== */
.gss-sec {
    --gss-red: #ed1b31;
    --gss-select: #d7000f;
    --gss-ink: #010101;
    --gss-ink2: #333;
    --gss-grey: #999;
    --gss-line: #e6e9ed;
    --gss-border: #e6e7e8;
    --gss-maxw: 1300px;

    padding: 56px 0 64px;
    background: transparent;            /* 板块底色透明，仅地图区域保留白底 */
    font-size: 16px;
}
.gss-container {
    width: var(--gss-maxw);
    max-width: 100%;
    margin: 0 auto;
}
.gss-title {
    text-align: center;
    font-size: 30px;
    font-weight: bold;
    line-height: 1.3;
    color: var(--gss-ink);
}
.gss-subtitle {
    text-align: center;
    color: var(--gss-grey);
    font-size: 14px;
    margin-top: 12px;
}
.gss-sec-bar {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}
.gss-svg-defs {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

/* ===== 地图 / 列表 切换 ===== */
/* 容器透明：不给整体加底色，只有选中项显示主题色胶囊 */
.gss-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    box-sizing: border-box;
    background: transparent;
    border-radius: 999px;
    border: 1px solid #F0F0F0;
    padding: 4px;
}
.gss-ind {
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 4px;
    width: calc(50% - 4px);
    background: var(--gss-select);
    border-radius: 999px;
    transition: transform .3s cubic-bezier(.4, 0, .2, 1);
}
.gss-switch.gss-list .gss-ind {
    transform: translateX(100%);
}
.gss-s-i {
    position: relative;
    z-index: 2;
    min-width: 96px;
    height: 38px;              /* 与省份 / 城市按钮本体同高 */
    box-sizing: border-box;
    padding: 0 25px;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transition: color .25s;
    line-height: 1;
}
.gss-s-i.gss-on {
    color: #fff;
    font-weight: 700;
}
/* 地图/列表图标：未选中用灰色切图，选中用白色切图（两套图切换，不再用滤镜） */
.gss-s-ico {
    display: block;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}
.gss-ico-on {
    display: none;
}
.gss-s-i.gss-on .gss-ico-off {
    display: none;
}
.gss-s-i.gss-on .gss-ico-on {
    display: block;
}
.gss-pane {
    transition: opacity .28s ease;
}
.gss-pane.gss-fade {
    opacity: 0;
}
.gss-pane-hidden {
    display: none;
}

/* ===== 地图 ===== */
.gss-mapwrap {
    position: relative;      /* 表头悬浮在地图上，作为定位参照 */
    max-width: 1160px;
    margin: 34px auto 0;
    background: #fff;
    border: 1px solid var(--gss-border);
}
/* 表头悬浮在地图之上：绝对定位 + 背景透明，不再单独占一行高度 */
.gss-mapbar {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    padding: 18px 22px;
    font-size: 14px;
    color: var(--gss-ink2);
    background: transparent;
    pointer-events: none;    /* 压在地图上时不拦截省份点击 */
}
.gss-mapnow {
    display: flex;
    align-items: center;
    gap: 7px;
    line-height: 1;
}
.gss-mapnow b {
    color: var(--gss-select);
    font-weight: 700;
}
.gss-bar-ico {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    stroke: var(--gss-select);
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.gss-back {
    display: inline-flex;
    pointer-events: auto;     /* 表头整体不拦点击，仅返回按钮可交互 */
    align-items: center;
    color: var(--gss-select);
    font-weight: 700;
    cursor: pointer;
    margin-right: 4px;
}
.gss-back:hover {
    opacity: .8;
}
.gss-mapstage {
    position: relative;
    height: 975px;
    background: #fff;                   /* 地图区域保持白底 */
    overflow: hidden;
}

/* 地图画布 */
.gss-cnmap-host {
    position: absolute;
    inset: 0;
}
.gss-cnmap-host svg {
    width: 100%;
    height: 100%;
    display: block;
}
.gss-prov {
    fill: #e6e9ed;
    stroke: #fff;
    stroke-width: 1;
    transition: fill .15s;
    cursor: pointer;
}
.gss-prov:hover {
    fill: #f3b9be;
}
.gss-prov.gss-has {
    fill: #f7d6d9;
}
.gss-prov.gss-on {
    fill: var(--gss-select);
}

/* 定位层 */
.gss-pins {
    position: absolute;
    inset: 0;
    pointer-events: none;    /* 空白区域放行给底下的省份路径，图钉自身仍可点击 */
}

/* 省份名称 */
.gss-prov-label {
    position: absolute;
    transform: translate(-50%, 0);
    font-size: 12px;
    line-height: 1;
    color: #a7a7a7;
    white-space: nowrap;
    pointer-events: none;
    z-index: 2;
}

/* 省份 / 门店 定位点 */
.gss-pin {
    position: absolute;
    width: 0;
    height: 0;
    pointer-events: none;
    z-index: 5;
}

/* 图标重叠时（如上海与浙江），鼠标悬浮到哪一个，哪一个就升到最上层盖住其它的 */
.gss-pin:hover {
    z-index: 7;
}
/* 兜底：部分浏览器不会把子元素的 hover 传递给父级，用 :has 反推（单独一条，避免旧浏览器整组失效） */
.gss-pin:has(.gss-pin-mark:hover) {
    z-index: 7;
}
.gss-pin-mark {
    position: absolute;
    left: 0;
    top: 0;
    width: 57px;
    height: 63px;
    transform: translate(-50%, -50%);
    background: url('/themes/llumar/img2023/goldStandardStore/icpnmapbg.png') center/100% 100% no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 6px;
    pointer-events: auto;
    cursor: pointer;
    transition: transform .16s;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .16));
}
.gss-pin-mark:hover {
    transform: translate(-50%, -50%) scale(1.08);
}
.gss-pin-gold {
    width: 22px;
    height: 27px;
    object-fit: contain;
    pointer-events: none;
}
.gss-pin-count {
    position: absolute;
    left: 0;
    top: 46px;
    transform: translateX(-50%);
    background: var(--gss-select);
    color: #fff;
    font-weight: bold;
    font-size: 14px;
    line-height: 1;
    padding: 10px 15px;
    white-space: nowrap;
    pointer-events: none;
    z-index: 6;
}

/* 桌面端：门店数量标签默认隐藏，鼠标悬浮到省份图标块上时才显示；
   <=799px 的触摸设备没有 hover，保持常显，方便单手查看 */
@media (min-width: 800px) {
    .gss-pin-count {
        opacity: 0;
        visibility: hidden;
        transition: opacity .18s ease, visibility .18s ease;
    }
    .gss-pin-mark:hover + .gss-pin-count {
        opacity: 1;
        visibility: visible;
    }
}
/* 数量块上的指示三角：指向上方的门店图标 */
.gss-pin-count::before {
    content: '';
    position: absolute;
    left: 50%;
    top: -6px;
    margin-left: -7px;
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-bottom: 7px solid var(--gss-select);
}

/* 门店信息弹窗 */
.gss-storecard {
    position: absolute;
    width: 400px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .16);
    z-index: 20;
    display: none;
}
.gss-storecard.gss-on {
    display: block;
    animation: gss-pop .18s ease;
}
@keyframes gss-pop {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
}
/* 关闭按钮：叠在弹窗封面图右上角 */
.gss-x {
    position: absolute;
    right: -20px;
    top: -20px;
    width: 49px;
    height: 49px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    z-index: 3;
}
.gss-x img {
    display: block;
    width: 49px;
    height: 49px;
}
.gss-x:hover {
    opacity: .85;
}
.gss-sc-img {
    width: 350px;
    height: 233px;
    margin: 25px auto 0;
    position: relative;
    background: #2a2d33 url('/themes/llumar/img2023/goldStandardStore/banner.jpg') left center/cover no-repeat;
}
.gss-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    width: 81px;
    height: 27px;
    line-height: 27px;
    text-align: center;
    border-radius: 14px;
    background: var(--gss-red);
    box-shadow: 0 3px 7px rgba(237, 27, 49, .35);
    color: #fff;
    font-size: 14px;
    font-weight: bold;
}
.gss-sc-b {
    padding: 25px;
}
.gss-sc-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: bold;
    color: var(--gss-ink);
    line-height: 1.4;
}
.gss-gold {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    object-fit: contain;
}
.gss-sc-no {
    font-size: 16px;
    font-weight: 400;
    color: var(--gss-red);
    margin-top: 8px;
    line-height: 1.4;
}
.gss-sc-line {
    height: 1px;
    background: var(--gss-line);
    margin: 16px 0;
}
.gss-sc-ad {
    font-size: 16px;
    font-weight: 400;
    color: var(--gss-grey);
    line-height: 35px;
}
.gss-sc-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
    font-size: 16px;
    font-weight: bold;
    color: var(--gss-red);
    cursor: pointer;
}
.gss-sc-more:hover {
    gap: 8px;
}

/* 图例与提示 */
.gss-maplegend.gss-hidden {
    display: none;
}
.gss-maplegend {
    position: absolute;
    left: 20px;
    bottom: 18px;
    padding: 9px 12px;
    font-size: 12px;
    color: var(--gss-grey);
    display: flex;
    gap: 16px;
    z-index: 10;
}
.gss-maplegend b {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-right: 5px;
    vertical-align: -1px;
}
.gss-lg-none { background: #e6e9ed; }
.gss-lg-has { background: #f7d6d9; }
.gss-lg-cur { background: var(--gss-select); }
.gss-tips {
    position: absolute;
    right: 20px;
    top: 18px;
    font-size: 12px;
    color: var(--gss-grey);
    background: rgba(255, 255, 255, .92);
    border: 1px solid var(--gss-line);
    padding: 6px 14px;
    z-index: 10;
}

/* ===== 门店列表 ===== */
.gss-filters {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 32px 0 28px;
    align-items: center;
}
.gss-frow {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}
.gss-fchip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;              /* 与地图 / 列表切换、城市按钮统一 */
    box-sizing: border-box;
    padding: 0 20px;
    border: 1px solid #F0F0F0;
    background: #FAFAFA;
    font-size: 14px;
    line-height: 1;
    color: #666;
    cursor: pointer;
    transition: .16s;
    border-radius: 999px;
}
.gss-fchip:hover {
    border-color: var(--gss-select);
    color: var(--gss-select);
}
.gss-fchip.gss-on {
    background: var(--gss-select);
    border-color: var(--gss-select);
    color: #fff;
    font-weight: 700;
}

/* 城市选择区：独立描边圆角面板；城市按钮默认无底色无描边 */
.gss-frow-city {
    border: 1px solid #F0F0F0;
    border-radius: 20px;
    padding: 20px 30px;
    max-width: 100%;
}
.gss-frow-city .gss-fchip {
    padding: 0 20px;
    background: transparent;
}
.gss-frow-city .gss-fchip:hover {
    background: transparent;
}
.gss-frow-city .gss-fchip.gss-on {
    background: var(--gss-select);
    border-color: var(--gss-select);
    color: #fff;
}

.gss-storegrid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.gss-stcard {
    display: flex;
    flex-direction: column;
    width: 420px;
    height: 524px;
    background: #fff;
    border: 1px solid var(--gss-border);
    overflow: hidden;
    transition: box-shadow .2s, transform .2s;
}
.gss-stcard:hover {
    box-shadow: 0 14px 34px rgba(0, 0, 0, .1);
    transform: translateY(-3px);
}
.gss-pic {
    position: relative;
    flex: 0 0 278px;
    height: 278px;
    background: #2a2d33 url('/themes/llumar/img2023/goldStandardStore/banner.jpg') left center/cover no-repeat;
    color: #fff;
}
.gss-lv {
    position: absolute;
    left: 12px;
    top: 12px;
    width: 81px;
    height: 27px;
    line-height: 27px;
    text-align: center;
    border-radius: 14px;
    background: var(--gss-red);
    box-shadow: 0 3px 7px rgba(230, 0, 18, .35);
    color: #fff;
    font-size: 14px;
    font-weight: bold;
}
.gss-bd {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
    min-height: 0;
}
.gss-st-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: bold;
    color: var(--gss-ink);
    line-height: 1.4;
}
.gss-st-no {
    font-size: 16px;
    font-weight: 400;
    color: var(--gss-red);
    margin-top: 11px;
    line-height: 1.4;
}
.gss-st-line {
    height: 1px;
    background: var(--gss-line);
    margin: 16px 0;
    flex-shrink: 0;
}
.gss-meta {
    font-size: 16px;
    font-weight: 400;
    color: var(--gss-grey);
    line-height: 2;
    display: flex;
    gap: 8px;
    align-items: center;
}
.gss-meta-ico {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    margin-top: 5px;
    object-fit: contain;
}
.gss-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: auto;
    padding-top: 12px;
    font-size: 16px;
    font-weight: bold;
    color: var(--gss-red);
    cursor: pointer;
}
.gss-stcard:hover .gss-more {
    gap: 8px;
}
.gss-empty {
    flex: 0 0 100%;
    text-align: center;
    color: var(--gss-grey);
    padding: 60px 0;
    font-size: 14px;
}

/* ===== 响应式 ===== */
@media (max-width: 1340px) {
    .gss-container {
        width: auto;
        padding: 0 24px;
    }
    .gss-stcard {
        width: calc((100% - 40px) / 3);
        height: auto;
        min-height: 524px;
    }
    .gss-pic {
        flex: 0 0 240px;
        height: 240px;
    }
}
@media (max-width: 1000px) {
    .gss-mapstage {
        height: 620px;
    }
    .gss-stcard {
        width: calc((100% - 20px) / 2);
    }
}
@media (max-width: 799px) {
    .br-pc {
        display: none;
    }
    .br-phone {
        display: inline-block;
    }
    .gss-sec {
        padding: 32px 0 40px;
    }
    .gss-container {
        padding: 0 16px;
    }
    .gss-title {
        font-size: 22px;
    }
    .gss-subtitle {
        font-size: 12px;
        line-height: 1.7;
        padding: 0 8px;
    }
    .gss-sec-bar {
        margin-top: 22px;
    }
    .gss-s-i {
        min-width: 84px;
        height: 30px;
        box-sizing: border-box;
        padding: 0 12px;
        font-size: 11px;
    }
    .gss-s-ico {
        width: 14px;
        height: 14px;
        flex: 0 0 14px;
    }
    .gss-mapwrap {
        margin-top: 22px;
    }
    .gss-mapbar {
        padding: 14px 16px;
        font-size: 13px;
    }
    .gss-mapstage {
        height: 450px;
    }
    .gss-pin{
        transform: scale(0.5);
    }
    .gss-pin-mark {
        width: 57px;
        height: 63px;
        padding-bottom: 5px;
    }
    .gss-pin-gold {
        width: 22px;
        height: 27px;
    }
    .gss-pin-count {
        top: 40px;
        font-size: 12px;
        padding: 7px 10px;
    }
    .gss-prov-label {
        font-size: 10px;
    }
    .gss-storecard {
        width: calc(100% - 32px);
        max-width: 420px;
    }
    .gss-x {
        transform: scale(0.5);
    }
    .gss-sc-img {
        width: 300px;
        height: 160px;
        margin: 15px auto 0;
    }
    .gss-badge {
        left: 10px;
        top: 10px;
        width: 70px;
        height: 24px;
        line-height: 24px;
        font-size: 12px;
    }
    .gss-sc-b {
        padding: 16px;
    }
    .gss-sc-name {
        font-size: 15px;
    }
    .gss-sc-name .gss-sc-ico,
    .gss-sc-name .gss-gold {
        width: 16px;
        height: 16px;
        flex: 0 0 16px;
    }
    .gss-sc-no {
        font-size: 14px;
        margin-top: 6px;
    }
    .gss-sc-line {
        margin: 12px 0;
    }
    .gss-sc-ad {
        font-size: 14px;
        line-height: 28px;
    }
    .gss-sc-more {
        font-size: 14px;
        margin-top: 6px;
    }
    .gss-tips {
        display: none;
    }
    .gss-maplegend {
        left: 10px;
        bottom: 10px;
        gap: 10px;
        padding: 6px 8px;
        font-size: 10.5px;
    }
    .gss-filters {
        margin: 22px 0 20px;
        gap: 10px;
    }
    .gss-frow {
        gap: 8px;
    }
    .gss-frow-city {
        padding: 10px 15px;   /* 内边距按桌面值缩减一半 */
    }
    .gss-fchip,
    .gss-frow-city .gss-fchip {
        height: 30px;
        box-sizing: border-box;
        padding: 0 11px;
        font-size: 11px;
    }
    .gss-stcard {
        width: 100%;
        min-height: 0;
    }
    .gss-pic {
        flex: 0 0 200px;
        height: 200px;
    }
    /* 手机端列表卡片文字整体收紧一档：角标 / 店名 / 编号 / 地址电话 / 查看详情 */
    .gss-lv {
        left: 10px;
        top: 10px;
        width: 70px;
        height: 24px;
        line-height: 24px;
        font-size: 12px;
    }
    .gss-st-name {
        font-size: 15px;
    }
    .gss-st-name .gss-st-ico,
    .gss-st-name .gss-gold {
        width: 17px;
        height: 17px;
        flex: 0 0 17px;
    }
    .gss-st-no {
        font-size: 14px;
    }
    .gss-meta {
        font-size: 13px;
    }
    .gss-meta-ico {
        width: 12px;
        height: 12px;
        flex: 0 0 12px;
        margin-top: 4px;
        object-fit: contain;
    }
    .gss-more {
        font-size: 14px;
    }
}

/* ===== Drupal 项目定制（静态页无）===== */
/* 地址过长时最多显示两行，避免撑高卡片顶掉“查看详情” */
.gss-meta { min-width: 0; }
.gss-addr { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
/* GEO 文本：服务端渲染便于搜索引擎抓取，视觉上隐藏 */
.gss-geo-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
/* ===== 组件补充：从 selectProStore.css 抽取（移除公共库后本页自足）===== */
.gss-stcard.gss-lazy-hide,
.gss-loadmore-wrap.gss-lazy-hide {
    display: none;
}
.gss-loadmore-wrap {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}
.gss-loadmore {
    min-width: 320px;
    height: 48px;
    padding: 0 30px;
    border: 1px solid var(--gss-select);
    background: #fff;
    color: var(--gss-select);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: .16s;
}
.gss-loadmore:hover:not(:disabled) {
    background: var(--gss-select);
    color: #fff;
}
.gss-loadmore:disabled {
    opacity: .5;
    cursor: default;
}