/* 场馆展示页面 - 小红书极简风格样式 */

/* 分类标签样式 */
.category-label {
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.2s ease;
    padding: 8px 0;
}

.category-label:hover {
    color: #1a4a7a;
}

.category-label.active {
    color: #1a4a7a;
    font-weight: 600;
    position: relative;
}

.category-label.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background-color: #1a4a7a;
    border-radius: 1px;
}

/* 场馆列表容器 */
.venue-list {
    display: flex;
    flex-direction: column;
    gap: 0; /* 移除间隙，改用分隔线 */
}

/* 场馆卡片样式 */
.venue-card {
    background: white;
    border-radius: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    min-height: 120px;
    width: 100%;
    max-width: none;
    border-bottom: 1px solid #f0f0f0; /* 添加简洁的分隔线 */
    padding: 16px 0; /* 添加上下内边距 */
}

.venue-card:hover {
    background: #f9fafb;
}

/* 移除最后一个卡片的分隔线 */
.venue-card:last-child {
    border-bottom: none;
}

/* 场馆图片区域 */
.venue-image {
    width: 36%; /* 减少10%：40% * 0.9 = 36% */
    min-width: 126px; /* 减少10%：140px * 0.9 = 126px */
    position: relative;
    overflow: hidden;
    border-radius: 8px 0 0 8px;
}

.venue-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.venue-card:hover .venue-image img {
    transform: scale(1.05);
}

/* 营业时间浮层 */
.business-hours {
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.25);
    color: white;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 500;
    white-space: nowrap;
    backdrop-filter: blur(4px);
}

/* 场馆信息区域 */
.venue-info {
    flex: 1;
    padding: 0 16px 16px 16px; /* 修改顶部内边距为0，保持左右下内边距 */
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* 场馆标题行 */
.venue-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0; /* 确保没有上边距 */
    padding-top: 0; /* 确保没有上内边距 */
}

/* 场馆标题 */
.venue-title {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
    line-height: 1.3;
}

/* 关注按钮 */
.follow-btn {
    background-color: #f3f4f6;
    color: #6b7280;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.follow-btn:hover {
    background-color: #e5e7eb;
    color: #374151;
}

/* 评分区域 */
.venue-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.star-icon {
    color: #ff6b6b;
    font-size: 14px;
}

.rating-score {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
}

.rating-comments {
    font-size: 12px;
    color: #6b7280;
}

/* 标签区域 */
.venue-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}

.sport-tag {
    background-color: #f3f4f6;
    color: #6b7280;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}


/* 奖牌标签样式 */
.award-text {
    background: #ff6b6b;
    color: white;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 3px;
}

.award-text::before {
    content: '🏅';
    font-size: 10px;
}

/* 地址区域 */
.venue-address {
    font-size: 12px;
    color: #6b7280;
}

/* 教练头像区域 */
.coach-avatars {
    display: flex;
    gap: 4px;
    margin-top: 4px;
}

.coach-avatar {
    width: 64px;
    height: 64px; /* 改为正方形以便做成圆形 */
    border-radius: 50%; /* 圆形 */
    object-fit: cover;
    border: none; /* 无边框，扁平化 */
    transition: transform 0.2s ease;
}

.coach-avatar:hover {
    transform: scale(1.1);
    z-index: 10;
    position: relative;
}


/* 响应式设计 */
@media (max-width: 768px) {
    .venue-card {
        /* 保持左右结构，不改为上下结构 */
        flex-direction: row;
        min-height: 103px;
        border-radius: 0;
    }
    
    .venue-image {
        width: 31.5%; /* 减少10%：35% * 0.9 = 31.5% */
        min-width: 90px; /* 减少10%：100px * 0.9 = 90px */
        height: auto;
    }
    
    .venue-info {
        padding: 0 12px 12px 12px; /* 修改顶部内边距为0，保持左右下内边距 */
        flex: 1;
    }
    
    .venue-title {
        font-size: 16px;
        margin-bottom: 6px;
    }
    
    .venue-intro {
        -webkit-line-clamp: 2;
        font-size: 13px;
    }
    
    .coach-avatar {
        width: 53px;
        height: 53px; /* 改为正方形圆形 */
    }
    
    .sport-tag {
        font-size: 10px;
        padding: 1px 4px;
    }
}

@media (max-width: 480px) {
    .venue-list {
        gap: 0; /* 保持无间隙，使用分隔线 */
    }
    
    .venue-card {
        border-radius: 0;
        /* 继续保持左右结构 */
        flex-direction: row;
        min-height: 94px;
    }
    
    .venue-image {
        width: 32%;
        min-width: 90px;
        height: auto;
    }
    
    .venue-info {
        padding: 0 5px 5px 5px; /* 修改顶部内边距为0，保持左右下内边距 */
        flex: 1;
    }
    
    .venue-title {
        font-size: 15px;
        margin-bottom: 4px;
    }
    
    .venue-intro {
        font-size: 12px;
        -webkit-line-clamp: 2;
    }
    
    .venue-address {
        font-size: 12px;
    }
    
    .coach-avatar {
        width: 48px;
        height: 48px; /* 改为正方形圆形 */
    }
    
    .sport-tag {
        font-size: 12px;
        padding: 1px 3px;
    }
    
    .award-text {
        font-size: 12px;
        padding: 2px 6px;
    }
    
    .rating-score {
        font-size: 13px;
    }
    
    .rating-comments {
        font-size: 12px;
    }
}

/* 加载动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.venue-card {
    animation: fadeInUp 0.6s ease forwards;
}

.venue-card:nth-child(1) { animation-delay: 0.1s; }
.venue-card:nth-child(2) { animation-delay: 0.2s; }
.venue-card:nth-child(3) { animation-delay: 0.3s; }
.venue-card:nth-child(4) { animation-delay: 0.4s; }
.venue-card:nth-child(5) { animation-delay: 0.5s; }

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* 加载更多指示器 */
.load-more-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px;
    color: #6b7280;
    font-size: 14px;
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #e5e7eb;
    border-top: 2px solid #6b7280;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 加载完毕提示 */
.load-complete-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    color: #9ca3af;
    font-size: 14px;
    font-weight: 500;
}

/* 基础排序下拉菜单 */
.basic-sort-select {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px 0;
    outline: none;
}

.basic-sort-select:focus {
    outline: none;
    border: none;
    box-shadow: none;
}

/* 场馆标题和电话图标 */
.venue-title-with-phone {
    display: flex;
    align-items: center;
    gap: 6px;
}

.phone-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    text-decoration: none;
    color: #f9a0a7;
    transition: all 0.2s ease;
    padding: 4px;
    border-radius: 6px;
}

.phone-icon svg {
    width: 100%;
    height: 100%;
}

.phone-icon:hover {
    color: #ca8a04;
    background-color: #fefce8;
    transform: scale(1.1);
}

.phone-icon:active {
    transform: scale(0.95);
}

/* 教练头像链接 */
.coach-link {
    display: inline-block;
    text-decoration: none;
}

.coach-link .coach-avatar {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.coach-link:hover .coach-avatar {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* 场馆图片和标题链接样式 */
.venue-image {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease;
}

.venue-image:hover {
    transform: scale(1.02);
}

.venue-title-link {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

.venue-title-link:hover .venue-title {
    color: #ff4757;
}