/* ===== 容器 ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    min-height: 100vh;
}
.section-inner { max-width: 1200px; margin: 0 auto; padding: 0; }

/* ===== 面包屑 ===== */
.breadcrumb {
    padding: 0 0 16px 0;
    font-size: 13px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}
.breadcrumb a {
    color: var(--text-light);
    transition: color 0.2s;
}
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep {
    color: #ccc;
    font-size: 12px;
    margin: 0 2px;
}
.breadcrumb .current {
    color: var(--text);
    font-weight: 500;
}

/* ===== 两栏布局 ===== */
.page-wrapper {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}
.main-content { flex: 1; min-width: 0; }

/* ============================================================== */
/* 演出头部（海报 + 信息） */
/* ============================================================== */
.event-header {
    display: flex;
    gap: 30px;
    padding: 20px 0 30px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 30px;
    align-items: flex-start;
}

.event-poster {
    flex-shrink: 0;
    width: 220px;
    aspect-ratio: 3 / 4;
    border-radius: var(--radius);
    overflow: hidden;
    background: #eee;
    position: relative;
}
.event-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.event-poster .tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255, 95, 43, 0.9);
    color: #fff;
    font-size: 12px;
    padding: 2px 12px;
    border-radius: 4px;
}

.event-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* 标题 */
.event-title {
    font-size: 32px;             /* 更大 */
    font-weight: 800;
    line-height: 1.3;
    color: #1a1a1a;
    margin-bottom: 12px;
    letter-spacing: 1px;         /* 增加字距，更显高级 */
}

/* 场馆 + 时间：胶囊标签 */
.event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}
.meta-item {
    display: inline-block;
    padding: 6px 18px;
    background: #f5f7fa;         /* 浅灰色底，凸显信息 */
    border-radius: 30px;         /* 大圆角胶囊 */
    font-size: 14px;
    color: #555;
    font-weight: 500;
}

/* 状态标签 */
.status-badge {
    align-self: flex-start;
    display: inline-block;
    padding: 2px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}
.status-badge.onsale { background: #FF5F2B; }
.status-badge.presale { background: #ff9800; }
.status-badge.reserve { background: #666; }

/* 最低价区域 */
.price-show {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 12px;
}
.price-show .price-num {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
}
.price-show .price-label {
    font-size: 14px;
    color: var(--text-light);
}
.price-show .price-origin {
    font-size: 14px;
    color: var(--text-light);
    text-decoration: line-through;
    margin-left: 8px;
}

/* 购票按钮 */
.event-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-primary {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 10px 36px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}
.btn-primary:hover { background: #e84f20; }

/* ============================================================== */
/* 演出介绍 */
/* ============================================================== */
.intro-section {
    margin-bottom: 30px;
}
.intro-section .section-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}
.intro-content {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text);
}
.intro-content p { margin-bottom: 12px; }

/* ============================================================== */
/* 演出阵容 */
/* ============================================================== */
.cast-section {
    margin-bottom: 30px;
}
.cast-section .section-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}
.cast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 16px;
}
.cast-item {
    text-align: center;
    padding: 12px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    transition: 0.2s;
}
.cast-item:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.cast-item .cast-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 8px;
    background: #eee;
}
.cast-item .cast-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.cast-item .cast-name {
    font-weight: 600;
    font-size: 14px;
}
.cast-item .cast-follow {
    font-size: 12px;
    color: var(--text-light);
}
.cast-item .cast-follow::before {
    content: '♥ ';
    color: var(--primary);
    font-weight: 600;
}

/* ============================================================== */
/* 观演须知 */
/* ============================================================== */
.notice-section {
    margin-bottom: 30px;
}
.notice-section .section-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}
.notice-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.notice-item {
    padding: 14px 16px;
    background: var(--bg);
    border-radius: var(--radius-sm);
}
.notice-item .notice-label {
    font-weight: 600;
    font-size: 14px;
    color: var(--text);
    margin-bottom: 4px;
}
.notice-item .notice-desc {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.5;
}

