/* 音乐节模板样式 */
.festival-banner .banner-img {width:100%; height:auto; margin-bottom:20px;}
.products-list {display:flex; flex-wrap:wrap; gap:20px; margin:20px 0;}
.product-item {width:calc(33.33% - 20px); border:1px solid #eee; padding:15px; border-radius:4px;}
.product-price {color:#e4393c; font-size:18px; font-weight:bold;}
.festivals-list {display:flex; flex-wrap:wrap; gap:30px; margin:20px 0;}
.festival-card {width:calc(50% - 15px); border:1px solid #eee; padding:20px; border-radius:4px;}

/* 音乐节列表页样式 - 仿Flatsome */
.music-festival-list-wrapper {
    margin: 2rem 0;
}

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.result-count {
    font-size: 0.95rem;
    color: #666;
}

.view-toggle {
    display: flex;
    gap: 0.5rem;
}

.view-toggle button {
    background: #f5f5f5;
    border: 1px solid #ddd;
    padding: 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    color: #666;
}

.view-toggle button.active {
    background: #ff3b30;
    color: #fff;
    border-color: #ff3b30;
}

.music-festival-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.festival-item {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 2rem;
    align-items: center;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 1.5rem;
    transition: box-shadow 0.2s;
}

.festival-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.item-media {
    position: relative;
}

.item-thumb {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.item-tags {
    position: absolute;
    bottom: 10px;
    left: 10px;
    display: flex;
    gap: 0.5rem;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 0.3rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
}

.tag svg {
    width: 14px;
    height: 14px;
}

.item-content {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.item-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
}

.item-title a {
    color: #222;
    text-decoration: none;
}

.item-title a:hover {
    color: #ff3b30;
}

.item-date {
    font-size: 1rem;
    color: #666;
}

.item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
}

.item-price {
    text-align: right;
    background: #ff3b30;
    color: #fff;
    padding: 0.8rem 1.2rem;
    border-radius: 4px;
}

.price-amount {
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
}

.price-label {
    font-size: 0.85rem;
    opacity: 0.9;
}

.book-now-btn {
    display: inline-block;
    background: #ff3b30;
    color: #fff;
    padding: 0.8rem 1.8rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
}

.book-now-btn:hover {
    background: #e0352b;
}

.pagination {
    margin-top: 2rem;
    text-align: center;
}

@media (max-width: 768px) {
    .festival-item {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .item-actions {
        align-items: flex-start;
    }
    .item-price {
        text-align: left;
    }
}



/* 音乐节详情页样式 */
.music-festival-single-wrapper {
    margin: 2rem 0;
}

.single-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #222;
}

.single-banner {
    margin-bottom: 1.5rem;
}

.banner-img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.single-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8f8f8;
    border-radius: 4px;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: #666;
}

.meta-item svg {
    width: 16px;
    height: 16px;
    color: #ff3b30;
}

.single-intro {
    margin-bottom: 2rem;
    font-size: 1.05rem;
    line-height: 1.6;
    color: #444;
}

.single-products {
    margin: 2.5rem 0;
}

.products-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #222;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.product-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.product-thumb {
    display: block;
}

.card-img {
    width: 100%;
    height: auto;
}

.product-info {
    padding: 1.2rem;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.8rem;
}

.product-title a {
    color: #222;
    text-decoration: none;
}

.product-title a:hover {
    color: #ff3b30;
}

.product-price {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ff3b30;
    margin-bottom: 1rem;
}

.product-btn {
    display: inline-block;
    background: #ff3b30;
    color: #fff;
    padding: 0.7rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
}

.product-btn:hover {
    background: #e0352b;
}

.single-content {
    margin-top: 2rem;
    line-height: 1.7;
    color: #444;
}

@media (max-width: 768px) {
    .single-title {
        font-size: 1.6rem;
    }
    .products-grid {
        grid-template-columns: 1fr;
    }
}

/* 仅新增/修正缩略图样式，其余样式不变 */
.item-media {
    position: relative;
}
.item-thumb-wrap {
    display: block;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 4px;
}
.item-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 保证图片不变形 */
}
.item-tags {
    position: absolute;
    bottom: 10px;
    left: 10px;
    display: flex;
    gap: 0.5rem;
    z-index: 10; /* 标签在图片上方显示 */
}