/* ========== 商家信息页特有样式 ========== */

/* 主内容区：左右布局 */
.main-content {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
    min-height: calc(100vh - 180px);
}

/* 左侧商家列表 */
.business-list-container {
    flex: 1;
    background: rgba(26, 31, 60, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(42, 50, 80, 0.6);
    min-width: 0;
    max-width: 25%;
    display: flex;
    flex-direction: column;
}

.business-list-container h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #4d8af0;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 地图控制面板 */
.map-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.control-btn {
    flex: 1;
    padding: 10px 15px;
    background: rgba(77, 138, 240, 0.2);
    border: 1px solid rgba(77, 138, 240, 0.3);
    border-radius: 8px;
    color: #4d8af0;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.control-btn:hover {
    background: rgba(77, 138, 240, 0.3);
    border-color: #4d8af0;
}

.control-btn.active {
    background: rgba(77, 138, 240, 0.4);
    border-color: #4d8af0;
    box-shadow: 0 0 10px rgba(77, 138, 240, 0.3);
}

/* 商家列表 */
.business-list {
    flex: 1;
    overflow-y: auto;
    padding-right: 10px;
	max-height: calc(78vh - 100px);
	    overflow: auto;
}

.business-list::-webkit-scrollbar {
    width: 6px;
}

.business-list::-webkit-scrollbar-thumb {
    background: #4d8af0;
    border-radius: 3px;
}

.business-item {
    background: rgba(42, 50, 80, 0.5);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.business-item:hover {
    background: rgba(42, 50, 80, 0.7);
    border-color: rgba(77, 138, 240, 0.3);
    transform: translateY(-2px);
}

.business-item.active {
    background: linear-gradient(135deg, rgba(26, 31, 60, 0.9), rgba(77, 138, 240, 0.1));
    border-color: #4d8af0;
    box-shadow: 0 4px 20px rgba(77, 138, 240, 0.3);
}

.business-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: linear-gradient(180deg, #4d8af0, #20c6b7);
    border-radius: 12px 0 0 12px;
}

.business-item.active::after {
    content: '当前选中';
    position: absolute;
    top: 10px;
    right: 10px;
    background: #4d8af0;
    color: white;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 0.8; }
    50% { opacity: 1; }
    100% { opacity: 0.8; }
}

.business-name {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.business-name .badge {
    font-size: 12px;
    padding: 2px 8px;
    background: rgba(77, 138, 240, 0.2);
    color: #4d8af0;
    border-radius: 10px;
}

.business-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.business-info-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #a0a7d0;
    font-size: 14px;
    line-height: 1.4;
}

.business-info-item i {
    color: #4d8af0;
    margin-top: 2px;
    min-width: 16px;
}

.business-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.action-btn {
    flex: 1;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: none;
    outline: none;
}

.action-btn.call {
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.2), rgba(39, 174, 96, 0.1));
    color: #27ae60;
    border: 1px solid rgba(39, 174, 96, 0.3);
}

.action-btn.call:hover {
    background: rgba(39, 174, 96, 0.3);
    transform: translateY(-1px);
}

.action-btn.navigate {
    background: linear-gradient(135deg, rgba(77, 138, 240, 0.2), rgba(77, 138, 240, 0.1));
    color: #4d8af0;
    border: 1px solid rgba(77, 138, 240, 0.3);
}

.action-btn.navigate:hover {
    background: rgba(77, 138, 240, 0.3);
    transform: translateY(-1px);
}

.action-btn.details {
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.2), rgba(155, 89, 182, 0.1));
    color: #9b59b6;
    border: 1px solid rgba(155, 89, 182, 0.3);
}

.action-btn.details:hover {
    background: rgba(155, 89, 182, 0.3);
    transform: translateY(-1px);
}

/* 右侧地图 */
.map-container {
    flex: 2;
    min-height: 600px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(42, 50, 80, 0.6);
    min-width: 0;
    position: relative;
}

#bmap {
    width: 100%;
    height: 100%;
    position: absolute;
}

/* 地图覆盖层 */
.map-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    pointer-events: none;
}

.map-overlay > * {
    pointer-events: auto;
}

