/* ==========================================================
   基础重置与变量
   ========================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
    font-family: "Microsoft YaHei", "PingFang SC", -apple-system, sans-serif;
    color: #333;
    background: #fff;
    line-height: 1.6;
    user-select: none; /* 新增：禁止全站选中 */
    -webkit-user-select: none;
}
a { color: inherit; text-decoration: none; }
:root {
    --primary: #c8102e;
    --primary-dark: #9a0c23;
    --gold: #d5b064;
    --gold-light: #e8d5a8;
    --dark: #1a1a1a;
}

/* ========== 顶部导航 ========== */
.site-header {
    position: fixed; top: 0; left: 0; width: 100%; height: 80px;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(10px);
    z-index: 999; display: flex; align-items: center;
    padding: 0 60px; box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.header-logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.header-logo-img { height: 50px; width: auto; display: block; pointer-events: none; /* 穿透鼠标 */ }
.main-nav { flex: 1; text-align: center; }
.main-nav ul { display: flex; gap: 36px; list-style: none; justify-content: center; }
.main-nav a {
    font-size: 15px;
    color: #333;
    position: relative;
    padding: 6px 0;
    white-space: nowrap;
    transition: color 0.28s ease;
}

/* 悬停下划线：从中间向两侧展开 */
.main-nav a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transform: translateX(-50%);
    transition: width 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

/* 悬停：文字变红 + 下划线展开 */
.main-nav a:hover {
    color: var(--primary);
}
.main-nav a:hover::after {
    width: 100%;
}

/* 当前页：下划线常驻、文字常红 */
.main-nav a.active {
    color: var(--primary);
}
.main-nav a.active::after {
    width: 100%;
}

/* 键盘可访问性：聚焦时也有同样效果 */
.main-nav a:focus-visible {
    color: var(--primary);
    outline: none;
}
.main-nav a:focus-visible::after {
    width: 100%;
}

/* ========== 汉堡按钮（桌面端隐藏） ========== */
.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-left: auto;
    padding: 0;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #333;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ========== 页面主体 ========== */
.store-page {
    padding-top: 80px;
    background: #f9f7f4;
    min-height: 100vh;
}

/* 头部简介（高度已收小） */
.store-hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a1015 100%);
    padding: 40px 60px 36px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.store-hero::before {
    content: "";
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(213,176,100,0.08) 0%, transparent 70%);
    top: -300px;
    right: -150px;
    pointer-events: none;
}
.store-hero::after {
    content: "";
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200,16,46,0.12) 0%, transparent 70%);
    bottom: -200px;
    left: -100px;
    pointer-events: none;
}
.store-hero .section-tag {
    font-size: 14px;
    color: var(--gold);
    letter-spacing: 6px;
    margin-bottom: 12px;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
}
.store-hero .section-title {
    font-size: 34px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 12px;
    letter-spacing: 2px;
    position: relative;
    z-index: 1;
}
.store-hero .section-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary);
    margin: 14px auto 0;
}
.store-hero p {
    max-width: 720px;
    margin: 0 auto;
    color: rgba(255,255,255,0.72);
    font-size: 14px;
    line-height: 1.7;
    position: relative;
    z-index: 1;
    text-indent: 2em;
}

/* 搜索 + 筛选区 */
.store-filter {
    max-width: 1100px;
    margin: -32px auto 0;
    padding: 0 20px;
    position: relative;
    z-index: 5;
}
.filter-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.08), 0 0 0 1px rgba(213,176,100,0.15);
    padding: 32px 36px;
}
.filter-row {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}
.filter-row + .filter-row {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed #f0ebe4;
}
.filter-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
    white-space: nowrap;
    min-width: 70px;
}
.search-box {
    flex: 1;
    min-width: 220px;
    display: flex;
    align-items: center;
    background: #f7f5f2;
    border-radius: 40px;
    padding: 4px 6px 4px 22px;
    border: 1px solid transparent;
    transition: all 0.3s;
}
.search-box:focus-within {
    border-color: var(--gold);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(213,176,100,0.1);
}
.search-box input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    padding: 10px 0;
    color: var(--dark);
    font-family: inherit;
}
.search-box input::placeholder {
    color: #bbb;
}
.search-box button {
    border: none;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border-radius: 40px;
    padding: 10px 26px;
    font-size: 14px;
    cursor: pointer;
    font-family: inherit;
    letter-spacing: 1px;
    transition: all 0.25s;
    white-space: nowrap;
    font-weight: 500;
}
.search-box button:hover {
    box-shadow: 0 6px 18px rgba(200,16,46,0.35);
    transform: translateY(-1px);
}

