/**
 * 门店页面样式 - 桌面端优先，移动端适配
 * 适用于 stores.php
 * 重写日期：2026-05-17
 */

/* ========== 页面横幅 ========== */
.page-banner {
    background: linear-gradient(135deg, #1a2c5a 0%, #2a4a8a 100%);
    color: #fff;
    text-align: center;
    padding: 60px 20px;
}

.page-banner h1 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.page-banner p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.75);
}

/* ========== 筛选栏 ========== */
.stores-filter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 25px 30px;
    margin: 30px auto;
    max-width: 1200px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    flex-wrap: wrap;
}

.stores-filter .filter-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.stores-filter .filter-label {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
}

.stores-filter select {
    padding: 10px 35px 10px 15px;
    font-size: 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    min-width: 160px;
    cursor: pointer;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23999' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    transition: border-color 0.3s ease;
}

.stores-filter select:focus {
    border-color: #667eea;
}

.stores-filter .filter-tip {
    width: 100%;
    text-align: center;
    font-size: 13px;
    color: #667eea;
    font-weight: 500;
    margin-top: 5px;
}

/* ========== 门店列表容器 ========== */
.stores-list {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== 单个门店卡片 - 桌面端横向 ========== */
.store-item {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 22px 28px;
    margin-bottom: 16px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.store-item:hover {
    box-shadow: 0 6px 24px rgba(102, 126, 234, 0.18);
    border-color: #667eea;
    transform: translateY(-2px);
}

/* 门店图片 */
.store-item .store-image {
    width: 110px;
    height: 110px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
    background: #f5f7fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.store-item .store-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.4s ease;
}

.store-item:hover .store-image img {
    transform: scale(1.05);
}

/* 门店信息 */
.store-item .store-info {
    flex: 1;
    min-width: 0;
}

.store-item .store-info h3 {
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 600;
}

.store-item .store-info .detail p {
    font-size: 14px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 4px;
}

.store-item .store-info .detail p i {
    margin-right: 6px;
    color: #667eea;
}

/* 操作按钮 */
.store-item .store-action {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
}

.store-item .store-action a {
    padding: 10px 22px;
    font-size: 14px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    text-align: center;
    min-width: 110px;
    transition: all 0.3s ease;
}

.store-item .store-action .btn-nav {
    background: #667eea;
    color: #fff;
}

.store-item .store-action .btn-nav:hover {
    background: #5a6fd8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.store-item .store-action .btn-detail {
    background: #f8f9fa;
    color: #333;
    border: 2px solid #e0e0e0;
}

.store-item .store-action .btn-detail:hover {
    background: #667eea;
    color: #fff;
    border-color: #667eea;
    transform: translateY(-1px);
}

.store-item .store-action .btn-book {
    background: #f8f9fa;
    color: #333;
    border: 2px solid #e0e0e0;
}

.store-item .store-action .btn-book:hover {
    background: #667eea;
    color: #fff;
    border-color: #667eea;
    transform: translateY(-1px);
}

/* ========== 加载/空数据提示 ========== */
.stores-list .loading,
.stores-list .no-data {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 16px;
}

/* ========== 分页 ========== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0 60px;
    gap: 8px;
    flex-wrap: wrap;
}

.pagination button {
    padding: 8px 14px;
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s;
    font-size: 14px;
}

.pagination button:hover:not(:disabled) {
    background: #667eea;
    color: #fff;
    border-color: #667eea;
}

.pagination button.active {
    background: #667eea;
    color: #fff;
    border-color: #667eea;
}

.pagination button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination .page-info {
    color: #666;
    font-size: 13px;
    margin: 0 10px;
}

/* ========== 平板端适配（≤992px） ========== */
@media (max-width: 992px) {
    .page-banner {
        padding: 40px 20px;
    }

    .page-banner h1 {
        font-size: 26px;
    }

    .stores-filter {
        padding: 20px;
        margin: 20px 15px;
    }

    .stores-filter .filter-group {
        width: 100%;
    }

    .stores-filter .filter-item {
        flex: 1;
        min-width: 45%;
    }

    .stores-filter select {
        width: 100%;
    }

    .store-item {
        padding: 18px;
        gap: 18px;
    }
}

/* ========== 移动端（≤768px） ========== */
@media (max-width: 768px) {
    .page-banner {
        padding: 30px 15px;
    }

    .page-banner h1 {
        font-size: 22px;
    }

    .page-banner p {
        font-size: 14px;
    }

    .stores-filter {
        flex-direction: column;
        align-items: stretch;
        padding: 15px;
        margin: 15px 10px;
        gap: 10px;
    }

    .stores-filter .filter-item {
        min-width: 100%;
    }

    .stores-filter select {
        width: 100%;
        font-size: 15px;
        padding: 12px 35px 12px 12px;
    }

    .stores-list {
        padding: 0 10px;
    }

    .store-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px;
        gap: 12px;
    }

    .store-item .store-image {
        width: 100%;
        height: 160px;
        align-self: center;
    }

    .store-item .store-info h3 {
        font-size: 16px;
    }

    .store-item .store-info .detail p {
        font-size: 13px;
    }

    .store-item .store-action {
        flex-direction: row;
        width: 100%;
    }

    .store-item .store-action a {
        flex: 1;
        padding: 10px 12px;
        font-size: 13px;
    }
}

/* ========== 小屏手机（≤375px） ========== */
@media (max-width: 375px) {
    .page-banner h1 {
        font-size: 20px;
    }

    .store-item .store-image {
        height: 130px;
    }

    .pagination button {
        padding: 8px 10px;
        font-size: 13px;
    }
}
