/* 统一卡片模块样式 */

/* 基础卡片样式 */
.unified-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
    position: relative;
    overflow: hidden;
}

/* 卡片悬浮效果 */
.unified-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

/* 卡片点击效果 */
.unified-card:active {
    transform: translateY(-4px) scale(0.98);
    transition: all 0.1s ease;
}

/* 跳起动画 */
.unified-card.jump {
    animation: cardJump 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes cardJump {
    0% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-12px) scale(1.05);
    }
    100% {
        transform: translateY(0) scale(1);
    }
}

/* 持续悬浮动画 */
.unified-card.floating {
    animation: cardFloat 3s ease-in-out infinite;
}

@keyframes cardFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
}

/* 卡片网格布局 */
.card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 15px;
}

/* 卡片内容样式 */
.card-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    color: white;
    font-size: 20px;
    margin-left: auto;
    margin-right: auto;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    text-align: center;
}

.card-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
    text-align: center;
}

.card-button {
    background: linear-gradient(135deg, #ff4757 0%, #ff3742 100%);
    color: white;
    border: none;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 12px;
    white-space: nowrap;
    min-width: 80px;
    text-align: center;
}

.card-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 71, 87, 0.3);
}

.card-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 标签样式 */
.card-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff4757;
    color: white;
    padding: 4px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);  /* 保持2列 */
        gap: 8px;  /* 减小间距 */
        padding: 8px;
    }
    
    .unified-card {
        padding: 12px;  /* 减小内边距 */
        font-size: 12px;  /* 减小字体 */
    }
}
/* 特殊卡片样式 */
.daily-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.daily-card .card-title,
.daily-card .card-desc {
    color: white;
}

.daily-card .card-button {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.daily-card .card-button:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* 会员卡片样式 - 与每日签到卡片保持一致 */
.member-card {
    background: white;
    color: #333;
    border-radius: 16px;
    padding: 20px;
    margin: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.member-card .card-title {
    color: #333;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 8px;
}

.member-card .card-desc {
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

.member-card .card-button {
    background: linear-gradient(135deg, #ff4757 0%, #ff3742 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 12px;
}

/* 客户卡片样式 - 与每日签到卡片保持一致 */
.customer-card {
    background: white;
    color: #333;
    border-radius: 16px;
    padding: 20px;
    margin: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.customer-card .card-title {
    color: #333;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 8px;
}

.customer-card .card-desc {
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

.customer-card .card-button {
    background: linear-gradient(135deg, #ff4757 0%, #ff3742 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 12px;
} 