/* 狐蒂云主题 - 活动页面样式 */

/* 活动Banner */
.activity-banner {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.activity-banner .banner-bg {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.activity-banner .banner-content {
    text-align: center;
    color: #fff;
}

.activity-banner .banner-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 14px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.activity-banner .banner-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: 4px;
}

.activity-banner .banner-desc {
    font-size: 18px;
    opacity: 0.9;
}

/* 活动区域 */
.hdy-activities {
    padding: 60px 0;
    background: #f5f7fa;
    min-height: 400px;
}

/* 加载状态 */
.loading-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 0;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid #e8e8e8;
    border-top-color: #1890ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-box p {
    color: #999;
    font-size: 14px;
}

/* 空状态 */
.empty-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 0;
}

.empty-icon {
    width: 160px;
    height: 160px;
    margin-bottom: 24px;
}

.empty-icon svg {
    width: 100%;
    height: 100%;
}

.empty-text {
    color: #999;
    font-size: 16px;
    margin-bottom: 24px;
}

.back-btn {
    display: inline-block;
    padding: 12px 40px;
    background: #1890ff;
    color: #fff;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s;
}

.back-btn:hover {
    background: #40a9ff;
    color: #fff;
}

/* 活动分组 */
.activity-groups {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.activity-group {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

/* 分组头部 */
.group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.group-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
}

.group-info .group-desc {
    font-size: 14px;
    opacity: 0.9;
}

.group-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    backdrop-filter: blur(10px);
}

/* 二级分组Tab */
.sub-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 20px 30px;
    background: #f8f9fc;
    border-bottom: 1px solid #e8e8e8;
}

.sub-tab {
    padding: 10px 24px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    color: #666;
}

.sub-tab:hover {
    border-color: #667eea;
    color: #667eea;
}

.sub-tab.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    color: #fff;
}

/* 商品面板 */
.product-panels {
    padding: 24px 30px;
}

.product-panel {
    display: none;
}

.product-panel.active {
    display: block;
}

/* 分组描述条 */
.group-desc-banner {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* 商品网格 */
.product-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* 商品卡片 */
.product-card {
    width: calc(33.333% - 14px);
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
}

.product-card:hover {
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.2);
    border-color: #667eea;
    transform: translateY(-4px);
}

.product-card .card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #fff 100%);
    border-bottom: 1px solid #eee;
}

.product-card .card-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.product-card .card-tag {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: #fff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
}

.product-card .card-body {
    padding: 20px;
    min-height: 180px;
}

.product-card .config-row {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dashed #f0f0f0;
    font-size: 13px;
}

.product-card .config-row:last-child {
    border-bottom: none;
}

.product-card .config-label {
    color: #999;
    min-width: 80px;
    flex-shrink: 0;
}

.product-card .config-value {
    color: #333;
}

.product-card .card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-top: 1px solid #f0f0f0;
    background: #fafbfc;
}

.product-card .card-price {
    color: #ff6a00;
}

.product-card .price-symbol {
    font-size: 14px;
}

.product-card .price-value {
    font-size: 28px;
    font-weight: 700;
}

.product-card .price-unit {
    font-size: 12px;
    color: #999;
}

.product-card .card-btn {
    display: inline-block;
    padding: 10px 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s;
}

.product-card .card-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    color: #fff;
}

/* 禁止声明 */
.hdy-notice {
    padding: 30px 0;
    background: #f5f7fa;
}

.notice-box {
    display: flex;
    align-items: flex-start;
    padding: 20px;
    background: #fff3e0;
    border: 1px solid #ffe0b2;
    border-radius: 8px;
}

.notice-icon {
    width: 24px;
    height: 24px;
    background: #ff9800;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-style: normal;
    font-weight: 600;
    margin-right: 12px;
    flex-shrink: 0;
}

.notice-content {
    font-size: 13px;
    color: #e65100;
    line-height: 1.8;
}

.notice-content strong {
    color: #bf360c;
}

/* 响应式 */
@media (max-width: 1200px) {
    .product-card {
        width: calc(50% - 10px);
    }
}

@media (max-width: 768px) {
    .activity-banner {
        height: 200px;
    }
    
    .activity-banner .banner-title {
        font-size: 32px;
    }
    
    .group-header {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .sub-tabs {
        justify-content: center;
    }
    
    .product-card {
        width: 100%;
    }
    
    .product-panels {
        padding: 20px;
    }
}
