/* 活动页面核心样式 */
/* 基础重置 */
.activity-container * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 核心内容容器 - 居中+适配宽度 */
.activity-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: "Microsoft Yahei", sans-serif;
}

/* 活动标签页样式 */
.activity-tabs {
    display: flex;
    border-bottom: 1px solid #e8e8e8;
    margin-bottom: 30px;
}
.activity-tabs .tab-item {
    flex: 1;
    text-align: center;
    padding: 12px 0;
    cursor: pointer;
    font-size: 16px;
    color: #666;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}
.activity-tabs .tab-item.active {
    color: #0066cc;
    border-bottom-color: #0066cc;
    font-weight: 500;
}
.activity-tabs .tab-item:hover:not(.active) {
    color: #0066cc;
}

/* 活动列表 - 网格布局 */
.activity-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 24px;
}

/* 活动卡片样式 */
.activity-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}
.activity-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}
.activity-card .card-banner {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}
.activity-card .card-content {
    padding: 16px;
}
.activity-card .card-title {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.4;
}
.activity-card .card-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 16px;
    height: 40px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* 最多显示2行 */
    -webkit-box-orient: vertical;
}
.activity-card .card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}
.activity-card .card-time {
    color: #999;
}
.activity-card .card-status {
    background-color: #e6f4ff;
    color: #0066cc;
    padding: 2px 8px;
    border-radius: 4px;
}
/* 已结束状态样式 */
.activity-card .card-status.ended {
    background-color: #f5f5f5;
    color: #999;
}
/* 预告状态样式 */
.activity-card .card-status.pending {
    background-color: #fff7e6;
    color: #faad14;
}

/* 响应式适配 - 移动端单列显示 */
@media (max-width: 768px) {
    .activity-container {
        padding: 10px;
    }
    .activity-list {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .activity-tabs .tab-item {
        font-size: 14px;
        padding: 10px 0;
    }
    .activity-card .card-banner {
        height: 160px;
    }
}
/* 限时秒杀模块 */
.flash-sale-section {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    margin: 30px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.flash-sale-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}
.flash-sale-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0 0 4px 0;
}
.flash-sale-header p {
    font-size: 14px;
    color: #666;
    margin: 0;
}
.rule-link {
    color: #0066cc;
    text-decoration: none;
    font-size: 14px;
}
.countdown {
    display: flex;
    align-items: center;
    gap: 8px;
}
.countdown span {
    color: #666;
    font-size: 14px;
}
.countdown-item {
    background: #0066cc;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 500;
}

/* 秒杀商品列表 */
.flash-sale-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 20px;
}
.flash-sale-card {
    background: #fafbfc;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    padding: 20px;
    transition: box-shadow 0.3s;
}
.flash-sale-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}
.card-title {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin: 0 0 4px 0;
}
.card-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
    margin: 0;
}
.card-config {
    margin: 12px 0;
}
.config-item {
    font-size: 16px;
    font-weight: 500;
    color: #0066cc;
    margin-bottom: 4px;
}
.config-meta {
    font-size: 14px;
    color: #999;
    display: flex;
    gap: 16px;
}
.price-info {
    margin: 16px 0;
}
.tag-group {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}
.tag {
    background: #fff2f0;
    color: #ff4d4f;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 2px;
}
.price-group {
    display: flex;
    align-items: baseline;
    gap: 8px;
}
.activity-price {
    font-size: 24px;
    font-weight: 600;
    color: #ff4d4f;
}
.price-unit {
    font-size: 14px;
    color: #666;
}
.original-price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
}
.progress-bar {
    height: 6px;
    background: #f0f0f0;
    border-radius: 3px;
    margin: 16px 0;
    overflow: hidden;
}
.progress {
    height: 100%;
    background: #ff4d4f;
    width: 0%;
}
.progress-text {
    font-size: 12px;
    color: #999;
    text-align: right;
    margin-top: 4px;
}
.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.add-remind-btn {
    background: #0066cc;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}
.add-remind-btn:hover {
    background: #0052a3;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .flash-sale-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .flash-sale-list {
        grid-template-columns: 1fr;
    }
}