/* 地图信息窗口 */
.map-info-window {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: linear-gradient(135deg, rgba(26, 31, 60, 0.95), rgba(20, 25, 50, 0.95));
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 16px;
    border: 1px solid rgba(77, 138, 240, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    z-index: 100;
    transform: translateY(100%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.map-info-window.active {
    transform: translateY(0);
    opacity: 1;
}

.map-info-window h3 {
    color: #4d8af0;
    margin-bottom: 15px;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.map-info-window h3 i {
    font-size: 18px;
}

.map-info-content {
    color: #e0e0ff;
    font-size: 14px;
    line-height: 1.6;
}

.map-info-content p {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.map-info-content p:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.map-info-content i {
    color: #4d8af0;
    min-width: 16px;
    margin-top: 2px;
}

.map-info-content a {
    color: #4d8af0;
    text-decoration: none;
    transition: color 0.3s;
}

.map-info-content a:hover {
    color: #20c6b7;
    text-decoration: underline;
}

.map-info-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 20px;
}

.map-control-buttons {
    display: flex;
    gap: 10px;
    background: rgba(26, 31, 60, 0.8);
    padding: 10px;
    border-radius: 10px;
    backdrop-filter: blur(5px);
}

.overlay-btn {
    background: rgba(77, 138, 240, 0.2);
    border: 1px solid rgba(77, 138, 240, 0.3);
    color: #4d8af0;
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.overlay-btn:hover {
    background: rgba(77, 138, 240, 0.3);
    transform: translateY(-1px);
}

.overlay-btn.active {
    background: rgba(77, 138, 240, 0.4);
    border-color: #4d8af0;
    box-shadow: 0 2px 8px rgba(77, 138, 240, 0.3);
}

.map-status {
    background: rgba(26, 31, 60, 0.8);
    color: #a0a7d0;
    padding: 8px 15px;
    border-radius: 10px;
    font-size: 13px;
    backdrop-filter: blur(5px);
    max-width: 300px;
}

.map-status i {
    color: #4d8af0;
    margin-right: 5px;
}

/* 搜索框 */
.search-container {
    margin-bottom: 20px;
    position: relative;
}

.search-box {
    width: 100%;
    padding: 12px 20px 12px 45px;
    background: rgba(42, 50, 80, 0.5);
    border: 1px solid rgba(77, 138, 240, 0.3);
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    transition: all 0.3s ease;
}

.search-box:focus {
    outline: none;
    border-color: #4d8af0;
    box-shadow: 0 0 0 2px rgba(77, 138, 240, 0.2);
}

.search-box::placeholder {
    color: #a0a7d0;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #4d8af0;
}

.search-clear {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #a0a7d0;
    cursor: pointer;
    transition: color 0.3s;
}

.search-clear:hover {
    color: #ff6b6b;
}

/* 筛选标签 */
.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.filter-tag {
    padding: 6px 12px;
    background: rgba(42, 50, 80, 0.5);
    border: 1px solid rgba(77, 138, 240, 0.3);
    border-radius: 20px;
    color: #a0a7d0;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-tag:hover,
.filter-tag.active {
    background: rgba(77, 138, 240, 0.2);
    color: #4d8af0;
    border-color: #4d8af0;
}

/* 统计数据 */
.stats-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.stat-card {
    background: linear-gradient(135deg, rgba(42, 50, 80, 0.6), rgba(32, 38, 70, 0.6));
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    border: 1px solid rgba(77, 138, 240, 0.1);
    transition: all 0.3s ease;
	min-width: 80px;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.stat-number {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(90deg, #4d8af0, #20c6b7);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 5px;
    line-height: 1;
}

.stat-label {
    font-size: 12px;
    color: #a0a7d0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 无结果提示 */
.no-results {
    text-align: center;
    padding: 40px 20px;
    color: #a0a7d0;
    background: rgba(42, 50, 80, 0.3);
    border-radius: 12px;
    margin-top: 10px;
}

.no-results i {
    font-size: 48px;
    margin-bottom: 20px;
    color: #4d8af0;
    opacity: 0.5;
}

.no-results h3 {
    color: #fff;
    margin-bottom: 10px;
    font-size: 18px;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .main-content {
        flex-direction: column;
    }

    .business-list-container {
        max-width: 100%;
    }
    
    .map-container {
        min-height: 500px;
    }
    
    .map-overlay {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 1024px) {
	.business-list-container{padding: 15px 5px;}
	.business-list{max-height: calc(48vh - 100px);}
	.business-name{font-size: 0.875rem;}
	.business-name .badge{font-size: 0.5rem;}
	.business-info-item{font-size: 13px;}
}
@media (max-width: 768px) {
    .business-list-container {
        padding: 12px 8px;
    }
    
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .map-info-actions {
        grid-template-columns: 1fr;
    }
    
    .map-control-buttons {
        flex-wrap: wrap;
    }
	.business-actions .action-btn{
	    padding:8px 8px;font-size: 0.7rem;
	}
	.map-container{max-height: 320px; min-height: 300px;}
}

@media (max-width: 576px) {
    .stats-container {
        grid-template-columns: 1fr;
    }
    
  
    
    .map-info-window {
        left: 10px;
        right: 10px;
        bottom: 10px;
        padding: 15px;
    }
    
    .map-controls {
        flex-direction: column;
    }
}



/* 微信二维码相关样式 */
.action-btn.wechat {
    background: linear-gradient(135deg, #07c160, #059c4a);
    color: white;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 420px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.3);
    overflow: hidden;
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from { transform: translateY(40px) scale(0.95); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 26px;
    border-bottom: 1px solid #eee;
    background: linear-gradient(135deg, #07c160, #059c4a);
    color: white;
    position: relative;
}

.modal-header h3 {
    margin: 0;
    font-size: 19px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
    line-height: 1;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.close-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: rotate(90deg);
}

.modal-body {
    padding: 28px;
}

.qr-container {
    text-align: center;
    margin-bottom: 28px;
}

.qr-code-container {
    width: 180px;
    height: 180px;
    margin: 0 auto 20px;
    padding: 12px;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.qr-tip {
    color: #07c160;
    font-size: 15px;
    font-weight: 500;
    margin: 15px 0 25px;
    padding: 10px;
    background: #f0fff8;
    border-radius: 10px;
    border: 1px dashed #07c160;
}

.wechat-info {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 18px;
    margin-top: 15px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: #333;
    font-size: 15px;
}

.info-item i {
    color: #07c160;
    width: 22px;
    font-size: 18px;
}

.wechat-guide {
    background: #f0f7ff;
    border-radius: 12px;
    padding: 20px;
    margin-top: 25px;
    border-left: 4px solid #4d8af0;
}

.wechat-guide h4 {
    margin: 0 0 12px 0;
    color: #333;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wechat-guide ol {
    margin: 0;
    padding-left: 22px;
    color: #555;
    font-size: 14px;
    line-height: 1.7;
}

.wechat-guide li {
    margin-bottom: 8px;
    padding-left: 5px;
}

.modal-footer {
    display: flex;
    gap: 12px;
    padding: 20px 26px;
    border-top: 1px solid #eee;
    background: #f8f9fa;
}

.btn-secondary, .btn-primary {
    flex: 1;
    padding: 14px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-secondary {
    background: white;
    color: #666;
    border: 1px solid #ddd;
}

.btn-primary {
    background: linear-gradient(135deg, #07c160, #059c4a);
    color: white;
}

.btn-secondary:hover {
    background: #f5f5f5;
    border-color: #bbb;
    transform: translateY(-2px);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 18px rgba(7, 193, 96, 0.3);
}

/* 提示信息样式 */
.toast {
    position: fixed;
    top: 30px;
    right: 30px;
    padding: 15px 22px;
    border-radius: 10px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    z-index: 10001;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideInRight 0.3s ease, slideOutRight 0.3s ease 2.7s;
    max-width: 350px;
}

.toast.success {
    background: linear-gradient(135deg, #07c160, #059c4a);
}

.toast.error {
    background: linear-gradient(135deg, #ff4444, #d63031);
}

.toast.info {
    background: linear-gradient(135deg, #4d8af0, #3a7bd5);
}
.view-toggle {
  display: flex;
  gap: 8px; /* 按钮间距 */
  background: #f5f7fa;
  padding: 6px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  max-width: fit-content;
  margin: 0 0 15px 0;
}

.toggle-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: none;
  background: transparent;
  color: #5a6b8c;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
}

.toggle-btn:hover {
  background: #eef2f7;
  color: #3b5998;
}

.toggle-btn.active {
  background: #3b5998;
  color: white;
  box-shadow: 0 2px 4px rgba(59, 89, 152, 0.2);
}

.toggle-btn i {
  font-size: 16px;
}
@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOutRight {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

/* 响应式调整 */
@media (max-width: 600px) {
    .modal-content {
        width: 95%;
        max-width: 350px;
    }
    
    .modal-body {
        padding: 22px;
    }
    
    .qr-code-container {
        width: 150px;
        height: 150px;
    }
}