/* 场地详情页样式 */

/* 场地头部信息 */
.activity-header {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    margin-bottom: 40px;
}

.activity-gallery {
    flex: 1;
}

.main-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
}

.thumbnail-list {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.thumbnail {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.thumbnail:hover,
.thumbnail.active {
    opacity: 1;
    border: 2px solid #667eea;
}

.activity-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.activity-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #333;
}

.activity-meta {
    margin-bottom: 2rem;
}

.meta-item {
    margin-bottom: 0.8rem;
    display: flex;
}

.meta-label {
    font-weight: bold;
    width: 80px;
    color: #666;
}

.meta-value {
    flex: 1;
    color: #333;
}

.price-section {
    margin-bottom: 2rem;
}

.price-value {
    font-size: 2rem;
    font-weight: bold;
    color: #ff6b6b;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    margin-top: auto;
}

.btn-signup {
    background: #667eea;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: background 0.3s ease;
}

.btn-signup:hover {
    background: #5a6fd8;
}

.btn-signup.disabled {
    background: #ccc;
    cursor: not-allowed;
}

.btn-favorite {
    background: white;
    color: #ff6b6b;
    border: 2px solid #ff6b6b;
    padding: 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.btn-favorite:hover {
    background: #ff6b6b;
    color: white;
}

/* 标签页 */
.detail-tabs {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    overflow: hidden;
}

.tab-list {
    display: flex;
    border-bottom: 1px solid #eee;
}

.tab-item {
    padding: 1rem 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.tab-item.active {
    color: #667eea;
    border-bottom: 3px solid #667eea;
}

/* 详情内容 */
.detail-content {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

.content-section {
    margin-bottom: 2rem;
}

.content-section:last-child {
    margin-bottom: 0;
}

.section-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #333;
    padding-bottom: 0.5rem;
    display: inline-block;
    border-bottom: 2px solid #667eea;
}

.highlight-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.highlight-item {
    text-align: center;
}

.highlight-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 1rem;
}

.highlight-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #333;
}

.highlight-desc {
    color: #666;
    line-height: 1.6;
}

.route-timeline {
    position: relative;
    padding-left: 2rem;
}

.route-timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #667eea;
}

.route-point {
    position: relative;
    margin-bottom: 2rem;
}

.route-point:last-child {
    margin-bottom: 0;
}

.route-point::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #667eea;
    border: 3px solid white;
    box-shadow: 0 0 0 2px #667eea;
}

.route-time {
    font-weight: bold;
    color: #667eea;
    margin-bottom: 0.3rem;
}

.route-location {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 0.3rem;
    color: #333;
}

.route-desc {
    color: #666;
    line-height: 1.6;
}

.notice-list {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
}

.notice-item {
    margin-bottom: 1.5rem;
}

.notice-item:last-child {
    margin-bottom: 0;
}

.notice-title {
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #333;
}

.notice-content {
    color: #666;
    line-height: 1.6;
}

.notice-content ul {
    padding-left: 1.5rem;
}

.notice-content li {
    margin-bottom: 0.5rem;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-item {
    background: #e0e0e0;
    color: #666;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* 地图容器 */
.map-container {
    margin-top: 2rem;
}

#venue-map {
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
    height: 400px;
}

.map-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 400px;
    background: #f5f5f5;
    color: #999;
    font-size: 1.2rem;
    border-radius: 8px;
}

/* 新增两栏布局样式 */
.page-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 15px;
}

/* 右侧边栏样式 */
.sidebar {
    width: 300px;
    flex-shrink: 0;
}

.promo-section {
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 24px;
}

.promo-header {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    font-weight: bold;
    color: var(--text-color);
}

.promo-content {
    padding: 16px;
}

.promo-card {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-speed);
}

.promo-card:hover {
    background-color: var(--bg-light);
}

.promo-card:last-child {
    border-bottom: none;
}

.promo-image {
    width: 100px;
    height: 100px;
    border-radius: var(--border-radius);
    overflow: hidden;
    flex-shrink: 0;
}

.promo-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.promo-info {
    flex: 1;
    min-width: 0;
}

.promo-title {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--text-color);
}

.promo-price {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 16px;
}

.qr-code {
    width: 120px;
    height: 120px;
    margin: 16px auto;
    display: block;
}

.follow-text {
    text-align: center;
    color: var(--text-light);
    font-size: 14px;
    padding: 0 16px 16px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .page-layout {
        grid-template-columns: 1fr 250px;
    }

    .activity-header {
        grid-template-columns: 1fr 340px;
    }
}

@media (max-width: 768px) {
    .activity-header {
        grid-template-columns: 1fr;
    }

    .main-image {
        height: 250px;
    }

    .activity-title {
        font-size: 1.5rem;
    }

    .action-buttons {
        flex-direction: column;
    }

    .btn-signup {
        width: 100%;
    }

    .detail-content {
        padding: 1rem;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .highlight-list {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .route-timeline {
        padding-left: 1.5rem;
    }

    .route-point::before {
        left: -1.5rem;
    }

    /* 移动端布局调整 */
    .page-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        margin-top: 30px;
    }
}