/* ========================================
   热门活动页面样式 - 时间线布局
   ======================================== */

/* 页面布局 */
.activity-section {
    max-width: 720px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}

/* ========================================
   时间线容器
   ======================================== */
.timeline {
    position: relative;
    margin-top: 20px;
}

/* 纵向连接线 */
.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(
        to bottom,
        var(--accent-primary),
        var(--accent-secondary),
        var(--border-color)
    );
    border-radius: 2px;
}

/* ========================================
   时间线条目
   ======================================== */
.timeline-item {
    position: relative;
    display: flex;
    gap: 24px;
    padding-bottom: 32px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

/* ========================================
   时间线节点（左侧圆形图标）
   ======================================== */
.timeline-node {
    position: relative;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: white;
    z-index: 1;
    box-shadow: 0 0 0 4px var(--bg-primary);
}

/* ========================================
   时间线内容卡片
   ======================================== */
.timeline-content {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 18px 22px;
    position: relative;
    transition: box-shadow var(--transition-normal);
}

.timeline-content:hover {
    box-shadow: var(--shadow-md);
}

/* 卡片左侧小箭头 */
.timeline-content::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 14px;
    width: 14px;
    height: 14px;
    background: var(--bg-card);
    border-left: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    transform: rotate(45deg);
}

/* ========================================
   元信息行（状态 + 日期）
   ======================================== */
.timeline-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.activity-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 600;
}

.activity-date {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--text-muted);
    font-size: 0.78rem;
}

/* ========================================
   标题与描述
   ======================================== */
.activity-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.activity-desc {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 0;
}

/* 有按钮时给描述加下边距 */
.timeline-content .btn {
    margin-top: 14px;
}

/* ========================================
   状态主题：策划中
   ======================================== */
.timeline-item[data-status="planning"] .timeline-node {
    background: linear-gradient(135deg, var(--text-muted), var(--text-secondary));
}

.timeline-item[data-status="planning"] .activity-status {
    background: var(--bg-hover);
    color: var(--text-muted);
}

/* ========================================
   状态主题：预约中
   ======================================== */
.timeline-item[data-status="booking"] .timeline-node {
    background: linear-gradient(135deg, var(--accent-warning), #d97706);
}

.timeline-item[data-status="booking"] .activity-status {
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent-warning);
}

.timeline-item[data-status="booking"] .timeline-content {
    border-color: rgba(245, 158, 11, 0.35);
}

/* ========================================
   状态主题：进行中
   ======================================== */
.timeline-item[data-status="ongoing"] .timeline-node {
    background: linear-gradient(135deg, var(--accent-success), #059669);
}

.timeline-item[data-status="ongoing"] .activity-status {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-success);
}

.timeline-item[data-status="ongoing"] .timeline-content {
    border-color: rgba(16, 185, 129, 0.3);
}

/* ========================================
   状态主题：已结束
   ======================================== */
.timeline-item[data-status="ended"] .timeline-node {
    background: linear-gradient(135deg, var(--text-muted), var(--text-muted));
}

.timeline-item[data-status="ended"] .activity-status {
    background: var(--bg-hover);
    color: var(--text-muted);
}

.timeline-item[data-status="ended"] .timeline-content {
    opacity: 0.78;
}

/* ========================================
   响应式适配
   ======================================== */
@media (max-width: 768px) {
    .activity-section {
        padding: 30px 16px 60px;
    }

    .timeline-content {
        padding: 14px 16px;
    }
}

@media (max-width: 480px) {
    .timeline::before {
        left: 16px;
    }

    .timeline-node {
        width: 34px;
        height: 34px;
        font-size: 0.85rem;
    }

    .timeline-item {
        gap: 16px;
    }
}
