/* ===== 容器 ===== */
.container {
    max-width: 1200px;
    margin: 20px auto 0 auto;
    padding: 20px;
    background: #fff;
}
.count-bar {
    padding: 12px 0 16px;
    border-bottom: 1px solid #eee;
    color: #666;
}
.count-bar strong { color: #FF5F2B; }

/* ===== 筛选栏（移动端横向滚动） ===== */
.filter-row {
    display: flex;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
    gap: 8px;
}
.filter-label {
    width: 50px;
    color: #999;
    flex-shrink: 0;
    padding-top: 2px;
}
.filter-items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    flex: 1;
}
.filter-item {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    cursor: pointer;
    color: #666;
    transition: 0.2s;
    white-space: nowrap;
}
.filter-item:hover { color: #FF5F2B; background: #fff0f2; }
.filter-item.active {
    background: #FF5F2B;
    color: #fff;
    font-weight: 500;
}

/* ===== 排序栏 ===== */
.sort-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 10px;
}
.sort-options {
    display: flex;
    gap: 20px;
    align-items: center;
}
.sort-options a {
    cursor: pointer;
    color: #666;
    transition: 0.2s;
}
.sort-options a:hover { color: #FF5F2B; }
.sort-options a.active {
    color: #FF5F2B;
    font-weight: 500;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #999;
}
.pagination .page-btn {
    width: 28px;
    height: 28px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
}
.pagination .page-btn:hover { border-color: #FF5F2B; color: #FF5F2B; }

/* ===== 两栏布局 ===== */
.main-layout {
    display: flex;
    gap: 30px;
}
.event-list { flex: 1; min-width: 0; }
.sidebar { width: 300px; flex-shrink: 0; }

/* ===== 🎯 主卡片（优化：高度降低，一屏展示4个） ===== */
.event-card {
    display: flex;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 16px;
    transition: 0.2s;
    border: 1px solid #f0f0f0;
}
.event-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

/* —— 图片区域（严格 3:4，宽度缩小，降低整体高度） —— */
.card-img {
    width: 160px;            /* ✅ 从220px减到160px，大幅降低高度 */
    flex-shrink: 0;
    aspect-ratio: 3 / 4;
    position: relative;
    overflow: hidden;
}
.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.card-tag {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(255, 95, 43, 0.9);
    color: #fff;
    font-size: 12px;
    padding: 2px 10px;
    border-radius: 4px;
}

/* —— 信息区域（减小内边距，让卡片更紧凑） —— */
.card-info {
    flex: 1;
    padding: 14px 16px;      /* ✅ 从20px 24px减小 */
    display: flex;
    flex-direction: column;
}
.card-title {
    font-size: 16px;         /* 稍微调小 */
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 6px;
}
.card-artist {
    font-size: 13px;
    color: #666;
    margin-bottom: 6px;
}

.card-meta {
    font-size: 12px;
    color: #999;
    display: flex;
    flex-wrap: wrap;      /* 允许换行 */
    gap: 8px 12px;        /* 行间距4px，列间距12px */
    margin-bottom: 8px;
}

/* div 强制换行 */
.card-meta > div {
    width: 100%;
    /* 如果希望 div 内部有上下留白，可以加 padding */
}

/* —— 底部：价格 + 状态 —— */
.card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid #f5f5f5;
}
.card-price {
    font-size: 18px;
    font-weight: 700;
    color: #FF5F2B;
}
.card-price small {
    font-size: 12px;
    font-weight: 400;
    color: #999;
}

/* —— 状态标签（三种） —— */
.card-status {
    font-size: 12px;
    padding: 2px 12px;
    border-radius: 12px;
    color: #fff;
    display: inline-block;
}
.card-status.sell { background: #FF5F2B; }   /* 售票中 */
.card-status.presale { background: #ff9800; } /* 预售 */
.card-status.reserve { background: #666; }    /* 预约 */

/* ===== 侧边栏（图片比例修正，同步缩小） ===== */
.sidebar-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}
.sidebar-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
    cursor: pointer;
    align-items: flex-start;
}
.sidebar-item img {
    width: 50px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}
.sidebar-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.sidebar-item-title {
    font-size: 13px;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.sidebar-item-price {
    font-size: 14px;
    font-weight: 700;
    color: #FF5F2B;
}
.sidebar-item-price small { font-weight: 400; color: #999; font-size: 11px; }

/* ===== 📱 移动端适配 ===== */
@media (max-width: 768px) {
    .filter-row {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 8px;
    }
    .filter-items {
        flex-wrap: nowrap;
        flex: 1 0 auto;
        gap: 0 20px;
    }
    .filter-label { display: none; }

    .event-card {
        flex-direction: row;
        align-items: stretch;
    }
    .card-img {
        width: 120px;
        flex-shrink: 0;
        aspect-ratio: 3 / 4;
    }
    .card-info {
        padding: 10px 12px;
    }
    .card-title { font-size: 14px; margin-bottom: 4px; }
    .card-artist { font-size: 12px; margin-bottom: 4px; }
    .card-meta { font-size: 11px; gap: 8px; margin-bottom: 6px; }
    .card-price { font-size: 16px; }
    .card-status { font-size: 11px; padding: 2px 10px; }
    .card-bottom {
        padding-top: 6px;
        border-top: none;
    }

    .sidebar { display: none; }
}