/* 活动中心页面样式 */
/* 活泼、现代、充满活力的设计风格 */

.activity-page {
    padding: 30px 0 60px;
}

/* 页面标题区 */
.activity-hero {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 50%, #FFA726 100%);
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 30px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.activity-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.activity-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.activity-hero h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.activity-hero p {
    font-size: 16px;
    opacity: 0.9;
}

/* 活动内容区 - 两栏布局 */
.activity-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

/* 通用活动卡片 */
.activity-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.activity-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* 秒杀专区 */
.seckill-section {
    border: 2px solid #FF6B6B;
}

.seckill-header {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF4757 100%);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
}

.seckill-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
}

.seckill-title i {
    font-size: 24px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.seckill-timer {
    display: flex;
    gap: 8px;
}

.seckill-time-unit {
    background: rgba(0, 0, 0, 0.3);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
}

.seckill-time-unit span {
    font-size: 18px;
}

.seckill-products {
    padding: 16px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

/* 拼团专区 */
.group-section {
    border: 2px solid #7C3AED;
}

.group-header {
    background: linear-gradient(135deg, #7C3AED 0%, #A855F7 100%);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
}

.group-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
}

.group-title i {
    font-size: 24px;
}

.group-countdown {
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.group-products {
    padding: 16px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

/* 商品卡片 */
.activity-product {
    background: #FAFAFA;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
}

.activity-product:hover {
    background: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.activity-product-img {
    position: relative;
    height: 140px;
    overflow: hidden;
}

.activity-product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.activity-product:hover .activity-product-img img {
    transform: scale(1.05);
}

/* 标签 */
.product-tag {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    color: white;
}

.seckill-tag {
    background: linear-gradient(135deg, #FF6B6B, #FF4757);
}

.group-tag {
    background: linear-gradient(135deg, #7C3AED, #A855F7);
}

.group-people {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 10px;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 商品信息 */
.activity-product-info {
    padding: 12px;
}

.product-name {
    font-size: 14px;
    color: #333;
    font-weight: 500;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 40px;
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 8px;
}

.current-price {
    font-size: 20px;
    font-weight: 700;
    color: #FF4757;
}

.seckill-price {
    color: #FF4757;
}

.group-price {
    color: #7C3AED;
}

.original-price {
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
}

.product-progress {
    margin-bottom: 8px;
}

.progress-bar {
    height: 6px;
    background: #E5E7EB;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s;
}

.seckill-progress {
    background: linear-gradient(90deg, #FF6B6B, #FF4757);
}

.group-progress {
    background: linear-gradient(90deg, #7C3AED, #A855F7);
}

.progress-text {
    font-size: 11px;
    color: #666;
    margin-top: 4px;
}

.product-btn {
    display: block;
    width: 100%;
    padding: 8px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.seckill-btn {
    background: linear-gradient(135deg, #FF6B6B, #FF4757);
    color: white;
}

.seckill-btn:hover {
    background: linear-gradient(135deg, #FF4757, #FF6B6B);
    transform: scale(1.02);
}

.group-btn {
    background: linear-gradient(135deg, #7C3AED, #A855F7);
    color: white;
}

.group-btn:hover {
    background: linear-gradient(135deg, #A855F7, #7C3AED);
    transform: scale(1.02);
}

/* 热销标签 */
.hot-tag {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
}

/* 更多活动入口 */
.more-activities {
    margin-top: 30px;
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.more-activities h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.more-activities h3 i {
    color: #FF8E53;
}

.more-activity-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.more-activity-item {
    background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
    border: 1px solid #E2E8F0;
}

.more-activity-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #1890FF;
}

.more-activity-item i {
    font-size: 32px;
    margin-bottom: 12px;
    display: block;
}

.more-activity-item:nth-child(1) i { color: #FF6B6B; }
.more-activity-item:nth-child(2) i { color: #7C3AED; }
.more-activity-item:nth-child(3) i { color: #10B981; }
.more-activity-item:nth-child(4) i { color: #F59E0B; }

.more-activity-item span {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

/* 响应式 */
@media (max-width: 768px) {
    .activity-content {
        grid-template-columns: 1fr;
    }
    
    .activity-hero {
        padding: 24px;
    }
    
    .activity-hero h1 {
        font-size: 24px;
    }
    
    .seckill-products,
    .group-products {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .more-activity-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
