* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", system-ui, sans-serif;
    line-height: 1.6;
    color: #000;
    background-color: #f5f7fa;
    height: 100vh;
    overflow: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    text-align: center;
    padding: 15px 10px;
    flex-shrink: 0;
    margin-bottom: 10px;
}

h1 {
    margin-bottom: 15px;
    color: #1c1c1e;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.search-box {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 10px;
}

input {
    padding: 14px 18px;
    border: none;
    border-radius: 16px;
    width: 100%;
    font-size: 17px;
    background: rgba(255, 255, 255, 0.9);
    color: #000;
    -webkit-appearance: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

input:focus {
    outline: none;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

button {
    padding: 14px 28px;
    background: linear-gradient(135deg, #007AFF, #0063CC);
    color: white;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    font-size: 17px;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.25);
}

button:active {
    transform: scale(0.96) translateY(1px);
    box-shadow: 0 1px 4px rgba(0, 122, 255, 0.2);
    background: linear-gradient(135deg, #0063CC, #004C99);
}

main {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 24px;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    height: calc(100vh - 150px);
    padding: 0 10px;
}

.stores-list {
    background: rgba(255, 255, 255, 0.95);
    padding: 0;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 300px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: relative;
}

.stores-count {
    padding: 16px 20px;
    background-color: rgba(0,0,0,0.02);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    color: #007aff;
    font-size: 19px;
    font-weight: 600;
    flex-shrink: 0;
}

.stores-list-content {
    overflow-y: auto;
    padding: 8px 0;
    flex: 1;
    position: relative;
    -webkit-overflow-scrolling: touch;
}

/* 隐藏默认滚动条 */
.stores-list-content::-webkit-scrollbar {
    width: 4px;
}

.stores-list-content::-webkit-scrollbar-track {
    background: transparent;
}

.stores-list-content::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #007AFF, #00C6FF);
    border-radius: 2px;
}

.store-item {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(0,0,0,0.04);
    cursor: pointer;
    transition: all 0.2s ease;
    background: transparent;
    margin: 0 8px;
    border-radius: 12px;
}

.store-item:last-child {
    border-bottom: none;
}

.store-item:active {
    background-color: rgba(0,0,0,0.03);
    transform: scale(0.99);
}

.store-item h3 {
    margin-bottom: 10px;
    color: #1c1c1e;
    font-size: 19px;
    font-weight: 600;
    letter-spacing: -0.2px;
}

.store-item p {
    margin: 6px 0;
    color: #6c7589;
    font-size: 17px;
    line-height: 1.5;
}

.store-address {
    color: #007AFF !important;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 0;
    margin: 10px 0;
    transition: all 0.2s ease;
    font-size: 17px;
}

.address-icon {
    font-size: 24px;
    color: #FF3B30;
    flex-shrink: 0;
    padding: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.address-icon:active {
    transform: scale(0.9);
    opacity: 0.8;
}

.address-text {
    flex: 1;
    color: #007AFF;
    font-weight: 500;
}

.store-contact, .store-phone {
    color: #6c7589 !important;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 17px;
}

.store-contact::before {
    content: "👤";
    font-size: 14px;
}

.store-phone::before {
    content: "📱";
    font-size: 14px;
}

.store-area {
    color: #8E8E93 !important;
    font-size: 15px !important;
    margin-top: 8px;
    padding-left: 2px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.store-area::before {
    content: "📌";
    font-size: 13px;
    opacity: 0.8;
}

#mapContainer {
    height: calc(100vh - 150px);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.info-window {
    padding: 16px;
    max-width: 320px;
    font-family: -apple-system, system-ui, sans-serif;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.98);
}

.info-window h4 {
    margin-bottom: 10px;
    color: #1c1c1e;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.2px;
}

.info-window p {
    margin: 8px 0;
    color: #6c7589;
    font-size: 15px;
    line-height: 1.5;
}

/* 地图选择弹窗样式 */
.map-choice {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
}

.map-choice-mask {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.map-choice-content {
    position: absolute;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    width: 90%;
    max-width: 320px;
    background: rgba(255,255,255,0.98);
    border-radius: 20px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.map-choice-content h3 {
    margin-bottom: 20px;
    color: #1c1c1e;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.3px;
}

.map-choice-btn {
    display: block;
    width: 100%;
    padding: 16px;
    margin: 10px 0;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, #007AFF, #0063CC);
    color: white;
    font-size: 17px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.25);
}

.map-choice-btn:active {
    transform: scale(0.96);
    box-shadow: 0 1px 4px rgba(0, 122, 255, 0.2);
    background: linear-gradient(135deg, #0063CC, #004C99);
}

.map-choice-btn.cancel {
    background: rgba(142,142,147,0.12);
    color: #007AFF;
    font-weight: 600;
    box-shadow: none;
}

.map-choice-btn.cancel:active {
    background: rgba(142,142,147,0.18);
    transform: scale(0.98);
}

/* 移动端适配 */
@media (max-width: 768px) {
    body {
        height: 100vh;
        overflow: hidden;
    }

    .container {
        padding: 15px;
        height: 100%;
    }

    h1 {
        font-size: 24px;
        margin-bottom: 15px;
        font-weight: 700;
    }

    .search-box {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 10px;
        margin-bottom: 15px;
    }

    input {
        width: 100%;
        height: 46px;
        font-size: 17px;
        border-radius: 14px;
    }

    button {
        width: auto;
        min-width: 84px;
        height: 46px;
        padding: 0 24px;
        font-size: 17px;
        border-radius: 14px;
    }

    main {
        grid-template-columns: 1fr;
        gap: 16px;
        height: auto;
        padding: 0;
    }

    .stores-list {
        height: 42vh;
        border-radius: 16px;
    }

    #mapContainer {
        height: 48vh;
        border-radius: 16px;
    }

    .store-item {
        padding: 14px 16px;
    }

    .store-item h3 {
        font-size: 19px;
    }

    .store-item p {
        font-size: 17px;
    }

    .store-address {
        font-size: 17px;
    }

    .store-contact, .store-phone {
        font-size: 17px;
    }

    .store-area {
        font-size: 15px !important;
    }

    .stores-list-content::-webkit-scrollbar {
        width: 4px;
    }

    .stores-list-content::-webkit-scrollbar-thumb {
        background: linear-gradient(to bottom, #007AFF, #00C6FF);
        opacity: 0.8;
    }

    .stores-list::after,
    .stores-list::before {
        display: none;
    }
}

.no-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 40px;
    text-align: center;
    color: #8E8E93;
}

.no-results::before {
    content: "🏪";
    font-size: 56px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.no-results-text {
    font-size: 18px;
    margin-bottom: 12px;
    color: #1c1c1e;
    font-weight: 600;
    letter-spacing: -0.3px;
}

.no-results-tip {
    font-size: 15px;
    color: #6c7589;
    margin-top: 6px;
    line-height: 1.5;
} 