.filter-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.filter-tab {
    padding: 8px 22px;
    border-radius: 40px;
    font-size: 13px;
    color: #666;
    background: #f7f5f2;
    cursor: pointer;
    transition: all 0.25s;
    border: 1px solid transparent;
    user-select: none;
    white-space: nowrap;
}
.filter-tab:hover {
    color: var(--primary);
    background: #fef5f6;
}
.filter-tab.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow: 0 4px 14px rgba(200,16,46,0.3);
    border-color: transparent;
}

/* 门店结果列表 */
.store-results {
    max-width: 1100px;
    margin: 40px auto 0;
    padding: 0 20px 100px;
}
.results-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 10px;
}
.results-count {
    font-size: 14px;
    color: #888;
}
.results-count strong {
    color: var(--primary);
    font-size: 18px;
    margin: 0 4px;
}
.results-sort {
    font-size: 13px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 8px;
}
.results-sort select {
    border: 1px solid #e8e2d9;
    background: #fff;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 13px;
    color: #555;
    outline: none;
    font-family: inherit;
    cursor: pointer;
}
.results-sort select:focus {
    border-color: var(--gold);
}

.store-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* 门店卡片 */
.store-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    border: 1px solid #f2ede6;
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    flex-direction: column;
    position: relative;
}
.store-card:hover {
    box-shadow: 0 16px 40px rgba(200,16,46,0.12), 0 0 0 1px rgba(213,176,100,0.4);
    transform: translateY(-6px);
}
.store-img {
    height: 180px;
    background: #f5f0ea;
    position: relative;
    overflow: hidden;
}
/* 新增：背景图逻辑 */
.store-img-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: block;
    transition: transform 0.6s cubic-bezier(0.22,1,0.36,1);
}
.store-card:hover .store-img-bg {
    transform: scale(1.07);
}
.store-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(200,16,46,0.92);
    color: #fff;
    font-size: 11px;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 1px;
    backdrop-filter: blur(4px);
    box-shadow: 0 3px 10px rgba(200,16,46,0.3);
    z-index: 2;
}
.store-badge.gold {
    background: linear-gradient(135deg, #c9a34e, #d5b064);
    box-shadow: 0 3px 10px rgba(213,176,100,0.4);
}

.store-body {
    padding: 22px 22px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.store-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
    line-height: 1.4;
    letter-spacing: 0.5px;
}

/* 图标与文字严格对齐 */
.store-info-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #777;
    line-height: 1.7;
    margin-bottom: 6px;
}
.store-info-row .ico {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: var(--gold);
    margin-top: 2px;
    line-height: 1;
}
.store-info-row span:last-child {
    flex: 1;
    min-width: 0;
    word-break: break-word;
}

.store-footer {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #f5f0ea;
}
.store-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0 0 4px 0;
}
.store-tag {
    font-size: 11px;
    color: #9a8c7a;
    background: #faf7f2;
    padding: 3px 12px;
    border-radius: 20px;
    border: 1px solid #f0e9df;
    letter-spacing: 0.5px;
}
.store-tag.hot {
    color: var(--primary);
    background: #fef3f4;
    border-color: #fadadd;
}

