/* 营销日历小部件样式 */
.marketing-calendar-widget {
    display: block;
    overflow: hidden;
}

.marketing-calendar-widget .mc-row {
    display: flex;
    align-items: center;
    gap: 20px;
}

.mc-header {
    flex-shrink: 0;
}

.mc-title {
    font-weight: 600;
    margin: 0;
    white-space: nowrap;
}

.mc-swiper-container {
    flex: 1;
    overflow: hidden;
    min-width: 0;
    max-width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.mc-nav {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.3s ease;
    color: #666;
}

.mc-nav:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

.mc-nav.is-disabled {
    opacity: 0;
    pointer-events: none;
}

.mc-nav-prev {
    opacity: 0;
    pointer-events: none;
}

.mc-nav-next {
    opacity: 1;
}

.mc-swiper {
    width: 100%;
    overflow: hidden;
}

.mc-swiper .swiper-wrapper {
    display: flex;
    flex-direction: row;
}

.mc-swiper .swiper-slide {
    width: 170px !important;
    flex-shrink: 0;
}

.mc-card {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    width: 100%;
}

.mc-card:hover {
    text-decoration: none;
}

.mc-card-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-width: 0;
}

.mc-card-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mc-card-title {
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.mc-card-date {
    font-size: 11px;
    opacity: 0.7;
    white-space: nowrap;
}

.mc-card-right {
    flex-shrink: 0;
}

.mc-countdown {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-width: 46px;
    aspect-ratio: 1;
}

.mc-countdown-num {
    font-size: 18px;
    font-weight: 600;
}

.mc-countdown-suffix {
    display: flex;
    flex-direction: column;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.1;
}

.mc-card.is-today .mc-card-title,
.mc-card.is-today .mc-card-date {
    color: inherit;
}

/* 分类卡片展示区 */
.mc-categories-container {
    margin-top: 20px;
}

.mc-categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.mc-category-card {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    text-decoration: none;
}

.mc-category-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.mc-category-card:hover img {
    transform: scale(1.1);
}

.mc-category-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.5));
}

.mc-category-card-name {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
}

/* 响应式 - 平板 */
@media (max-width: 1024px) {
    .mc-countdown-num {
        font-size: 16px;
    }

    .mc-countdown-suffix {
        font-size: 11px;
    }
}

/* 响应式 - 手机 */
@media (max-width: 767px) {
    .marketing-calendar-widget .mc-row {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .mc-header {
        display: none;
    }

    .mc-countdown-num {
        font-size: 14px;
    }

    .mc-countdown {
        min-width: 38px;
    }

    .mc-card-title {
        font-size: 13px;
    }

    .mc-card-date {
        font-size: 10px;
    }

    .mc-categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .mc-category-card img {
        height: 150px;
    }
}
