/* 基础样式 */
body {
    background-color: #141428;
    color: #fff;
    padding-top: 40px;  /* 为顶部提示留出空间 */
}

/* 顶部福利提示样式 */
.welfare-notice {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(45deg, #ff6b6b, #ff4757);
    padding: 10px 15px;
    z-index: 1000;
}

.notice-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 600px;
    margin: 0 auto;
}

.notice-content i {
    color: #fff;
    font-size: 18px;
}

.notice-content span {
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    flex: 1;
    margin-left: 10px;
}

.join-btn {
    background: #fff;
    color: #ff4757;
    border: none;
    border-radius: 15px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
}

/* 福利内容区域样式 */
.welfare-container {
    padding: 15px;
    margin-bottom: 70px;
}

/* 福利卡片通用样式 */
.welfare-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
}

.card-header {
    background: linear-gradient(45deg, #ffd700, #ffaa00);
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-header i {
    font-size: 24px;
    color: #fff;
}

.card-header h2 {
    font-size: 18px;
    color: #fff;
    margin: 0;
}

.card-content {
    padding: 20px;
}

/* VIP特权卡片样式 */
.privilege-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.privilege-item i {
    color: #ffd700;
    font-size: 16px;
}

.buy-vip-btn {
    background: linear-gradient(45deg, #ffd700, #ffaa00);
    border: none;
    border-radius: 20px;
    color: #fff;
    width: 100%;
    padding: 12px;
    font-size: 15px;
    font-weight: bold;
    margin-top: 15px;
    cursor: pointer;
}

/* 每日福利卡片样式 */
.daily-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(45deg, #ffd700, #ffaa00);
    padding: 15px;
    border-radius: 12px 12px 0 0;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-left i {
    font-size: 20px;
    color: #fff;
}

.header-left h2 {
    font-size: 16px;
    color: #fff;
    margin: 0;
}

.points-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.points-info i {
    color: #fff;
    font-size: 16px;
}

.points-info span {
    color: #fff;
    font-size: 14px;
}

.points-info strong {
    color: #fff;
    font-weight: bold;
}

/* 积分进度条样式 */
.points-progress {
    padding: 15px 15px 5px;
    position: relative;
    background: rgba(255, 255, 255, 0.05);
}

.progress-bar {
    background: rgba(255, 255, 255, 0.1);
    height: 20px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    margin-bottom: 8px;
}

.progress {
    background: linear-gradient(90deg, #ffd700, #ffaa00);
    height: 100%;
    border-radius: 10px;
    transition: width 0.3s ease;
}

.progress-text {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 12px;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.points-target {
    text-align: right;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
}

/* 任务列表样式 */
.card-content {
    padding: 15px;
}

.daily-task {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 10px;
}

.daily-task:last-child {
    margin-bottom: 0;
}

.task-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.task-info i {
    color: #ffd700;
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.task-detail {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.task-name {
    color: #fff;
    font-size: 14px;
}

.task-reward {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
}

.task-btn {
    background: rgba(255, 215, 0, 0.15);
    border: none;
    border-radius: 15px;
    color: #ffd700;
    padding: 6px 15px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.task-btn:hover {
    background: rgba(255, 215, 0, 0.2);
}

.task-btn:active {
    transform: scale(0.95);
}

/* 按钮点击效果 */
.join-btn:active,
.buy-vip-btn:active,
.task-btn:active {
    transform: scale(0.95);
}

/* 适配小屏幕 */
@media screen and (max-height: 667px) {
    .welfare-container {
        padding: 10px;
    }
    
    .card-header {
        padding: 12px;
    }
    
    .card-content {
        padding: 15px;
    }

    .daily-card .card-header {
        padding: 12px;
    }

    .card-content {
        padding: 12px;
    }

    .daily-task {
        padding: 10px;
        margin-bottom: 8px;
    }

    .task-info i {
        font-size: 16px;
    }

    .task-name {
        font-size: 13px;
    }

    .task-reward {
        font-size: 11px;
    }

    .task-btn {
        padding: 5px 12px;
        font-size: 12px;
    }

    .points-progress {
        padding: 12px 12px 5px;
    }

    .progress-bar {
        height: 18px;
    }

    .progress-text {
        font-size: 11px;
    }
}

/* 发布卡片样式优化 */
.post-card {
    margin-bottom: 15px;
}

.post-content {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
}

.avatar {
    width: 45px;
    height: 45px;
    border-radius: 10px;  /* 改为圆角方形 */
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid rgba(255, 215, 0, 0.3);  /* 添加金色边框 */
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-info {
    flex: 1;
    min-width: 0;
}

.post-info h3 {
    font-size: 15px;
    color: #fff;
    margin: 0 0 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 600;
}

.post-info p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

/* 进群按钮样式优化 */
.join-group-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(45deg, #ffd700, #ffaa00);
    border: none;
    border-radius: 18px;
    padding: 8px 15px;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.2);
    transition: all 0.3s ease;
}

.btn-options {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.pay-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2px;
}

.pay-option .price {
    font-size: 15px;
    font-weight: bold;
    color: #fff;
}

.pay-option .btn-text {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.9);
}

.task-option {
    display: flex;
    align-items: center;
    gap: 4px;
    padding-top: 2px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.task-option .task-text {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.7);
}

.task-option .btn-text {
    font-size: 11px;
    color: #fff;
}

.join-group-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.join-group-btn:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 6px rgba(255, 215, 0, 0.2);
}

/* 适配小屏幕 */
@media screen and (max-width: 360px) {
    .post-content {
        gap: 12px;
        padding: 12px;
    }

    .avatar {
        width: 40px;
        height: 40px;
    }

    .post-info h3 {
        font-size: 14px;
    }

    .post-info p {
        font-size: 11px;
        -webkit-line-clamp: 2;
    }

    .join-group-btn {
        padding: 6px 12px;
    }

    .pay-option .price {
        font-size: 14px;
    }

    .pay-option .btn-text,
    .task-option .btn-text {
        font-size: 10px;
    }

    .task-option .task-text {
        font-size: 9px;
    }
}

/* 积分提示卡片样式优化 */
.points-card {
    background: linear-gradient(135deg, rgba(64, 255, 255, 0.1), rgba(255, 215, 0, 0.1));
    border-radius: 12px;
    margin-bottom: 20px;
    padding: 15px;
}

.points-info {
    margin-bottom: 15px;
}

.points-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    position: relative;
}

.points-header i {
    color: #ffd700;
    font-size: 20px;
}

.points-header span {
    color: #fff;
    font-size: 15px;
}

.points-header strong {
    color: #ffd700;
    font-size: 18px;
    margin-left: 4px;
}

.points-target {
    position: absolute;
    right: 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
}

/* 积分规则样式优化 */
.points-rules {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rule-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.rule-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rule-info i {
    color: #40ffff;
    font-size: 14px;
}

.rule-info span {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

.rule-points {
    color: #ffd700;
    font-size: 13px;
}

/* 支付弹窗样式 */
.pay-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.pay-modal.active {
    display: flex;
}

.modal-content {
    background: #1a1a2e;
    border-radius: 16px;
    width: 85%;
    max-width: 320px;
    overflow: hidden;
    /* animation: modalShow 0.3s ease; */
}

.modal-header {
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h3 {
    color: #fff;
    font-size: 16px;
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
}

.close-btn:hover {
    color: #fff;
}

.modal-body {
    padding: 20px;
    text-align: center;
}

.qr-code {
    width: 200px;
    height: 200px;
    margin: 0 auto 15px;
    background: #fff;
    padding: 10px;
    border-radius: 10px;
}

.qr-code img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pay-info {
    margin-bottom: 15px;
}

.group-name {
    color: #fff;
    font-size: 15px;
    margin-bottom: 5px;
}

.pay-price {
    color: #ffd700;
    font-size: 24px;
    font-weight: bold;
}

.pay-tips {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    line-height: 1.6;
}

@keyframes modalShow {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 适配小屏幕 */
@media screen and (max-height: 667px) {
    .modal-content {
        width: 90%;
    }

    .qr-code {
        width: 180px;
        height: 180px;
    }

    .modal-body {
        padding: 15px;
       
    }
} 