/* =============================================
   红包领取组件 - 现代风格
   ============================================= */

/* ===== Coupon Card ===== */
.coupon-card {
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    padding: 24px;
    margin: 20px 0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.coupon-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #FF6A00, #FF8C38);
    border-radius: 4px 0 0 4px;
}

.coupon-card:hover {
    box-shadow: 0 6px 24px rgba(255,106,0,0.10);
    border-color: #fed7aa;
    transform: translateY(-2px);
}

.coupon-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px dashed #e2e8f0;
}

.platform-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    flex-shrink: 0;
}

.coupon-name {
    font-size: 17px;
    font-weight: 600;
    color: #0f172a;
    flex: 1;
}

.coupon-body {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.qr-section {
    flex-shrink: 0;
}

.qr-code {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.copy-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.copy-textarea {
    width: 100%;
    min-height: 56px;
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    color: #475569;
    background: #f8fafc;
    resize: none;
    font-family: inherit;
    line-height: 1.6;
    overflow: hidden;
    transition: border-color 0.2s;
}

.copy-textarea:focus {
    border-color: #FF6A00;
    outline: none;
}

/* ===== Buttons ===== */
.btn-copy, .btn-goto {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s ease;
    letter-spacing: 0.3px;
    gap: 6px;
}

.btn-copy:active, .btn-goto:active {
    transform: scale(0.97);
}

.btn-copy {
    background: linear-gradient(135deg, #FF6A00, #FF8C38);
    color: #fff;
}

.btn-copy:hover {
    background: linear-gradient(135deg, #e55e00, #ff7a22);
    color: #fff;
    box-shadow: 0 4px 16px rgba(255,106,0,0.30);
    transform: translateY(-1px);
}

.btn-copy.copied {
    background: linear-gradient(135deg, #059669, #10b981) !important;
    box-shadow: 0 4px 16px rgba(5,150,105,0.30) !important;
}

.btn-goto {
    background: linear-gradient(135deg, #059669, #10b981);
    color: #fff;
}

.btn-goto:hover {
    background: linear-gradient(135deg, #047857, #059669);
    color: #fff;
    box-shadow: 0 4px 16px rgba(5,150,105,0.30);
    transform: translateY(-1px);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 13px;
}

/* ===== Expired ===== */
.coupon-expired {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 28px;
    text-align: center;
    color: #94a3b8;
    margin: 20px 0;
    font-size: 14px;
}

/* ===== Article Activity List ===== */
.article-activities {
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid #e2e8f0;
}

.article-activities h3 {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.coupon-list {
    display: grid;
    gap: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .coupon-card {
        padding: 18px;
        margin: 16px 0;
    }

    .coupon-body {
        flex-direction: column;
        align-items: center;
    }

    .copy-section {
        width: 100%;
    }

    .btn-copy, .btn-goto {
        width: 100%;
    }

    .qr-code {
        width: 100px;
        height: 100px;
    }
}