.store-btn-row {
    display: flex;
    gap: 10px;
    width: 100%;
}
.store-btn {
    flex: 1;
    text-align: center;
    font-size: 13px;
    padding: 9px 0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s;
    font-family: inherit;
    letter-spacing: 0.5px;
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.store-btn-main {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow: 0 4px 12px rgba(200,16,46,0.22);
}
.store-btn-main:hover {
    box-shadow: 0 8px 20px rgba(200,16,46,0.4);
    transform: translateY(-1px);
}
.store-btn-sub {
    background: #faf8f5;
    color: #777;
    border-color: #ece6de;
}
.store-btn-sub:hover {
    background: #fff;
    color: var(--primary);
    border-color: var(--gold);
}

/* 无结果提示 */
.empty-state {
    text-align: center;
    padding: 70px 20px;
    display: none;
}
.empty-state.show {
    display: block;
}
.empty-icon {
    font-size: 56px;
    margin-bottom: 18px;
    opacity: 0.5;
}
.empty-state h3 {
    font-size: 18px;
    color: #666;
    margin-bottom: 8px;
}
.empty-state p {
    font-size: 14px;
    color: #aaa;
}

/* 页脚 */
footer {
    background: var(--dark);
    color: #999;
    padding: 50px 20px 40px;
    text-align: center;
}
.footer-logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 18px;
    letter-spacing: 4px;
}
.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}
.footer-links a {
    font-size: 14px;
    color: #999;
    transition: color 0.2s;
}
.footer-links a:hover {
    color: var(--primary);
}
.footer-copy {
    font-size: 13px;
    color: #666;
    border-top: 1px solid #333;
    padding-top: 22px;
    margin-top: 22px;
}

/* ==========================================================
   地图选择菜单（底部弹出）
   ========================================================== */
