* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'PingFang SC', 'Helvetica Neue', 'Microsoft YaHei', sans-serif;
}

/* 头部面包屑 */
.breadcrumb {
    padding: 20px 24px 0;
    font-size: 14px;
    color: #888;
}

.breadcrumb span:last-child {
    color: #333;
    font-weight: 500;
}

/* 筛选栏 */
.filter-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 10px 0 20px 0;
    flex-wrap: wrap;
}

.region-selector {
    display: flex;
    align-items: center;
    gap: 8px;
}

.region-selector select {
    height: 50px;
    padding: 8px 16px;
    border-radius: 10px;
    border: 1px solid #F5EBDF;
    background: white;
    font-size: 14px;
    outline: none;
    cursor: pointer;
    min-width: 120px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px;
}

.name-search {
    position: relative;
    flex: 1;
    min-width: 280px;
    display: flex;
    align-items: center;
    border: 1px solid #F5EBDF;
    border-radius: 10px;
}

.name-search input {
    width: 100%;
    height: 50px;
    padding: 0 36px 0 16px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    outline: none;
    transition: all 0.2s;
}

.name-search input:focus {
    border: none;
}

.search-clear {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: #ccc;
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    font-weight: bold;
    opacity: 0.8;
    transition: 0.2s;
}

.search-clear:hover {
    opacity: 1;
    background: #999;
}

.search-clear.hide {
    display: none;
}

/* 搜索下拉候选 */
.search-suggest {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    max-height: 280px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    padding: 8px 0;
}

.search-suggest.show {
    display: block;
}

.suggest-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
}

.suggest-item:hover {
    background-color: #f5f9fc;
}

.suggest-img {
    width: 40px;
    height: 40px;
    background: #e1eef6;
    border-radius: 8px;
    flex-shrink: 0;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40" fill="%23b0c4d9"><rect width="40" height="40" /><text x="8" y="26" font-size="16" fill="%23607d8b">🏥</text></svg>');
    background-size: cover;
}

.suggest-info {
    flex: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.suggest-name {
    font-weight: 500;
    font-size: 15px;
    color: #333333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    margin-right: 10px;
}

.suggest-addr {
    font-size: 13px; /* 字号比名称小一点 */
    color: #999;     /* 灰色 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 40%;  /* 限制地址最大宽度 */
    text-align: right;
}

/* 关键字高亮样式 */
.highlight {
    color: #B98751; /* 蓝色 */
    font-weight: bold;
}

.reset-btn {
    width: 90px;
    height: 50px;
    background-color: #B98751;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 400;
    color: #FFFFFF;
    cursor: pointer;
    transition: 0.2s;
    white-space: nowrap;
}

/* 主内容区：地图 + 右侧面板 */
.main-panel {
    display: flex;
    width: 1300px;
    height: 810px;
    padding: 30px;
    margin-bottom: 60px;
    border-radius: 10px;
    background-color: #FFFFFF;
    gap: 30px;
}

#map-container {
    flex: 1;
    border-radius: 10px;
}

.info-panel {
    width: 384px;
    border-radius: 6px;
    background: #FFFFFF;
    transition: all 0.2s;
}

.info-panel.empty {
    display: flex;
    background: #F6F6F6;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 14px;
}

.default-illustration {
    width: 244px;
    height: 244px;
    background: url('../assets/images/empty_tip.png') no-repeat center;
    background-size: cover;
}

/* 门店详情卡片 */
.shop-detail .shop-name {
    font-size: 22px;
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.shop-tags {
    display: flex;
    gap: 8px;
    margin: 8px 0 12px;
    flex-wrap: wrap;
}

.tag {
    background: linear-gradient( 270deg, #BF9770 0%, #895C2D 100%);
    color: #FFFFFF;
    font-size: 14px;
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 400;
}

.info-row {
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
}


.info-row .info-content {
    flex: 1;
    word-break: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

/* 省份聚合标记 */
.province-marker {
    background: rgba(27, 123, 158, 0.9);
    color: white;
    border-radius: 50%; /* 圆形 */
    width: 40px;       /* 固定宽高 */
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: transform 0.2s ease;
}

/* 移除不再需要的 .prov-name 样式 */

.province-marker .prov-count {
    font-size: 14px;
    font-weight: bold;
    line-height: 1;
}

.province-marker:hover {
    transform: scale(1.1);
    z-index: 999;
}

/* 门店标签样式 */
.amap-marker img,
.amap-icon img,
.amap-layer img {
    max-width: none !important;
}

.amap-marker-label {
    border: none !important;
    background-color: transparent !important;
}

.store-label {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    color: #333333;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    white-space: nowrap;
    font-weight: 500;
    position: relative;
    top: 5px; /* 微调位置 */
}

.store-label:hover {
    background-color: #B98751;
    border-color: #B98751;
    color: #FFFFFF;
    z-index: 1000;
}

.photo-gallery {
    margin: 20px 0;
}

.main-photo {
    width: 100%;
    height: 216px;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    margin-bottom: 10px;
}

.thumb-list {
    display: flex;
    gap: 10px;
    width: 100%;
    overflow-x: auto;
    /* 隐藏滚动条但保留功能 */
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.thumb-list::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.thumb-item {
    width: 88px;
    height: 66px;
    border-radius: 10px;
    cursor: pointer;
    border: 2px solid transparent;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.thumb-item.active {
    border-color: #1B7B9E;
}

/* 医师区域 */
.doctor-section {
    margin-top: 20px;
}

.doctor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.doctor-title {
    font-weight: 600;
    font-size: 16px;
    color: #333;
}

.header-controls {
    display: flex;
    gap: 12px;
}

.carousel-arrow.small {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    user-select: none;
    transition: all 0.2s;
}

.carousel-arrow.small:hover {
    background: #f0f0f0;
    border-color: #999;
    color: #333;
}

.doctor-carousel {
    position: relative;
}

.doctor-card {
    display: flex;
    gap: 16px;
    background: #fff;
    /* 去除原有的圆角和背景，因为设计图看起来更像平铺 */
}

.doctor-avatar {
    width: 170px;
    height: 198px; /* 3:4 比例 */
    border-radius: 9px;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 12px;
    flex-direction: column;
}

.doctor-avatar.no-photo {
    background: #f5f5f5;
    color: #bbb;
}

.doctor-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    align-items: flex-start;
}

.doctor-name-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 14px;
}

.doctor-name {
    font-weight: 500;
    font-size: 18px;
    color: #734C22;
    /* 姓名最多一行 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px; /* 限制名字宽度，给职称留位置 */
}

.doctor-title-tag {
    font-size: 12px;
    color: #734C22;
    border: 1px solid #734C22;
    padding: 1px 2px;
    border-radius: 4px;
    white-space: nowrap;
}

.doctor-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 7;
    -webkit-box-orient: vertical;
    position: relative;
    cursor: pointer;
}

/* 缺省图 */
.no-data {
    text-align: center;
    color: #aaa;
    padding: 40px 0;
}

.toast-tip {
    position: fixed;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 14px;
    z-index: 2000;
}