/* 场馆详情页面样式 - 小红书极简风格 */

/* 基础样式重置 - 限制作用域，避免影响头部底部 */
.venue-info-container * {
    box-sizing: border-box;
}

.venue-info-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background-color: #fff;
    color: #333;
    line-height: 1.6;
}

/* 固定顶部返回栏 */
.fixed-header {
    position: fixed;
    top: 48px; /* 与s_venue/index.php保持一致 */
    left: 0;
    right: 0;
    height: 48px; /* 调整高度与index.php一致 */
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    z-index: 999; /* 降低z-index，避免覆盖公共头部 */
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.back-button {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.back-button:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.header-actions {
    display: flex;
    gap: 10px;
}

.header-share-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.header-share-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* 关注按钮样式 */
.header-follow-btn {
    padding: 6px 12px;
    background: #f8f9fa;
    color: #333;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.header-follow-btn:hover {
    background: #e9ecef;
    transform: translateY(-1px);
}

.header-follow-btn:active {
    transform: translateY(0);
}

.header-follow-btn.following {
    background: #ffffff;
    color: #ff3742;
    border: 1px solid #ff4757;
}

.header-follow-btn.following:hover {
    background: #e9ecef;
    border-color: #ff3742;
}

/* 主容器 */
.venue-info-container {
    padding-top: 96px; /* 48px(公共头部) + 48px(页面头部) */
    padding-bottom: 140px; /* 60px(公共底部) + 80px(页面底部) */
    min-height: 100vh;
}

/* 场馆图片轮播 */
.venue-gallery {
    position: relative;
    width: 100%;
    height: 270px; /* 减少10%：300px * 0.9 = 270px */
    overflow: hidden;
}

.image-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.image-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.image-slide.active {
    opacity: 1;
}

.image-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.2s;
}

.indicator.active {
    background: #fff;
}

/* 场馆基本信息 */
.venue-basic-info {
    padding: 10px;
    background: #fff;
}

.venue-title-phone {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.venue-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    flex: 1;
}

.phone-button {
    width: 40px;
    height: 40px;
    background: #ff4757;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.2s;
}

.phone-button:hover {
    transform: scale(1.05);
}

.phone-button svg {
    stroke: #fff;
}

.venue-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

/* 移除旧的星级样式 */
/* .stars {
    display: flex;
    gap: 2px;
}

.star {
    color: #ddd;
    font-size: 14px;
}

.star.filled {
    color: #ff6b6b;
} */

/* 添加与s_venue/index.php一致的星级样式 */
.star-icon {
    color: #ff6b6b;
    font-size: 14px;
}

.rating-score {
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

.ranking-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;
}

.ranking-text::before {
    content: '🏅';
    font-size: 10px;
}

.venue-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

.detail-text {
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

/* 场馆简介 */
.venue-intro-section {
    padding: 0 10px 10px;
    background: #fff;
}

.venue-intro {
    border-top: 1px solid #f0f0f0;
    padding-top: 10px;
}

.intro-text {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 教练团队 */
.coach-team-section {
    padding: 10px;
    background: #fff;
    border-top: 8px solid #f8f9fa;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

/* 教练团队容器 - 响应式网格布局 */
.coach-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    max-width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
}

.coach-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s;
    flex: 1;
    max-width: 20%; /* 每个项目占20%宽度 */
    text-decoration: none; /* 移除链接下划线 */
    color: inherit; /* 继承父元素颜色 */
}

.coach-item:hover {
    transform: translateY(-2px);
}

/* 教练头像容器 */
.coach-avatar {
    width: 100%;
    aspect-ratio: 1;
    max-width: 70px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 8px;
    border: none; /* 移除边框，简约扁平化 */
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.coach-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* 我要加入头像样式 */
.join-avatar {
    background: #f8f9fa;
    border: 2px dashed #ddd !important; /* 虚线边框 */
    color: #999;
    transition: all 0.2s;
}

.join-item:hover .join-avatar {
    background: #ff4757;
    border-color: #ff4757 !important;
    color: #fff;
}

/* 教练姓名 */
.coach-name {
    font-size: 12px;
    color: #666;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    max-width: 70px;
}

.join-item:hover .coach-name {
    color: #ff4757;
}

/* 移动端优化 */
@media (max-width: 480px) {
    .coach-container {
        padding: 0 10px;
    }
    
    .coach-avatar {
        max-width: 60px;
    }
    
    .coach-name {
        font-size: 11px;
        max-width: 60px;
    }
    
    /* 添加小屏幕下的ranking-text样式 */
    .ranking-text {
        font-size: 12px;
        padding: 2px 6px;
    }
}

@media (max-width: 320px) {
    .coach-container {
        padding: 0 8px;
    }
    
    .coach-avatar {
        max-width: 50px;
    }
    
    .coach-name {
        font-size: 10px;
        max-width: 50px;
    }
}

/* 评论区域样式 */
.comments-header {
    padding: 10px 10px 15px;
    background: #fff;
    border-top: 8px solid #f8f9fa;
}

.comments-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.comment-input-section {
    padding: 0 20px 20px;
    background: #fff;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.user-avatar {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.comment-input-wrapper {
    flex: 1;
    display: flex;
    gap: 10px;
    align-items: center;
}

.comment-input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.comment-input:focus {
    border-color: #007bff;
}

.send-btn {
    padding: 8px 16px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 15px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.send-btn:hover {
    background: #ff3742;
}

.comments-list {
    background: #fff;
    padding: 0 20px;
}

.comment-item {
    display: flex;
    gap: 12px;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-avatar {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

.comment-username {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.comment-location {
    font-size: 12px;
    color: #999;
}

.comment-text {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 8px;
}

.comment-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.comment-time {
    font-size: 12px;
    color: #999;
}

.comment-like-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 12px;
    transition: all 0.2s;
}

.comment-like-btn:hover {
    background: rgba(255, 71, 87, 0.1);
    color: #ff4757;
}

.comment-like-btn.liked {
    color: #ff4757;
}

.comment-like-btn.liked svg {
    fill: #ff4757;
}

.like-count {
    font-size: 12px;
}

.end-tip {
    text-align: center;
    padding: 30px 20px;
    color: #999;
    font-size: 14px;
    background: #fff;
}

/* 固定底部操作栏 */
.fixed-bottom-bar {
    position: fixed;
    bottom: 60px; /* 调整到公共底部上方 */
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #e0e0e0;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 999; /* 降低z-index，避免覆盖公共底部 */
}

.comment-input-mini {
    flex: 1;
}

.comment-input-mini input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    font-size: 14px;
    background: #f8f9fa;
    outline: none;
}

.bottom-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 5px;
    transition: color 0.2s;
}

.action-item:hover {
    color: #ff4757;
}

.action-item.liked {
    color: #ff4757;
}

.action-item.collected {
    color: #ffa502;
}

.action-item.primary {
    background: #ff4757;
    color: #fff;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    flex-direction: row;
    gap: 0;
}

.action-item.primary:hover {
    background: #ff3742;
    color: #fff;
}

.action-count {
    font-size: 12px;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .venue-gallery {
        height: 225px; /* 减少10%：250px * 0.9 = 225px */
    }
    
    .venue-title {
        font-size: 20px;
    }
    
    .coach-grid {
        gap: 12px;
    }
    
    .coach-item img {
        width: 60px;
        height: 60px;
    }
    
    .fixed-bottom-bar {
        padding: 10px 15px;
        gap: 10px;
    }
    
    .bottom-actions {
        gap: 10px;
    }
}