/* 活动页面基础样式 */
.activity-page {
    background: #f8f9fa;
    min-height: calc(100vh - 60px);
    padding: 40px 0;
}

.activity-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 页面头部 */
.activity-page .activity-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.activity-page .activity-header::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: linear-gradient(45deg, #ff6b00, #ff4d00);
    border-radius: 3px;
}

.activity-page .activity-header .page-title {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.activity-page .activity-header .page-desc {
    font-size: 16px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* 活动列表 */
.activity-page .activity-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 30px;
    padding: 10px;
}

/* 活动卡片 */
.activity-page .activity-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: relative;
}

.activity-page .activity-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    border-color: #ff6b00;
}

.activity-page .activity-card .card-image {
    position: relative;
    padding-top: 56.25%; /* 16:9 比例 */
    overflow: hidden;
    background: #f8f9fa;
}

.activity-page .activity-card .card-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.02));
    z-index: 1;
    pointer-events: none;
}

.activity-page .activity-card .card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.activity-page .activity-card:hover .card-image img {
    transform: scale(1.08);
}

/* 活动状态标签 */
.activity-page .activity-card .status-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    z-index: 2;
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.activity-page .activity-card .status-badge.active {
    background: rgba(52, 199, 89, 0.9);
}

.activity-page .activity-card .status-badge.upcoming {
    background: rgba(255, 149, 0, 0.9);
}

.activity-page .activity-card .status-badge.ended {
    background: rgba(142, 142, 147, 0.9);
}

/* 卡片内容 */
.activity-page .activity-card .card-content {
    padding: 20px;
    position: relative;
}

.activity-page .activity-card .activity-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    height: 50px;
}

.activity-page .activity-card .activity-time {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 14px;
}

.activity-page .activity-card .activity-time .time-label {
    color: #999;
    margin-right: 8px;
    display: flex;
    align-items: center;
}

.activity-page .activity-card .activity-time .time-label::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 4px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23999'%3E%3Cpath d='M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10 10-4.5 10-10S17.5 2 12 2zm0 18c-4.4 0-8-3.6-8-8s3.6-8 8-8 8 3.6 8 8-3.6 8-8 8zm.5-13H11v6l5.2 3.2.8-1.3-4.5-2.7V7z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.activity-page .activity-card .activity-time .time-value {
    color: #666;
    font-weight: 500;
}

.activity-page .activity-card .activity-desc {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 67px;
}

.activity-page .activity-card .activity-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f5f5f5;
}

.activity-page .activity-card .reward-info {
    font-size: 14px;
    display: flex;
    align-items: center;
}

.activity-page .activity-card .reward-info .reward-label {
    color: #999;
    margin-right: 6px;
    display: flex;
    align-items: center;
}

.activity-page .activity-card .reward-info .reward-label::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 4px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23999'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm.31-8.86c-1.77-.45-2.34-.94-2.34-1.67 0-.84.79-1.43 2.1-1.43 1.38 0 1.9.66 1.94 1.64h1.71c-.05-1.34-.87-2.57-2.49-2.97V5H10.9v1.69c-1.51.32-2.72 1.3-2.72 2.81 0 1.79 1.49 2.69 3.66 3.21 1.95.46 2.34 1.15 2.34 1.87 0 .53-.39 1.39-2.1 1.39-1.6 0-2.23-.72-2.32-1.64H8.04c.1 1.7 1.36 2.66 2.86 2.97V19h2.34v-1.67c1.52-.29 2.72-1.16 2.73-2.77-.01-2.2-1.9-2.96-3.66-3.42z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.activity-page .activity-card .reward-info .reward-value {
    color: #ff6b00;
    font-weight: 600;
}

/* 按钮样式 */
.activity-page .btn-join,
.activity-page .btn-remind,
.activity-page .btn-ended {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.activity-page .btn-join {
    background: linear-gradient(45deg, #ff6b00, #ff4d00);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.activity-page .btn-join::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.activity-page .btn-join:hover::before {
    left: 100%;
}

.activity-page .btn-join:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
}

.activity-page .btn-remind {
    background: rgba(255, 149, 0, 0.1);
    color: #ff9500;
    border: 1px solid rgba(255, 149, 0, 0.3);
}

.activity-page .btn-remind:hover {
    background: rgba(255, 149, 0, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 149, 0, 0.2);
}

.activity-page .btn-ended {
    background: rgba(142, 142, 147, 0.1);
    color: #8e8e93;
    cursor: not-allowed;
}

/* 按钮图标 */
.activity-page .join-icon,
.activity-page .remind-icon,
.activity-page .ended-icon {
    width: 16px;
    height: 16px;
    display: inline-block;
    position: relative;
    top: -1px;
}

.activity-page .join-icon {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.activity-page .remind-icon {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ff9500'%3E%3Cpath d='M12 22c1.1 0 2-.9 2-2h-4c0 1.1.9 2 2 2zm6-6v-5c0-3.07-1.63-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.64 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2zm-2 1H8v-6c0-2.48 1.51-4.5 4-4.5s4 2.02 4 4.5v6z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.activity-page .ended-icon {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%238e8e93'%3E%3Cpath d='M13 3h-2v10h2V3zm4.83 2.17l-1.42 1.42C17.99 7.86 19 9.81 19 12c0 3.87-3.13 7-7 7s-7-3.13-7-7c0-2.19 1.01-4.14 2.58-5.42L6.17 5.17C4.23 6.82 3 9.26 3 12c0 4.97 4.03 9 9 9s9-4.03 9-9c0-2.74-1.23-5.18-3.17-6.83z'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* 空状态 */
.activity-page .empty-state {
    text-align: center;
    padding: 60px 0;
    background: #fff;
    border-radius: 16px;
    margin: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.activity-page .empty-state .empty-icon {
    display: block;
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23cccccc'%3E%3Cpath d='M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14zm-9-1h4v-4h-4v4zm0-6h4V8h-4v4z'/%3E%3C/svg%3E") center/contain no-repeat;
    opacity: 0.5;
}

.activity-page .empty-state p {
    color: #999;
    font-size: 16px;
}

/* 加载中遮罩 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-overlay::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 3px solid #ff6b00;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 响应式适配 */
@media (max-width: 768px) {
    .activity-page {
        padding: 20px 0;
    }
    
    .activity-page .activity-header {
        margin-bottom: 30px;
    }
    
    .activity-page .activity-header .page-title {
        font-size: 24px;
    }
    
    .activity-page .activity-list {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 15px;
    }
    
    .activity-page .activity-card {
        border-radius: 12px;
    }
    
    .activity-page .activity-card .card-content {
        padding: 15px;
    }
    
    .activity-page .activity-card .activity-title {
        font-size: 16px;
        height: 44px;
    }
    
    .activity-page .activity-card .activity-footer {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .activity-page .btn-join,
    .activity-page .btn-remind,
    .activity-page .btn-ended {
        width: 100%;
        justify-content: center;
        padding: 10px 20px;
    }
    
    .activity-page .empty-state {
        margin: 15px;
        padding: 40px 0;
    }
} 