.map-picker-modal {
    position: fixed;
    inset: 0;
    background: rgba(10, 5, 6, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: none;
    align-items: flex-end;
    justify-content: center;
    z-index: 10001;
    padding: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.map-picker-modal.open {
    display: flex;
    opacity: 1;
}
.map-picker-sheet {
    width: 100%;
    max-width: 560px;
    background: #fff;
    border-radius: 20px 20px 0 0;
    padding: 22px 22px calc(22px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -12px 40px rgba(0,0,0,0.18);
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.22,1,0.36,1);
}
.map-picker-modal.open .map-picker-sheet {
    transform: translateY(0);
}
.map-picker-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}
.map-picker-head h3 {
    font-size: 17px;
    color: var(--dark);
    font-weight: 700;
    letter-spacing: 0.5px;
}
.map-picker-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #f5f5f5;
    color: #888;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s;
    font-family: inherit;
}
.map-picker-close:hover {
    background: rgba(200,16,46,0.1);
    color: var(--primary);
    transform: rotate(90deg);
}
.map-picker-desc {
    font-size: 13px;
    color: #999;
    margin-bottom: 16px;
    line-height: 1.6;
    word-break: break-word;
}
.map-picker-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
}
.map-picker-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #faf8f5;
    border: 1px solid #f0ebe4;
    cursor: pointer;
    transition: all 0.25s;
    font-family: inherit;
    text-align: left;
    width: 100%;
}
.map-picker-item:hover {
    background: #fff;
    border-color: var(--gold);
    box-shadow: 0 6px 18px rgba(213,176,100,0.18);
    transform: translateY(-1px);
}
.map-picker-item .map-logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    color: #fff;
}
.map-picker-item .map-logo.amap { background: linear-gradient(135deg, #2e7cf6, #165bd6); }
.map-picker-item .map-logo.baidu { background: linear-gradient(135deg, #3b8ef0, #1f6fd1); }
.map-picker-item .map-logo.qq { background: linear-gradient(135deg, #ff7a45, #e8542a); }
.map-picker-item .map-meta {
    flex: 1;
    min-width: 0;
}
.map-picker-item .map-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 2px;
}
.map-picker-item .map-sub {
    font-size: 12px;
    color: #aaa;
}
.map-picker-cancel {
    width: 100%;
    padding: 13px 0;
    border-radius: 12px;
    border: none;
    background: #f2f2f2;
    color: #666;
    font-size: 15px;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.25s;
    letter-spacing: 1px;
}
.map-picker-cancel:hover {
    background: #eaeaea;
    color: #333;
}

/* ==========================================================
   响应式
   ========================================================== */
@media (min-width: 1920px) {
    .site-header { padding: 0 120px; }
    .header-logo-img { height: 56px; }
    .store-filter { max-width: 1300px; }
    .store-results { max-width: 1300px; }
    .store-hero { padding: 50px 120px 40px; }
    .store-hero .section-title { font-size: 40px; }
}
@media (min-width: 1366px) and (max-width: 1919px) {
    .site-header { padding: 0 80px; }
    .store-hero { padding: 44px 80px 36px; }
}
@media (min-width: 1024px) and (max-width: 1365px) {
    .site-header { padding: 0 30px; }
    .main-nav ul { gap: 20px; }
    .main-nav a { font-size: 14px; }
    .store-hero { padding: 40px 30px 32px; }
    .store-grid { gap: 18px; }
    .filter-card { padding: 26px 24px; }
}
@media (min-width: 768px) and (max-width: 1023px) {
    .site-header { padding: 0 20px; height: 70px; }
    .header-logo-img { height: 44px; }
    .main-nav ul { gap: 12px; }
    .main-nav a { font-size: 13px; }
    .store-page { padding-top: 70px; }
    .store-hero { padding: 34px 24px 28px; }
    .store-hero .section-title { font-size: 28px; }
    .store-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
    .filter-card { padding: 24px 22px; }
    .filter-row { gap: 12px; }
    .filter-label { min-width: 60px; font-size: 13px; }
}
@media (max-width: 767px) {
    .site-header { padding: 0 16px; height: 64px; }
    .header-logo-img { height: 40px; }

    /* 显示汉堡按钮 */
    .nav-toggle { display: flex; }

    /* 导航变成从顶部滑下的面板 */
    .main-nav {
        position: fixed;
        top: 64px;
        left: 0;
        width: 100%;
        background: #fff;
        box-shadow: 0 8px 24px rgba(0,0,0,0.1);
        transform: translateY(-120%);
        transition: transform 0.3s ease;
        z-index: 998;
        display: block;
        text-align: left;
    }
    .main-nav.open {
        transform: translateY(0);
    }
    .main-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 8px 0;
    }
    .main-nav li {
        border-bottom: 1px solid #f0f0f0;
    }
    .main-nav a {
        display: block;
        padding: 14px 24px;
        font-size: 15px;
    }
    .main-nav a::after,
    .main-nav a.active::after,
    .main-nav a:hover::after {
        display: none;
    }

    .store-page { padding-top: 64px; }
    .store-hero { padding: 28px 18px 24px; }
    .store-hero .section-title { font-size: 21px; letter-spacing: 2px; }
    .store-hero p { font-size: 12px; padding: 0 4px; line-height: 1.6; }
    .store-filter { margin-top: -22px; padding: 0 14px; }
    .filter-card { padding: 20px 16px; border-radius: 14px; }
    .filter-row { gap: 10px; }
    .filter-label { font-size: 13px; min-width: 56px; }
    .search-box { padding-left: 16px; min-width: 180px; }
    .search-box button { padding: 9px 18px; font-size: 13px; }
    .filter-tab { padding: 6px 16px; font-size: 12px; }
    .store-results { padding: 0 14px 70px; margin-top: 30px; }
    .store-grid { grid-template-columns: 1fr; gap: 18px; }
    .store-img { height: 200px; }
    .store-name { font-size: 16px; }
    .results-meta { margin-bottom: 18px; }
    .results-count { font-size: 13px; }
    .results-count strong { font-size: 16px; }
    .store-card:hover { transform: none; box-shadow: 0 2px 12px rgba(0,0,0,0.04); }

    .map-picker-sheet { padding: 18px 16px calc(18px + env(safe-area-inset-bottom, 0px)); }
}