/* ============================================================== */
/* 底部推荐（横向滚动） */
/* ============================================================== */
.recommend-section {
    margin-bottom: 20px;
}
.recommend-section .section-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.recommend-section .section-title .more {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-light);
    cursor: pointer;
}
.recommend-section .section-title .more:hover { color: var(--primary); }

.recommend-scroll {
    display: grid;
    gap: 16px;
}
/* 卡片通用样式保持不变 */
.recommend-scroll .event-card {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background: #fff;
    transition: 0.2s;
    cursor: pointer;
}
.recommend-scroll .event-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}
.recommend-scroll .event-card .card-img {
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #eee;
}
.recommend-scroll .event-card .card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.recommend-scroll .event-card .card-info {
    padding: 10px 12px;
}
.recommend-scroll .event-card .card-title {
    font-size: 14px;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.recommend-scroll .event-card .card-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
    margin-top: 4px;
}
.recommend-scroll .event-card .card-price small {
    font-size: 12px;
    font-weight: 400;
    color: var(--text-light);
}
/* ============================================================== */
/* 响应式适配 */
/* ============================================================== */
@media (max-width: 1024px) {
    .sidebar-aside {
        width: 200px;
    }
    .event-poster {
        width: 180px;
    }
    .event-title {
        font-size: 24px;
    }
    .notice-grid {
        grid-template-columns: 1fr;
    }
}

/* PC 端 (≥1024px)：6 列 */
@media (min-width: 1024px) {
    .recommend-scroll {
        grid-template-columns: repeat(6, 1fr);
    }
}
/* 平板端 (768px - 1023px)：3 列 */
@media (max-width: 1023px) and (min-width: 768px) {
    .recommend-scroll {
        grid-template-columns: repeat(3, 1fr);
    }
}
/* ============================================================== */
/* 📱 移动端适配（核心修正） */
/* ============================================================== */
@media (max-width: 768px) {
    .sidebar-aside { display: none; }

    .event-header {
        flex-direction: column;
        align-items: center; /* 确保整个头部居中 */
        gap: 16px;
        padding: 10px 0 20px;
    }
    .event-poster {
        width: 100%;
        max-width: 220px;
        align-self: center;
    }
    
    /* ✅ 关键修正：让信息区域所有内容居中对齐 */
    .event-info {
        align-items: center;
        text-align: center;
        width: 100%;
    }
    .event-title { font-size: 24px; text-align: center; }
    .event-meta { justify-content: center; }
    .meta-item { font-size: 13px; padding: 4px 14px; }
    .price-show { justify-content: center; }
    .price-show .price-num { font-size: 20px; }
    .status-badge { align-self: center; }

    /* 底部悬浮购票栏 */
    .event-actions {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        padding: 12px 20px;
        background: #fff;
        border-top: 1px solid var(--border);
        box-shadow: 0 -2px 10px rgba(0,0,0,0.06);
        z-index: 1000;
        justify-content: center;
    }
    .btn-primary {
        width: 100%;
        max-width: 400px;
        padding: 12px 0;
        font-size: 16px;
        border-radius: 30px;
    }

    .cast-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    .cast-item .cast-avatar {
        width: 48px;
        height: 48px;
    }
    .cast-item .cast-name {
        font-size: 13px;
    }
    .cast-item .cast-follow {
        font-size: 11px;
    }

    .recommend-scroll {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 12px;
        padding-bottom: 12px;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
    }
    .recommend-scroll .event-card {
        flex: 0 0 140px;
        scroll-snap-align: start;
    }
    .recommend-scroll .event-card:hover {
        transform: none;
    }

    .intro-content {
        font-size: 14px;
    }

    /* 增加底部内边距，防止悬浮栏遮挡内容 */
    body {
        padding-bottom: 80px;
    }
}

@media (max-width: 480px) {
    .event-title {
        font-size: 18px;
    }
    .event-poster {
        max-width: 180px;
    }
    .cast-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }
    .cast-item .cast-avatar {
        width: 48px;
        height: 48px;
    }
    .recommend-scroll .event-card {
        flex: 0 0 120px;
    }
}