/* ========== 附近网点定位功能样式 ========== */

/* ========== PC端样式 ========== */

/* 板块容器 */
.nearby-section {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* 头部 */
.nearby-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.nearby-title {
    margin: 0;
    padding: 0;
    border: none;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    display: flex;
    align-items: center;
}

.nearby-icon {
    margin-right: 8px;
    font-size: 20px;
}

.nearby-tag {
    display: inline-block;
    font-size: 12px;
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 10px;
    font-weight: normal;
    vertical-align: middle;
}

.nearby-tag.gps-tag {
    background: #52c41a;
}

.nearby-tag.ip-tag {
    background: #1890ff;
}

.nearby-loading {
    font-size: 13px;
    color: #999;
}

/* 列表 */
.nearby-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.nearby-outlet-item {
    background: #fafafa;
    border: 1px solid #f0f0f0;
    border-radius: 6px;
    padding: 15px;
    transition: all 0.3s ease;
}

.nearby-outlet-item:hover {
    background: #fff;
    border-color: #1890ff;
    box-shadow: 0 2px 12px rgba(24,144,255,0.15);
    transform: translateY(-2px);
}

.nearby-outlet-item .outlet-name {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.nearby-outlet-item .outlet-name a {
    font-size: 15px;
    font-weight: bold;
    color: #333;
    text-decoration: none;
    margin-right: 8px;
}

.nearby-outlet-item .outlet-name a:hover {
    color: #1890ff;
}

.nearby-outlet-item .outlet-type {
    font-size: 11px;
    color: #fff;
    background: #fa8c16;
    padding: 1px 6px;
    border-radius: 3px;
    margin-right: 8px;
}

.nearby-outlet-item .outlet-distance {
    font-size: 12px;
    color: #f5222d;
    font-weight: bold;
    background: #fff1f0;
    padding: 2px 8px;
    border-radius: 10px;
}

.nearby-outlet-item .outlet-address,
.nearby-outlet-item .outlet-phone,
.nearby-outlet-item .outlet-hours {
    font-size: 13px;
    color: #666;
    margin: 4px 0;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nearby-outlet-item .outlet-actions {
    margin-top: 10px;
    display: flex;
    gap: 10px;
}

.nearby-outlet-item .btn-detail,
.nearby-outlet-item .btn-nav {
    display: inline-block;
    padding: 5px 14px;
    font-size: 12px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s;
}

.nearby-outlet-item .btn-detail {
    background: #1890ff;
    color: #fff;
}

.nearby-outlet-item .btn-detail:hover {
    background: #40a9ff;
}

.nearby-outlet-item .btn-nav {
    background: #52c41a;
    color: #fff;
}

.nearby-outlet-item .btn-nav:hover {
    background: #73d13d;
}

/* PC端响应式 */
@media screen and (max-width: 768px) {
    .nearby-list {
        grid-template-columns: 1fr;
    }
    .nearby-section {
        padding: 15px;
    }
    .nearby-title {
        font-size: 16px;
    }
}

/* ========== 手机端样式 ========== */

.wap-nearby-section {
    background: #fff;
    margin: 10px;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.wap-nearby-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}

.wap-nearby-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    display: flex;
    align-items: center;
}

.wap-nearby-tag {
    font-size: 11px;
    color: #fff;
    padding: 2px 6px;
    border-radius: 8px;
}

.wap-nearby-tag.gps-tag {
    background: #52c41a;
}

.wap-nearby-tag.ip-tag {
    background: #1890ff;
}

.wap-nearby-loading {
    font-size: 13px;
    color: #999;
    padding: 10px 0;
    text-align: center;
}

.wap-nearby-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wap-nearby-item {
    background: #f8f8f8;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 12px;
}

.wap-nearby-name {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.wap-nearby-name a {
    font-size: 15px;
    font-weight: bold;
    color: #333;
    text-decoration: none;
    margin-right: 6px;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wap-nearby-distance {
    font-size: 12px;
    color: #f5222d;
    font-weight: bold;
    background: #fff1f0;
    padding: 2px 6px;
    border-radius: 8px;
}

.wap-nearby-item .wap-outlet-info {
    font-size: 13px;
    color: #666;
    margin: 3px 0;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wap-nearby-item .wap-outlet-actions {
    margin-top: 8px;
    display: flex;
    gap: 8px;
}

.wap-nearby-item .wap-btn-detail,
.wap-nearby-item .wap-btn-call,
.wap-nearby-item .wap-btn-nav {
    flex: 1;
    text-align: center;
    padding: 6px 0;
    font-size: 12px;
    border-radius: 4px;
    text-decoration: none;
    color: #fff;
}

.wap-nearby-item .wap-btn-detail {
    background: #1890ff;
}

.wap-nearby-item .wap-btn-call {
    background: #52c41a;
}

.wap-nearby-item .wap-btn-nav {
    background: #fa8c16;
}

/* 加载动画 */
.nearby-loading::after,
.wap-nearby-loading::after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-left: 5px;
    border: 2px solid #ddd;
    border-top-color: #1890ff;
    border-radius: 50%;
    animation: nearby-spin 0.8s linear infinite;
    vertical-align: middle;
}

@keyframes nearby-spin {
    to { transform: rotate(360deg); }
}
