/**
 * 我的拼团样式
 * @author cany(3808684706)
 */

.my-group-page {
    padding: 20px;
}

.public-group-page{
    padding: 30px 90px;
}

.page-header {
    margin-bottom: 20px;
}

.share-slogan {
    padding: 16px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf0 100%);
    border-radius: 8px;
    word-break: break-all;
    font-size: 14px;
    color: #303133;
    margin-bottom: 24px;
    text-align: left;
    line-height: 1.8;
    white-space: pre-wrap;
    border: 1px solid #e4e7ed;
}

.page-title {
    font-size: 24px;
    font-weight: 600;
    color: #303133;
    margin: 0;
}

/* 筛选标签 */
.filter-tabs {
    margin-bottom: 24px;
}

/* 加载状态 */
.loading-wrapper {
    text-align: center;
    padding: 60px 20px;
    font-size: 14px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #409eff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 拼团列表 */
.group-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.group-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.group-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #f5f7fa;
    border-bottom: 1px solid #ebeef5;
}

.product-name {
    font-size: 16px;
    font-weight: 600;
    color: #303133;
    margin: 0;
}

.status-tag {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.status-pending {
    background: #fef0f0;
    color: #f56c6c;
}

.status-success {
    background: #f0f9eb;
    color: #67c23a;
}

.status-refund {
    background: #f4f4f5;
    color: #909399;
}

/* 拼团详情 */
.group-body {
    padding: 20px;
}

.info-row {
    display: flex;
    margin-bottom: 12px;
}

.info-row:last-child {
    margin-bottom: 0;
}

.info-row .label {
    width: 80px;
    color: #909399;
    font-size: 14px;
    flex-shrink: 0;
}

.info-row .value {
    color: #606266;
    font-size: 14px;
}

.info-row .value.price {
    color: #f56c6c;
    font-weight: 600;
}

/* 进度区域 */
.progress-section {
    padding: 16px 20px;
    background: #fef6f6;
    border-top: 1px solid #fde2e2;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
    color: #606266;
}

.countdown {
    margin-top: 12px;
    font-size: 13px;
    color: #f56c6c;
}

.countdown i {
    margin-right: 4px;
}

/* 操作区域 */
.group-footer {
    padding: 16px 20px;
    border-top: 1px solid #ebeef5;
    display: flex;
    gap: 10px;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 80px 20px;
}

.empty-icon {
    font-size: 64px;
    color: #dcdfe6;
    margin-bottom: 20px;
}

.empty-text {
    font-size: 16px;
    color: #909399;
    margin-bottom: 20px;
}

/* 分享弹窗 */
.share-content {
    text-align: center;
}

.share-tip {
    font-size: 14px;
    color: #606266;
    margin-bottom: 16px;
}

.share-link {
    padding: 12px 16px;
    background: #f5f7fa;
    border-radius: 6px;
    word-break: break-all;
    font-size: 13px;
    color: #409eff;
    margin-bottom: 16px;
}

/* 会员折扣信息 */
.discount-info {
    font-size: 12px;
    color: #67c23a;
    margin-left: 4px;
}

/* 分享弹窗响应式 */
.share-dialog {
    width: 480px;
}

/* 分页样式 */
.pagination-wrapper {
    margin-top: 24px;
    display: flex;
    justify-content: center;
}

@media screen and (max-width: 750px) {
    .el-input__inner {
        height: 38px;
        font-size: 14px !important;
    }
}

/* 手机端响应式适配 */
@media screen and (max-width: 768px) {
    .share-dialog {
        width: 85% !important;
    }

    .el-input__inner{
        padding: 14px;
    }
    
    .my-group-page {
        padding: 10px;
    }

    .public-group-page{
        padding: 24px 44px;
    }
    
    .page-title {
        font-size: 18px;
    }
    
    /* 卡片间距优化 */
    .group-list {
        gap: 12px;
    }
    
    /* 卡片头部优化 */
    .group-header {
        padding: 10px 12px;
        /*flex-direction: column;*/
        align-items: flex-start;
        gap: 6px;
    }
    
    .product-name {
        font-size: 14px;
        line-height: 1.4;
    }
    
    /* 卡片内容区域优化 */
    .group-body {
        padding: 12px;
    }

    .info-row {
        /*flex-direction: column;*/
        gap: 2px;
        margin-bottom: 8px;
        line-height: 1.5;
    }
    
    .info-row:last-child {
        margin-bottom: 0;
    }
    
    .info-row .label {
        width: auto;
        font-size: 12px;
    }
    
    .info-row .value {
        font-size: 13px;
    }
    
    /* 进度条区域优化 */
    .progress-section {
        padding: 10px 12px;
    }
    
    .progress-info {
        font-size: 12px;
        margin-bottom: 6px;
    }
    
    .countdown-tip {
        font-size: 12px;
        margin-top: 6px;
    }
    
    /* 按钮区域优化 - 关键优化 */
    .group-footer {
        padding: 10px 12px;
        gap: 6px;
        flex-wrap: nowrap;
        overflow-x: auto;
    }
    
    .group-footer .el-button--small {
        padding: 6px 10px;
        font-size: 12px;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .group-footer .el-button--small i {
        font-size: 12px;
    }
    
    /* 筛选标签优化 */
    .filter-tabs {
        margin-bottom: 16px;
    }
    
    .filter-tabs .el-radio-group {
        display: flex;
        flex-wrap: wrap;
        /*gap: 6px;*/
    }
    
    .filter-tabs .el-radio-button {
        font-size: 12px;
    }
    
    /* 空状态优化 */
    .empty-state {
        padding: 30px 15px;
    }
    
    .empty-icon {
        font-size: 48px;
    }
    
    .empty-text {
        font-size: 14px;
    }
    
    /* 分页优化 */
    .pagination-wrapper {
        margin-top: 16px;
    }
}
