/* 门店查询页面样式 */

/* 门店查询介绍 */
.store-finder {
    padding: 100px 0;
}

.section-subtitle {
    text-align: center;
}

.store-finder-intro {
    text-align: center;
    margin-bottom: 50px;
}

.store-finder-title {
    font-size: 36px;
    margin-bottom: 20px;
}

.store-finder-text {
    max-width: 800px;
    margin: 0 auto;
}

/* 门店查询选项卡 */
.store-finder-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.store-tab {
    padding: 10px 30px;
    margin: 0 10px;
    font-family: var(--font-secondary);
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

.store-tab:hover {
    color: var(--accent-color);
}

.store-tab.active {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

/* 搜索区域 */
.store-search {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.combined-search {
    display: flex;
    max-width: 700px;
    width: 100%;
}

.combined-search input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid var(--medium-gray);
    border-left: none;
    background-color: var(--secondary-color);
    transition: all 0.3s ease;
    font-size: 14px;
}

.combined-search input:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(var(--accent-color-rgb), 0.2);
}

.combined-search select {
    padding: 12px 15px;
    border: 1px solid var(--medium-gray);
    background-color: var(--secondary-color);
    min-width: 150px;
    border-right: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' 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 10px center;
    background-size: 16px;
}

.combined-search select:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(var(--accent-color-rgb), 0.2);
}

.combined-search button {
    padding: 12px 20px;
    border-radius: 0 4px 4px 0;
    transition: all 0.3s ease;
}

.combined-search button:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* 视图切换 */
.store-view {
    display: none;
}

.store-view.active {
    display: block;
}

/* 地图视图 */
.store-map {
    width: 100%;
    height: 600px;
    background-color: var(--light-gray);
}

/* 列表视图 */
.store-list {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.store-city {
    margin-bottom: 20px;
}

.city-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--medium-gray);
}

.city-name {
    font-size: 24px;
    margin: 0;
}

.more-stores {
    display: flex;
    align-items: center;
    font-size: 14px;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 5px 10px;
    border-radius: 4px;
}

.more-stores:hover {
    color: var(--accent-color);
}

.more-stores::after {
    content: '\f107';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-left: 5px;
    font-size: 16px;
    transition: transform 0.3s ease;
}

.more-stores.expanded::after {
    transform: rotate(180deg);
}

/* 默认只显示前两个门店 */
.store-item:nth-child(n+3) {
    display: none;
}

/* 展开时显示所有门店 */
.store-city.expanded .store-item {
    display: flex;
}

.city-stores {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 30px;
}

.store-item {
    display: flex;
    background-color: var(--secondary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.store-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.store-image {
    width: 188px;
    height: 100%;
    overflow: hidden;
}

.store-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.store-item:hover .store-image img {
    transform: scale(1.05);
}

.store-info {
    flex: 1;
    padding: 15px;
}

.store-name {
    font-size: 18px;
    margin-bottom: 10px;
}

.store-address, .store-hours, .store-phone {
    font-size: 14px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
}

.store-address i, .store-hours i, .store-phone i {
    margin-right: 10px;
    color: var(--accent-color);
}

.store-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

/* 门店服务 */
.store-services {
    padding: 100px 0;
    background-color: var(--light-gray);
}

.services-title {
    font-size: 36px;
    text-align: center;
    margin-bottom: 20px;
}

.services-description {
    max-width: 800px;
    margin: 0 auto 50px;
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.service-item {
    text-align: center;
    padding: 30px;
    background-color: var(--secondary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 40px;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.service-title {
    font-size: 20px;
    margin-bottom: 10px;
}

.service-text {
    font-size: 14px;
}

/* 移动端服务卡片滑动样式 */
@media (max-width: 768px) {
    .services-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 15px;
        padding: 10px 0 25px; /* 增加底部内边距给指示条留空间 */
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
    }
    
    .services-grid::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }

    /* 滑动指示条容器 */
    .scroll-indicator {
        width: 100%;
        height: 4px;
        background-color: rgba(0,0,0,0.1);
        margin-top: 15px;
        position: relative;
    }

    /* 滑动指示条进度 */
    .scroll-progress {
        position: absolute;
        height: 100%;
        background-color: #8B6B3D; /* 深土金色 */
        border-radius: 2px;
        transition: width 0.2s ease;
    }
    
        .service-item {
        flex: 0 0 auto;
        scroll-snap-align: start;
        margin: 0 5px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
@media (max-width: 768px) {
    .service-item {
        min-width: 70vw;  /* 使用视口宽度单位 */
        width: 70vw;
        height: 70vw;     /* 根据视口比例调整高度 */
        max-height: 300px; /* 设置最大高度限制 */
        /* 其他样式保持不变 */
    }
}
    
    /* 调整内容布局适应新高度 */
    .service-text {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        margin-bottom: 10px;
    }
    
    .service-icon {
        margin-bottom: 10px;
    }
    
    .service-title {
        margin-bottom: 8px;
    }
}

/* 预约参观 */
.store-appointment {
    padding: 100px 0;
    background-image: url('../images/appointment-bg.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
}

.store-appointment::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

.appointment-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--secondary-color);
}

.appointment-title {
    font-size: 36px;
    margin-bottom: 20px;
}

.appointment-text {
    max-width: 600px;
    margin: 0 auto 30px;
}

/* 门店详情按钮样式 */
.store-actions .btn-outline {
    border-color: #333;
    color: #333;
}

.store-actions .btn-outline:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .city-stores {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .store-search {
        padding: 0 15px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .combined-search {
        width: 100%;
        max-width: 100%;
        display: flex;
        flex-wrap: nowrap;
    }
    
    .combined-search select {
        min-width: 100px;
        flex: 0 0 auto;
        height: 38px;
        padding: 8px 12px;
    }
    
    .combined-search input {
        flex: 1;
        min-width: 0;
        height: 38px;
        padding: 8px 12px;
    }
    
    .combined-search button {
        flex: 0 0 80px;
        height: 38px;
        padding: 0 10px;
        white-space: nowrap;
    }
    
    .store-map {
        height: 400px;
    }
    
    .city-stores {
        grid-template-columns: 1fr;
    }
    
    .store-item {
        flex-direction: column;
    }
    
    .store-image {
        width: 100%;
        height: 200px;
    }
}

@media (max-width: 576px) {
    .store-finder-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .store-tab {
        margin-bottom: 10px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
}